(this._element = c)}>
+
(this._element = c)}>
-
this._handleClose()} title={$L('关闭')}>
+ this._handleClose()} title={$L('关闭')} data-dismiss="alert">
{props.message || 'INMESSAGE'}
@@ -461,7 +461,7 @@ class RbAlertBox extends React.Component {
}
_handleClose() {
- $unmount($(this._element).parent(), 10, true)
+ // $unmount($(this._element).parent(), 10, true)
typeof this.props.onClose === 'function' && this.props.onClose()
}
}
diff --git a/src/main/resources/web/assets/js/rb-datalist.common.js b/src/main/resources/web/assets/js/rb-datalist.common.js
index d00049946..be755e888 100644
--- a/src/main/resources/web/assets/js/rb-datalist.common.js
+++ b/src/main/resources/web/assets/js/rb-datalist.common.js
@@ -634,9 +634,7 @@ class BatchApprove extends BatchOperator {
-
-
-
+
)
}
diff --git a/src/main/resources/web/assets/js/rb-page.js b/src/main/resources/web/assets/js/rb-page.js
index 39e1e209d..65d0e829a 100644
--- a/src/main/resources/web/assets/js/rb-page.js
+++ b/src/main/resources/web/assets/js/rb-page.js
@@ -727,13 +727,13 @@ var $createUploader = function (input, next, complete, error) {
var $initUploader = $createUploader
/**
- * 卸载 React 组件
+ * 卸载 React 组件(顶级组件才能卸载)
*/
var $unmount = function (container, delay, keepContainer) {
if (!container) return
var $c = $(container)
setTimeout(function () {
- ReactDOM.unmountComponentAtNode($c[0])
+ ReactDOM.unmountComponentAtNode($c[0]) // return is unmounted
if (keepContainer !== true && $c.prop('tagName') !== 'BODY') $c.remove()
}, delay || 1000)
}
diff --git a/src/main/resources/web/assets/js/trigger/trigger-design.js b/src/main/resources/web/assets/js/trigger/trigger-design.js
index 6e9e2ae97..b627dfe5c 100644
--- a/src/main/resources/web/assets/js/trigger/trigger-design.js
+++ b/src/main/resources/web/assets/js/trigger/trigger-design.js
@@ -384,17 +384,7 @@ class DlgSpecFields extends RbModalHandler {
return (
(this._dlg = c)} disposeOnHide width="780">
-
-
-
-
-
-
-
-
-
{$L('指定字段被更新时触发,默认为全部字段')}
-
-
+
(this._fields = c)}>
{(this.state.fields || []).map((item) => {