bkui-vue 1.0.3-beta.62.dialog.1 → 1.0.3-beta.63
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 +69 -69
- package/dist/index.esm.js +17802 -18626
- package/dist/index.umd.js +69 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/index.js +4 -4
- package/lib/components.d.ts +0 -1
- package/lib/components.js +0 -1
- package/lib/dialog/dialog.css +77 -139
- package/lib/dialog/dialog.d.ts +121 -41
- package/lib/dialog/dialog.less +65 -10
- package/lib/dialog/dialog.variable.css +77 -139
- package/lib/dialog/index.d.ts +272 -105
- package/lib/dialog/index.js +100 -91
- package/lib/dialog/props.d.ts +48 -8
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -312
- package/lib/info-box/info-box.css +7 -63
- package/lib/info-box/info-box.d.ts +16 -17
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +7 -63
- package/lib/modal/index.d.ts +325 -45
- package/lib/modal/index.js +666 -187
- package/lib/modal/modal.css +31 -131
- package/lib/modal/modal.d.ts +126 -16
- package/lib/modal/modal.less +28 -84
- package/lib/modal/modal.variable.css +31 -131
- package/lib/modal/props.mixin.d.ts +53 -2
- package/lib/radio/index.js +5 -5
- package/lib/select/index.d.ts +33 -0
- package/lib/select/index.js +4 -2
- package/lib/select/select.css +19 -5
- package/lib/select/select.d.ts +11 -0
- package/lib/select/select.less +26 -6
- package/lib/select/select.variable.css +19 -5
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +48 -1
- package/lib/shared/mask.d.ts +11 -0
- package/lib/sideslider/index.d.ts +222 -31
- package/lib/sideslider/index.js +36 -49
- package/lib/sideslider/sideslider.css +42 -4
- package/lib/sideslider/sideslider.d.ts +105 -14
- package/lib/sideslider/sideslider.less +58 -13
- package/lib/sideslider/sideslider.variable.css +42 -4
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.d.ts +0 -23
- package/lib/table/index.js +43 -176
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-pagination.d.ts +1 -3
- package/lib/table/props.d.ts +0 -8
- package/lib/table/table.css +42 -97
- package/lib/table/table.d.ts +0 -11
- package/lib/table/table.less +58 -43
- package/lib/table/table.variable.css +42 -97
- package/lib/table/use-attributes.d.ts +0 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.js +2 -6
- package/lib/tree/index.d.ts +0 -23
- package/lib/tree/index.js +3 -9
- package/lib/tree/props.d.ts +0 -8
- package/lib/tree/tree.css +2 -75
- package/lib/tree/tree.d.ts +0 -11
- package/lib/tree/tree.variable.css +2 -75
- package/lib/virtual-render/index.d.ts +0 -4
- package/lib/virtual-render/index.js +52 -253
- package/lib/virtual-render/props.d.ts +0 -7
- package/lib/virtual-render/use-fix-top.d.ts +7 -2
- package/lib/virtual-render/v-virtual-render.d.ts +1 -2
- package/lib/virtual-render/virtual-render.css +2 -75
- package/lib/virtual-render/virtual-render.d.ts +0 -2
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +2 -75
- package/package.json +1 -1
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/index.d.ts +0 -14
- package/lib/scrollbar/index.js +0 -18737
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -236
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -74
- package/lib/scrollbar/scrollbar.less +0 -93
- package/lib/scrollbar/scrollbar.variable.css +0 -203
- package/lib/table/plugins/use-shift-key.d.ts +0 -11
- package/lib/virtual-render/use-scrollbar.d.ts +0 -23
package/lib/dialog/index.js
CHANGED
@@ -8,7 +8,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
10
10
|
import "../modal/modal.less";
|
11
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__ from "lodash/cloneDeep";
|
12
11
|
/******/ var __webpack_modules__ = ({
|
13
12
|
|
14
13
|
/***/ 7609:
|
@@ -508,7 +507,7 @@ function _asyncToGenerator(fn) {
|
|
508
507
|
;// CONCATENATED MODULE: external "vue"
|
509
508
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
510
509
|
var external_vue_y = x => () => x
|
511
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
510
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
512
511
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
513
512
|
var regenerator = __webpack_require__(2841);
|
514
513
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
@@ -527,7 +526,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
527
526
|
;// CONCATENATED MODULE: external "../icon"
|
528
527
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
529
528
|
var icon_y = x => () => x
|
530
|
-
const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
529
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Warn });
|
531
530
|
;// CONCATENATED MODULE: external "../modal"
|
532
531
|
var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
533
532
|
var modal_y = x => () => x
|
@@ -536,10 +535,6 @@ const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
536
535
|
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
537
536
|
var modal_less_y = x => () => x
|
538
537
|
const modal_less_namespaceObject = modal_less_x({ });
|
539
|
-
;// CONCATENATED MODULE: external "lodash/cloneDeep"
|
540
|
-
var cloneDeep_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
541
|
-
var cloneDeep_y = x => () => x
|
542
|
-
const cloneDeep_namespaceObject = cloneDeep_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__["default"] });
|
543
538
|
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
544
539
|
|
545
540
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -571,12 +566,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
571
566
|
*/
|
572
567
|
|
573
568
|
|
574
|
-
|
575
|
-
var dialogProps = (0,cloneDeep_namespaceObject["default"])(modal_namespaceObject.propsMixin);
|
576
|
-
dialogProps.width["default"] = '400';
|
577
|
-
var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
|
578
|
-
// 是否可拖拽
|
579
|
-
draggable: shared_namespaceObject.PropTypes.bool.def(true),
|
569
|
+
var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
|
580
570
|
// 确认按钮文字
|
581
571
|
// confirmText: PropTypes.string.def('确定'),
|
582
572
|
confirmText: shared_namespaceObject.PropTypes.string,
|
@@ -593,13 +583,13 @@ var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
|
|
593
583
|
// 总步数
|
594
584
|
totalStep: shared_namespaceObject.PropTypes.number,
|
595
585
|
// 弹框的标题
|
596
|
-
title: shared_namespaceObject.PropTypes.string.def(''),
|
586
|
+
title: shared_namespaceObject.PropTypes.string.def('title'),
|
597
587
|
// 显示 header 的位置
|
598
588
|
headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
|
599
589
|
// 显示 footer 的位置
|
600
590
|
footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
|
601
591
|
// 颜色 按钮类型
|
602
|
-
|
592
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
603
593
|
// 对话框类型
|
604
594
|
dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
|
605
595
|
// 按钮loading
|
@@ -648,45 +638,13 @@ function _isSlot(s) {
|
|
648
638
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
649
639
|
}
|
650
640
|
/* harmony default export */ const dialog = ((0,external_vue_namespaceObject.defineComponent)({
|
641
|
+
// eslint-disable-next-line vue/no-reserved-component-names
|
651
642
|
name: 'Dialog',
|
652
643
|
props: src_props,
|
653
|
-
emits:
|
654
|
-
closed: function closed() {
|
655
|
-
return true;
|
656
|
-
},
|
657
|
-
shown: function shown() {
|
658
|
-
return true;
|
659
|
-
},
|
660
|
-
hidden: function hidden() {
|
661
|
-
return true;
|
662
|
-
},
|
663
|
-
'update:isShow': function updateIsShow(value) {
|
664
|
-
return value !== undefined;
|
665
|
-
},
|
666
|
-
confirm: function confirm() {
|
667
|
-
return true;
|
668
|
-
},
|
669
|
-
prev: function prev() {
|
670
|
-
return true;
|
671
|
-
},
|
672
|
-
next: function next() {
|
673
|
-
return true;
|
674
|
-
}
|
675
|
-
},
|
644
|
+
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
676
645
|
setup: function setup(props, _ref) {
|
677
646
|
var emit = _ref.emit;
|
678
647
|
var t = (0,config_provider_namespaceObject.useLocale)('dialog');
|
679
|
-
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
680
|
-
resolveClassName = _usePrefix.resolveClassName;
|
681
|
-
var isMoveing = (0,external_vue_namespaceObject.ref)(false);
|
682
|
-
var data = (0,external_vue_namespaceObject.reactive)({
|
683
|
-
positionX: 0,
|
684
|
-
positionY: 0,
|
685
|
-
moveStyle: {
|
686
|
-
top: '50%',
|
687
|
-
left: '50%'
|
688
|
-
}
|
689
|
-
});
|
690
648
|
var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
|
691
649
|
if (props.confirmText === undefined) {
|
692
650
|
return t.value.ok;
|
@@ -711,6 +669,33 @@ function _isSlot(s) {
|
|
711
669
|
}
|
712
670
|
return props.nextText;
|
713
671
|
});
|
672
|
+
var data = (0,external_vue_namespaceObject.reactive)({
|
673
|
+
positionX: 0,
|
674
|
+
positionY: 0,
|
675
|
+
moveStyle: {
|
676
|
+
top: '50%',
|
677
|
+
left: '50%'
|
678
|
+
}
|
679
|
+
});
|
680
|
+
var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
|
681
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
682
|
+
return props.isShow;
|
683
|
+
}, function (val) {
|
684
|
+
if (!val) {
|
685
|
+
setTimeout(function () {
|
686
|
+
data.moveStyle = {
|
687
|
+
top: '50%',
|
688
|
+
left: '50%'
|
689
|
+
};
|
690
|
+
data.positionX = 0;
|
691
|
+
data.positionY = 0;
|
692
|
+
isModalShow.value = false;
|
693
|
+
}, 250);
|
694
|
+
} else {
|
695
|
+
isModalShow.value = true;
|
696
|
+
}
|
697
|
+
emit('value-change', val);
|
698
|
+
});
|
714
699
|
// 关闭弹框
|
715
700
|
var handleClose = /*#__PURE__*/function () {
|
716
701
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
@@ -731,6 +716,7 @@ function _isSlot(s) {
|
|
731
716
|
if (shouldClose) {
|
732
717
|
emit('update:isShow', false);
|
733
718
|
emit('closed');
|
719
|
+
isModalShow.value = false;
|
734
720
|
}
|
735
721
|
case 6:
|
736
722
|
case "end":
|
@@ -746,11 +732,13 @@ function _isSlot(s) {
|
|
746
732
|
emit('update:isShow', false);
|
747
733
|
emit('confirm');
|
748
734
|
};
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
735
|
+
// 按 esc 关闭弹框
|
736
|
+
var escCloseHandler = function escCloseHandler(e) {
|
737
|
+
if (props.isShow && props.closeIcon) {
|
738
|
+
if (e.keyCode === 27) {
|
739
|
+
handleClose();
|
740
|
+
}
|
741
|
+
}
|
754
742
|
};
|
755
743
|
// 上一步
|
756
744
|
var handlePrevStep = function handlePrevStep() {
|
@@ -761,7 +749,7 @@ function _isSlot(s) {
|
|
761
749
|
emit('next');
|
762
750
|
};
|
763
751
|
// 拖拽事件
|
764
|
-
var
|
752
|
+
var moveHandler = function moveHandler(e) {
|
765
753
|
if (props.fullscreen) {
|
766
754
|
return false;
|
767
755
|
}
|
@@ -780,7 +768,6 @@ function _isSlot(s) {
|
|
780
768
|
disX = e.clientX - odiv.offsetLeft;
|
781
769
|
disY = e.clientY - odiv.offsetTop;
|
782
770
|
}
|
783
|
-
isMoveing.value = true;
|
784
771
|
document.onmousemove = function (e) {
|
785
772
|
var boxLeft = window.innerWidth - parentWidth;
|
786
773
|
var boxTop = window.innerHeight - parentHeight;
|
@@ -804,36 +791,68 @@ function _isSlot(s) {
|
|
804
791
|
document.onmouseup = function () {
|
805
792
|
document.onmousemove = null;
|
806
793
|
document.onmouseup = null;
|
807
|
-
isMoveing.value = false;
|
808
794
|
};
|
809
795
|
};
|
796
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
797
|
+
resolveClassName = _usePrefix.resolveClassName;
|
798
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
799
|
+
if (props.escClose) {
|
800
|
+
addEventListener('keydown', escCloseHandler);
|
801
|
+
}
|
802
|
+
});
|
803
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
804
|
+
if (props.escClose) {
|
805
|
+
removeEventListener('keydown', escCloseHandler);
|
806
|
+
}
|
807
|
+
});
|
810
808
|
return {
|
811
809
|
data: data,
|
810
|
+
handleClose: handleClose,
|
811
|
+
handleConfirm: handleConfirm,
|
812
|
+
escCloseHandler: escCloseHandler,
|
813
|
+
moveHandler: moveHandler,
|
814
|
+
handlePrevStep: handlePrevStep,
|
815
|
+
handleNextStep: handleNextStep,
|
816
|
+
isModalShow: isModalShow,
|
812
817
|
localConfirmText: localConfirmText,
|
813
818
|
localCancelText: localCancelText,
|
814
819
|
localPrevText: localPrevText,
|
815
820
|
localNextText: localNextText,
|
816
|
-
resolveClassName: resolveClassName
|
817
|
-
handleHidden: handleHidden,
|
818
|
-
handleShown: handleShown,
|
819
|
-
handleClose: handleClose,
|
820
|
-
handleConfirm: handleConfirm,
|
821
|
-
handleMousedown: handleMousedown,
|
822
|
-
handlePrevStep: handlePrevStep,
|
823
|
-
handleNextStep: handleNextStep
|
821
|
+
resolveClassName: resolveClassName
|
824
822
|
};
|
825
823
|
},
|
826
824
|
render: function render() {
|
827
825
|
var _this = this;
|
826
|
+
var renderIcon = function renderIcon() {
|
827
|
+
var iconMap = {
|
828
|
+
loading: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
|
829
|
+
"class": [_this.resolveClassName('info-icon'), 'primary']
|
830
|
+
}, null),
|
831
|
+
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
|
832
|
+
"class": [_this.resolveClassName('info-icon'), 'warning']
|
833
|
+
}, null),
|
834
|
+
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
|
835
|
+
"class": [_this.resolveClassName('info-icon'), 'success']
|
836
|
+
}, null),
|
837
|
+
danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
838
|
+
"class": [_this.resolveClassName('info-icon'), 'danger']
|
839
|
+
}, null)
|
840
|
+
};
|
841
|
+
return iconMap[_this.infoType];
|
842
|
+
};
|
828
843
|
var dialogSlot = {
|
829
844
|
header: function header() {
|
830
|
-
var _this$$slots$tools, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
|
845
|
+
var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
|
831
846
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
832
|
-
"class":
|
833
|
-
"onMousedown": _this.
|
834
|
-
}, [(_this$$slots$tools = (_this$$slots = _this.$slots).tools) === null || _this$$slots$
|
847
|
+
"class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
|
848
|
+
"onMousedown": _this.moveHandler
|
849
|
+
}, [(_this$$slots$tools = (_this$$slots$tools2 = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools2 === void 0 ? void 0 : _this$$slots$tools2.call(_this$$slots)) !== null && _this$$slots$tools !== void 0 ? _this$$slots$tools : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
835
850
|
"class": _this.resolveClassName('dialog-header')
|
836
|
-
}, [(0,external_vue_namespaceObject.createVNode)("
|
851
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
852
|
+
"class": _this.resolveClassName('dialog-header-icon')
|
853
|
+
}, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
|
854
|
+
"name": "info-icon"
|
855
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
837
856
|
"class": _this.resolveClassName('dialog-title'),
|
838
857
|
"style": "text-align: ".concat(_this.headerAlign)
|
839
858
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots2 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots2)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : _this.title])])];
|
@@ -857,7 +876,7 @@ function _isSlot(s) {
|
|
857
876
|
if (_this.dialogType === 'operation') {
|
858
877
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
859
878
|
"onClick": _this.handleConfirm,
|
860
|
-
"theme": _this.
|
879
|
+
"theme": _this.theme,
|
861
880
|
"loading": _this.isLoading
|
862
881
|
}, {
|
863
882
|
"default": function _default() {
|
@@ -876,7 +895,7 @@ function _isSlot(s) {
|
|
876
895
|
if (_this.dialogType === 'confirm') {
|
877
896
|
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
878
897
|
"onClick": _this.handleConfirm,
|
879
|
-
"theme": _this.
|
898
|
+
"theme": _this.theme,
|
880
899
|
"loading": _this.isLoading
|
881
900
|
}, {
|
882
901
|
"default": function _default() {
|
@@ -908,7 +927,7 @@ function _isSlot(s) {
|
|
908
927
|
}
|
909
928
|
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
910
929
|
"onClick": _this.handleConfirm,
|
911
|
-
"theme": _this.
|
930
|
+
"theme": _this.theme,
|
912
931
|
"loading": _this.isLoading
|
913
932
|
}, {
|
914
933
|
"default": function _default() {
|
@@ -934,28 +953,18 @@ function _isSlot(s) {
|
|
934
953
|
}, [renderFooterAction()]);
|
935
954
|
},
|
936
955
|
close: function close() {
|
937
|
-
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error,
|
956
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
957
|
+
"onClick": _this.handleClose
|
958
|
+
}, null);
|
938
959
|
}
|
939
960
|
};
|
940
|
-
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], {
|
961
|
+
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
941
962
|
"class": _defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('dialog'), true), this.resolveClassName('dialog-wrapper'), true), 'is-fullscreen', this.fullscreen),
|
942
|
-
"isShow": this.isShow,
|
943
|
-
"fullscreen": this.fullscreen,
|
944
|
-
"width": this.fullscreen ? 'auto' : this.width,
|
945
|
-
"animateType": "fadein",
|
946
|
-
"beforeClose": this.beforeClose,
|
947
|
-
"closeIcon": this.closeIcon,
|
948
|
-
"escClose": this.escClose,
|
949
|
-
"quickClose": this.quickClose,
|
950
|
-
"showMask": this.showMask,
|
951
|
-
"transfer": this.transfer,
|
952
|
-
"left": this.fullscreen ? '0px' : this.data.moveStyle.left,
|
953
|
-
"top": this.fullscreen ? '0px' : this.data.moveStyle.top,
|
954
|
-
"zIndex": this.zIndex,
|
955
963
|
"onClose": this.handleClose,
|
956
|
-
"
|
957
|
-
"
|
958
|
-
|
964
|
+
"isShow": this.isModalShow,
|
965
|
+
"left": this.data.moveStyle.left,
|
966
|
+
"top": this.data.moveStyle.top
|
967
|
+
}), _isSlot(dialogSlot) ? dialogSlot : {
|
959
968
|
"default": function _default() {
|
960
969
|
return [dialogSlot];
|
961
970
|
}
|
package/lib/dialog/props.d.ts
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
declare const props: {
|
2
|
-
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
3
|
-
default: boolean;
|
4
|
-
} & {
|
5
|
-
default: boolean;
|
6
|
-
};
|
7
2
|
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
8
3
|
default: string;
|
9
4
|
};
|
@@ -35,7 +30,7 @@ declare const props: {
|
|
35
30
|
footerAlign: import("vue-types").VueTypeValidableDef<"right" | "left" | "center"> & {
|
36
31
|
default: "right" | "left" | "center";
|
37
32
|
};
|
38
|
-
|
33
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
39
34
|
default: "success" | "warning" | "danger" | "primary";
|
40
35
|
};
|
41
36
|
dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
|
@@ -49,8 +44,18 @@ declare const props: {
|
|
49
44
|
} & {
|
50
45
|
default: boolean;
|
51
46
|
};
|
52
|
-
width: import("vue-types").VueTypeDef<string | number
|
53
|
-
|
47
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
48
|
+
default: string | number;
|
49
|
+
};
|
50
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
51
|
+
default: string | number;
|
52
|
+
};
|
53
|
+
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
54
|
+
default: string;
|
55
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
56
|
+
default: () => unknown[];
|
57
|
+
});
|
58
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
54
59
|
default: boolean;
|
55
60
|
} & {
|
56
61
|
default: boolean;
|
@@ -70,6 +75,17 @@ declare const props: {
|
|
70
75
|
} & {
|
71
76
|
default: boolean;
|
72
77
|
};
|
78
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
79
|
+
default: boolean;
|
80
|
+
} & {
|
81
|
+
default: boolean;
|
82
|
+
};
|
83
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
84
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
|
+
default: boolean;
|
86
|
+
} & {
|
87
|
+
default: boolean;
|
88
|
+
};
|
73
89
|
quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
90
|
default: boolean;
|
75
91
|
} & {
|
@@ -79,6 +95,14 @@ declare const props: {
|
|
79
95
|
default: string | boolean | (() => HTMLElement);
|
80
96
|
};
|
81
97
|
zIndex: import("vue-types").VueTypeDef<string | number>;
|
98
|
+
maxHeight: import("vue-types").VueTypeValidableDef<string> & {
|
99
|
+
default: string;
|
100
|
+
};
|
101
|
+
direction: import("vue-types").VueTypeValidableDef<string> & {
|
102
|
+
default: string;
|
103
|
+
} & {
|
104
|
+
default: string;
|
105
|
+
};
|
82
106
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
83
107
|
default: string;
|
84
108
|
} & {
|
@@ -88,11 +112,27 @@ declare const props: {
|
|
88
112
|
default: "show" | "if";
|
89
113
|
};
|
90
114
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
115
|
+
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
} & {
|
118
|
+
default: boolean;
|
119
|
+
};
|
120
|
+
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
121
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
122
|
+
default: string;
|
123
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
124
|
+
default: () => unknown[];
|
125
|
+
});
|
91
126
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
92
127
|
default: string;
|
93
128
|
};
|
94
129
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
95
130
|
default: string;
|
96
131
|
};
|
132
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
133
|
+
default: number;
|
134
|
+
} & {
|
135
|
+
default: number;
|
136
|
+
};
|
97
137
|
};
|
98
138
|
export default props;
|
package/lib/info-box/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
declare const BkInfoBox: ((config: Partial<import("./info-box").
|
1
|
+
declare const BkInfoBox: ((config: Partial<import("./info-box").ModalFuncProps>) => {
|
2
2
|
show: () => void;
|
3
3
|
hide: () => void;
|
4
|
-
update: (config: Partial<import("./info-box").
|
4
|
+
update: (config: Partial<import("./info-box").ModalFuncProps>) => void;
|
5
5
|
destroy: () => void;
|
6
6
|
}) & import("vue").Plugin<any[]>;
|
7
7
|
export default BkInfoBox;
|