bkui-vue 1.0.3-beta.18 → 1.0.3-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +47 -43
- package/dist/index.umd.js +2 -2
- package/lib/info-box/index.js +13 -6
- package/lib/table/index.js +3 -1
- package/lib/table/props.d.ts +1 -0
- package/package.json +1 -1
package/lib/info-box/index.js
CHANGED
@@ -561,6 +561,7 @@ var InfoBox = function InfoBox(config) {
|
|
561
561
|
var modalFuncProps = (0,external_vue_namespaceObject.shallowRef)(config);
|
562
562
|
var isShow = (0,external_vue_namespaceObject.ref)(modalFuncProps.value.isShow !== false);
|
563
563
|
var app;
|
564
|
+
var dialogConfirm;
|
564
565
|
var dialog = (0,external_vue_namespaceObject.defineComponent)({
|
565
566
|
name: 'DialogConfirm',
|
566
567
|
setup: function setup(_props, _ref) {
|
@@ -674,6 +675,7 @@ var InfoBox = function InfoBox(config) {
|
|
674
675
|
return fn();
|
675
676
|
});
|
676
677
|
beforeHiddenFn.length = 0;
|
678
|
+
unmountApp();
|
677
679
|
container.remove();
|
678
680
|
};
|
679
681
|
return function () {
|
@@ -696,9 +698,15 @@ var InfoBox = function InfoBox(config) {
|
|
696
698
|
var beforeShow = function beforeShow() {
|
697
699
|
if (!app) {
|
698
700
|
document.body.append(container);
|
699
|
-
app = (0,external_vue_namespaceObject.createApp)(dialog)
|
701
|
+
app = (0,external_vue_namespaceObject.createApp)(dialog);
|
702
|
+
dialogConfirm = app.mount(container);
|
700
703
|
}
|
701
704
|
};
|
705
|
+
var unmountApp = function unmountApp() {
|
706
|
+
var _app;
|
707
|
+
(_app = app) === null || _app === void 0 || _app.unmount();
|
708
|
+
app = null;
|
709
|
+
};
|
702
710
|
if (isShow.value) {
|
703
711
|
beforeShow();
|
704
712
|
}
|
@@ -709,17 +717,16 @@ var InfoBox = function InfoBox(config) {
|
|
709
717
|
},
|
710
718
|
hide: function hide() {
|
711
719
|
isShow.value = false;
|
720
|
+
unmountApp();
|
712
721
|
},
|
713
722
|
update: function update(config) {
|
714
|
-
var
|
723
|
+
var _dialogConfirm;
|
715
724
|
beforeShow();
|
716
|
-
(
|
725
|
+
(_dialogConfirm = dialogConfirm) === null || _dialogConfirm === void 0 || _dialogConfirm.update(config);
|
717
726
|
},
|
718
727
|
destroy: function destroy() {
|
719
|
-
var _app2;
|
720
728
|
container.remove();
|
721
|
-
(
|
722
|
-
app = null;
|
729
|
+
unmountApp();
|
723
730
|
}
|
724
731
|
};
|
725
732
|
};
|
package/lib/table/index.js
CHANGED
@@ -4887,6 +4887,7 @@ function _isSlot(s) {
|
|
4887
4887
|
size: 'small',
|
4888
4888
|
sizeList: defaultSizeList,
|
4889
4889
|
showLineHeight: true,
|
4890
|
+
extCls: '',
|
4890
4891
|
trigger: 'manual'
|
4891
4892
|
};
|
4892
4893
|
if (typeof props.settings === 'boolean') {
|
@@ -5033,7 +5034,8 @@ function _isSlot(s) {
|
|
5033
5034
|
"trigger": (_localSettings$value$2 = localSettings.value.trigger) !== null && _localSettings$value$2 !== void 0 ? _localSettings$value$2 : 'manual',
|
5034
5035
|
"placement": "bottom-end",
|
5035
5036
|
"ref": refSetting,
|
5036
|
-
"arrow": true
|
5037
|
+
"arrow": true,
|
5038
|
+
"extCls": localSettings.value.extCls
|
5037
5039
|
}, {
|
5038
5040
|
theme: theme
|
5039
5041
|
}), {
|
package/lib/table/props.d.ts
CHANGED