bkui-vue 0.0.2-beta.138 → 0.0.2-beta.139
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/lib/affix/index.js +14 -13
- package/lib/alert/index.js +23 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +21 -20
- package/lib/badge/index.js +20 -19
- package/lib/breadcrumb/index.js +25 -24
- package/lib/button/index.js +36 -28
- package/lib/card/index.js +42 -35
- package/lib/cascader/index.js +99 -80
- package/lib/checkbox/index.js +33 -32
- package/lib/code-diff/index.js +13 -12
- package/lib/collapse/index.js +40 -39
- package/lib/collapse-transition/index.js +8 -8
- package/lib/color-picker/index.js +49 -48
- package/lib/config-provider/index.js +8 -8
- package/lib/container/index.js +20 -19
- package/lib/date-picker/index.js +68 -61
- package/lib/dialog/index.js +62 -49
- package/lib/directives/index.js +12 -12
- package/lib/dist.index.js +3 -3
- package/lib/divider/index.js +14 -13
- package/lib/dropdown/index.js +31 -24
- package/lib/exception/index.js +12 -11
- package/lib/fixed-navbar/index.js +14 -13
- package/lib/form/index.js +49 -48
- package/lib/image/index.js +37 -37
- package/lib/index.js +6 -6
- package/lib/info-box/index.js +63 -50
- package/lib/input/index.js +60 -59
- package/lib/link/index.js +14 -13
- package/lib/loading/index.js +18 -17
- package/lib/menu/index.js +14 -13
- package/lib/message/index.js +39 -38
- package/lib/modal/index.js +32 -31
- package/lib/navigation/index.js +15 -14
- package/lib/notify/index.js +32 -31
- package/lib/overflow-title/index.js +21 -14
- package/lib/pagination/index.js +64 -50
- package/lib/plugin-popover/index.js +53 -53
- package/lib/pop-confirm/index.js +41 -28
- package/lib/popover/index.js +53 -52
- package/lib/popover2/index.js +3 -3
- package/lib/preset.js +4 -4
- package/lib/process/index.js +26 -26
- package/lib/progress/index.js +27 -26
- package/lib/radio/index.js +33 -32
- package/lib/rate/index.js +23 -22
- package/lib/resize-layout/index.js +26 -25
- package/lib/search-select/index.js +67 -49
- package/lib/select/index.js +164 -126
- package/lib/sideslider/index.js +21 -14
- package/lib/slider/index.js +35 -22
- package/lib/steps/index.js +29 -28
- package/lib/swiper/index.js +15 -14
- package/lib/switcher/index.js +30 -29
- package/lib/tab/index.js +45 -44
- package/lib/table/index.js +189 -137
- package/lib/table-column/index.js +40 -40
- package/lib/tag/index.js +21 -20
- package/lib/tag-input/index.js +78 -64
- package/lib/time-picker/index.js +8 -7
- package/lib/timeline/index.js +12 -12
- package/lib/transfer/index.js +50 -36
- package/lib/tree/index.js +91 -72
- package/lib/upload/index.js +62 -48
- package/lib/virtual-render/index.js +34 -33
- package/package.json +1 -1
package/lib/dialog/index.js
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import "./dialog.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import
|
5
|
-
import * as
|
6
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
|
5
|
+
import "../button/button.less";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
9
|
+
import "../modal/modal.less";
|
7
10
|
/******/ var __webpack_modules__ = ({
|
8
11
|
|
9
12
|
/***/ 7609:
|
@@ -423,7 +426,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
423
426
|
;// CONCATENATED MODULE: external "../shared"
|
424
427
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
425
428
|
var y = x => () => x
|
426
|
-
const
|
429
|
+
const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
427
430
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
428
431
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
429
432
|
try {
|
@@ -463,21 +466,29 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
463
466
|
var regenerator = __webpack_require__(2841);
|
464
467
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
465
468
|
;// CONCATENATED MODULE: external "../button"
|
466
|
-
var
|
467
|
-
var
|
468
|
-
const
|
469
|
+
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
470
|
+
var button_y = x => () => x
|
471
|
+
const button_namespaceObject = button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"] });
|
472
|
+
;// CONCATENATED MODULE: external "../button/button.less"
|
473
|
+
var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
474
|
+
var button_less_y = x => () => x
|
475
|
+
const button_less_namespaceObject = button_less_x({ });
|
469
476
|
;// CONCATENATED MODULE: external "../config-provider"
|
470
|
-
var
|
471
|
-
var
|
472
|
-
const
|
477
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
478
|
+
var config_provider_y = x => () => x
|
479
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
473
480
|
;// CONCATENATED MODULE: external "../icon"
|
474
|
-
var
|
475
|
-
var
|
476
|
-
const
|
481
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
482
|
+
var icon_y = x => () => x
|
483
|
+
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 });
|
477
484
|
;// CONCATENATED MODULE: external "../modal"
|
478
|
-
var
|
479
|
-
var
|
480
|
-
const
|
485
|
+
var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
486
|
+
var modal_y = x => () => x
|
487
|
+
const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__.propsMixin });
|
488
|
+
;// CONCATENATED MODULE: external "../modal/modal.less"
|
489
|
+
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
490
|
+
var modal_less_y = x => () => x
|
491
|
+
const modal_less_namespaceObject = modal_less_x({ });
|
481
492
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
482
493
|
function _typeof(obj) {
|
483
494
|
"@babel/helpers - typeof";
|
@@ -554,36 +565,36 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
554
565
|
*/
|
555
566
|
|
556
567
|
|
557
|
-
var props = _objectSpread(_objectSpread({},
|
558
|
-
width:
|
559
|
-
height:
|
568
|
+
var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
|
569
|
+
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
570
|
+
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
560
571
|
// 确认按钮文字
|
561
572
|
// confirmText: PropTypes.string.def('确定'),
|
562
|
-
confirmText:
|
573
|
+
confirmText: shared_namespaceObject.PropTypes.string,
|
563
574
|
// 取消按钮文字
|
564
575
|
// cancelText: PropTypes.string.def('取消'),
|
565
|
-
cancelText:
|
576
|
+
cancelText: shared_namespaceObject.PropTypes.string,
|
566
577
|
// 步骤按钮文字
|
567
578
|
// prevText: PropTypes.string.def('上一步'),
|
568
|
-
prevText:
|
579
|
+
prevText: shared_namespaceObject.PropTypes.string,
|
569
580
|
// nextText: PropTypes.string.def('下一步'),
|
570
|
-
nextText:
|
581
|
+
nextText: shared_namespaceObject.PropTypes.string,
|
571
582
|
// 当前步骤
|
572
|
-
current:
|
583
|
+
current: shared_namespaceObject.PropTypes.number.def(1),
|
573
584
|
// 总步数
|
574
|
-
totalStep:
|
585
|
+
totalStep: shared_namespaceObject.PropTypes.number,
|
575
586
|
// 弹框的标题
|
576
|
-
title:
|
587
|
+
title: shared_namespaceObject.PropTypes.string.def('title'),
|
577
588
|
// 显示 header 的位置
|
578
|
-
headerAlign: (0,
|
589
|
+
headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
|
579
590
|
// 显示 footer 的位置
|
580
|
-
footerAlign: (0,
|
591
|
+
footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
|
581
592
|
// 颜色 按钮类型
|
582
|
-
theme:
|
593
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
583
594
|
// 对话框类型
|
584
|
-
dialogType: (0,
|
595
|
+
dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
|
585
596
|
// 按钮loading
|
586
|
-
isLoading:
|
597
|
+
isLoading: shared_namespaceObject.PropTypes.bool.def(false)
|
587
598
|
});
|
588
599
|
/* harmony default export */ const src_props = (props);
|
589
600
|
;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
|
@@ -621,6 +632,8 @@ var props = _objectSpread(_objectSpread({}, external_modal_namespaceObject.props
|
|
621
632
|
|
622
633
|
|
623
634
|
|
635
|
+
|
636
|
+
|
624
637
|
function _isSlot(s) {
|
625
638
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
626
639
|
}
|
@@ -631,7 +644,7 @@ function _isSlot(s) {
|
|
631
644
|
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
632
645
|
setup: function setup(props, _ref) {
|
633
646
|
var emit = _ref.emit;
|
634
|
-
var t = (0,
|
647
|
+
var t = (0,config_provider_namespaceObject.useLocale)('dialog');
|
635
648
|
var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
|
636
649
|
if (props.confirmText === undefined) {
|
637
650
|
return t.value.ok;
|
@@ -795,7 +808,7 @@ function _isSlot(s) {
|
|
795
808
|
document.onmouseup = null;
|
796
809
|
};
|
797
810
|
};
|
798
|
-
var _usePrefix = (0,
|
811
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
799
812
|
resolveClassName = _usePrefix.resolveClassName;
|
800
813
|
return {
|
801
814
|
data: data,
|
@@ -818,16 +831,16 @@ function _isSlot(s) {
|
|
818
831
|
var _this = this;
|
819
832
|
var renderIcon = function renderIcon() {
|
820
833
|
var iconMap = {
|
821
|
-
loading: (0,external_vue_namespaceObject.createVNode)(
|
834
|
+
loading: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
|
822
835
|
"class": [_this.resolveClassName('info-icon'), 'primary']
|
823
836
|
}, null),
|
824
|
-
warning: (0,external_vue_namespaceObject.createVNode)(
|
837
|
+
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
|
825
838
|
"class": [_this.resolveClassName('info-icon'), 'warning']
|
826
839
|
}, null),
|
827
|
-
success: (0,external_vue_namespaceObject.createVNode)(
|
840
|
+
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
|
828
841
|
"class": [_this.resolveClassName('info-icon'), 'success']
|
829
842
|
}, null),
|
830
|
-
danger: (0,external_vue_namespaceObject.createVNode)(
|
843
|
+
danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
831
844
|
"class": [_this.resolveClassName('info-icon'), 'danger']
|
832
845
|
}, null)
|
833
846
|
};
|
@@ -859,21 +872,21 @@ function _isSlot(s) {
|
|
859
872
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
860
873
|
"class": _this.resolveClassName('dialog-footer'),
|
861
874
|
"style": "text-align: ".concat(_this.footerAlign)
|
862
|
-
}, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(
|
875
|
+
}, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
863
876
|
"class": _this.resolveClassName('dialog-perv'),
|
864
877
|
"onClick": _this.handlePrevStep
|
865
878
|
}, {
|
866
879
|
"default": function _default() {
|
867
880
|
return [_this.localPrevText];
|
868
881
|
}
|
869
|
-
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(
|
882
|
+
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
870
883
|
"class": _this.resolveClassName('dialog-next'),
|
871
884
|
"onClick": _this.handleNextStep
|
872
885
|
}, {
|
873
886
|
"default": function _default() {
|
874
887
|
return [_this.localNextText];
|
875
888
|
}
|
876
|
-
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(
|
889
|
+
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
877
890
|
"onClick": _this.handleConfirm,
|
878
891
|
"theme": _this.theme,
|
879
892
|
"loading": _this.isLoading
|
@@ -881,7 +894,7 @@ function _isSlot(s) {
|
|
881
894
|
"default": function _default() {
|
882
895
|
return [_this.localConfirmText];
|
883
896
|
}
|
884
|
-
}) : '', (0,external_vue_namespaceObject.createVNode)(
|
897
|
+
}) : '', (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
885
898
|
"class": _this.resolveClassName('dialog-cancel'),
|
886
899
|
"onClick": _this.handleClose,
|
887
900
|
"disabled": _this.isLoading
|
@@ -889,7 +902,7 @@ function _isSlot(s) {
|
|
889
902
|
"default": function _default() {
|
890
903
|
return [_this.localCancelText];
|
891
904
|
}
|
892
|
-
})]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(
|
905
|
+
})]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
893
906
|
"onClick": _this.handleConfirm,
|
894
907
|
"theme": _this.theme,
|
895
908
|
"loading": _this.isLoading
|
@@ -897,7 +910,7 @@ function _isSlot(s) {
|
|
897
910
|
"default": function _default() {
|
898
911
|
return [_this.localConfirmText];
|
899
912
|
}
|
900
|
-
}), (0,external_vue_namespaceObject.createVNode)(
|
913
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
901
914
|
"class": _this.resolveClassName('dialog-cancel'),
|
902
915
|
"onClick": _this.handleClose,
|
903
916
|
"disabled": _this.isLoading
|
@@ -905,7 +918,7 @@ function _isSlot(s) {
|
|
905
918
|
"default": function _default() {
|
906
919
|
return [_this.localCancelText];
|
907
920
|
}
|
908
|
-
})]) : '', _this.dialogType === 'confirm' ? (_this$$slots$footer5 = (_this$$slots$footer6 = (_this$$slots6 = _this.$slots).footer) === null || _this$$slots$footer6 === void 0 ? void 0 : _this$$slots$footer6.call(_this$$slots6)) !== null && _this$$slots$footer5 !== void 0 ? _this$$slots$footer5 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(
|
921
|
+
})]) : '', _this.dialogType === 'confirm' ? (_this$$slots$footer5 = (_this$$slots$footer6 = (_this$$slots6 = _this.$slots).footer) === null || _this$$slots$footer6 === void 0 ? void 0 : _this$$slots$footer6.call(_this$$slots6)) !== null && _this$$slots$footer5 !== void 0 ? _this$$slots$footer5 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
909
922
|
"onClick": _this.handleConfirm,
|
910
923
|
"theme": _this.theme,
|
911
924
|
"loading": _this.isLoading
|
@@ -917,13 +930,13 @@ function _isSlot(s) {
|
|
917
930
|
},
|
918
931
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
919
932
|
close: function close() {
|
920
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
933
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
921
934
|
"onClick": _this.handleClose
|
922
935
|
}, null);
|
923
936
|
}
|
924
937
|
};
|
925
938
|
var className = "".concat(this.resolveClassName('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
926
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
939
|
+
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
927
940
|
"class": className,
|
928
941
|
"onClose": this.handleClose,
|
929
942
|
"isShow": this.isModalShow,
|
@@ -963,7 +976,7 @@ function _isSlot(s) {
|
|
963
976
|
*/
|
964
977
|
|
965
978
|
|
966
|
-
var BkDialog = (0,
|
979
|
+
var BkDialog = (0,shared_namespaceObject.withInstall)(dialog);
|
967
980
|
/* harmony default export */ const src = (BkDialog);
|
968
981
|
})();
|
969
982
|
|
package/lib/directives/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
6
6
|
/******/ var __webpack_modules__ = ({
|
7
7
|
|
8
8
|
/***/ 2439:
|
@@ -944,9 +944,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
944
944
|
var external_vue_y = x => () => x
|
945
945
|
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
946
946
|
;// CONCATENATED MODULE: external "../shared"
|
947
|
-
var
|
948
|
-
var
|
949
|
-
const
|
947
|
+
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
948
|
+
var shared_y = x => () => x
|
949
|
+
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
|
950
950
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
951
951
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
952
952
|
var core_y = x => () => x
|
@@ -1104,9 +1104,9 @@ function renderContent(opts) {
|
|
1104
1104
|
theme = opts.theme,
|
1105
1105
|
extCls = opts.extCls;
|
1106
1106
|
var isLight = theme === 'light';
|
1107
|
-
var zIndex =
|
1107
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
1108
1108
|
var content = document.createElement('div');
|
1109
|
-
content.className = "".concat((0,
|
1109
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper'), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1110
1110
|
content.innerText = value;
|
1111
1111
|
content.style.zIndex = String(zIndex);
|
1112
1112
|
renderContext(value, content);
|
@@ -1122,7 +1122,7 @@ function renderContent(opts) {
|
|
1122
1122
|
*/
|
1123
1123
|
function renderArrow() {
|
1124
1124
|
var arrow = document.createElement('div');
|
1125
|
-
arrow.className = (0,
|
1125
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow');
|
1126
1126
|
arrow.setAttribute('data-popper-arrow', '');
|
1127
1127
|
return arrow;
|
1128
1128
|
}
|
@@ -1230,9 +1230,9 @@ function hide(el) {
|
|
1230
1230
|
}
|
1231
1231
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1232
1232
|
;// CONCATENATED MODULE: external "../plugin-popover"
|
1233
|
-
var
|
1234
|
-
var
|
1235
|
-
const
|
1233
|
+
var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1234
|
+
var plugin_popover_y = x => () => x
|
1235
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
|
1236
1236
|
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
1237
1237
|
|
1238
1238
|
/*
|
@@ -1311,7 +1311,7 @@ var createInstance = function createInstance(el, binding) {
|
|
1311
1311
|
onContentMouseenter: handleContentEnter,
|
1312
1312
|
onContentMouseleave: handleContentLeave
|
1313
1313
|
});
|
1314
|
-
instance = (0,
|
1314
|
+
instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
|
1315
1315
|
}, 300);
|
1316
1316
|
};
|
1317
1317
|
var handleMouseLeave = function handleMouseLeave() {
|
package/lib/dist.index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_styles_5e77b831__ from "../styles";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
@@ -32,10 +32,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
32
32
|
"default": () => (/* reexport */ external_preset_namespaceObject["default"])
|
33
33
|
});
|
34
34
|
|
35
|
-
;// CONCATENATED MODULE: external "
|
35
|
+
;// CONCATENATED MODULE: external "../styles"
|
36
36
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
37
|
var y = x => () => x
|
38
|
-
const
|
38
|
+
const styles_namespaceObject = x({ });
|
39
39
|
;// CONCATENATED MODULE: external "./preset"
|
40
40
|
var external_preset_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
41
|
var external_preset_y = x => () => x
|
package/lib/divider/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./divider.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
/******/ // The require scope
|
5
6
|
/******/ var __webpack_require__ = {};
|
6
7
|
/******/
|
@@ -33,15 +34,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
33
34
|
;// CONCATENATED MODULE: external "../shared"
|
34
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
36
|
var y = x => () => x
|
36
|
-
const
|
37
|
+
const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.alignType, ["directionType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.directionType, ["lineStyleType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.lineStyleType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
38
|
;// CONCATENATED MODULE: external "vue"
|
38
39
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
40
|
var external_vue_y = x => () => x
|
40
41
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
|
41
42
|
;// CONCATENATED MODULE: external "../config-provider"
|
42
|
-
var
|
43
|
-
var
|
44
|
-
const
|
43
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
44
|
+
var config_provider_y = x => () => x
|
45
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
45
46
|
;// CONCATENATED MODULE: ../../packages/divider/src/props.ts
|
46
47
|
/*
|
47
48
|
* Tencent is pleased to support the open source community by making
|
@@ -70,11 +71,11 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
70
71
|
*/
|
71
72
|
|
72
73
|
var dividerProps = {
|
73
|
-
direction: (0,
|
74
|
-
align: (0,
|
75
|
-
color:
|
76
|
-
width:
|
77
|
-
type: (0,
|
74
|
+
direction: (0,shared_namespaceObject.directionType)(),
|
75
|
+
align: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.CENTER),
|
76
|
+
color: shared_namespaceObject.PropTypes.string.def('#dde4eb'),
|
77
|
+
width: shared_namespaceObject.PropTypes.number.def(1),
|
78
|
+
type: (0,shared_namespaceObject.lineStyleType)()
|
78
79
|
};
|
79
80
|
;// CONCATENATED MODULE: ../../packages/divider/src/divider.tsx
|
80
81
|
|
@@ -121,7 +122,7 @@ var dividerProps = {
|
|
121
122
|
borderBottom: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
|
122
123
|
};
|
123
124
|
};
|
124
|
-
var _usePrefix = (0,
|
125
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
125
126
|
resolveClassName = _usePrefix.resolveClassName;
|
126
127
|
var slots;
|
127
128
|
if (this.$slots["default"]) {
|
@@ -163,7 +164,7 @@ var dividerProps = {
|
|
163
164
|
*/
|
164
165
|
|
165
166
|
|
166
|
-
var BkDivider = (0,
|
167
|
+
var BkDivider = (0,shared_namespaceObject.withInstall)(divider);
|
167
168
|
/* harmony default export */ const src = (BkDivider);
|
168
169
|
var __webpack_exports__default = __webpack_exports__.Z;
|
169
170
|
export { __webpack_exports__default as default };
|
package/lib/dropdown/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "./dropdown.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
4
|
-
import * as
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
7
|
+
import "../popover/popover.less";
|
6
8
|
/******/ // The require scope
|
7
9
|
/******/ var __webpack_require__ = {};
|
8
10
|
/******/
|
@@ -38,7 +40,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
38
40
|
;// CONCATENATED MODULE: external "../shared"
|
39
41
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
42
|
var y = x => () => x
|
41
|
-
const
|
43
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
42
44
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
43
45
|
function _typeof(obj) {
|
44
46
|
"@babel/helpers - typeof";
|
@@ -93,13 +95,17 @@ var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
93
95
|
var merge_y = x => () => x
|
94
96
|
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
95
97
|
;// CONCATENATED MODULE: external "../config-provider"
|
96
|
-
var
|
97
|
-
var
|
98
|
-
const
|
98
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
99
|
+
var config_provider_y = x => () => x
|
100
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
99
101
|
;// CONCATENATED MODULE: external "../popover"
|
100
|
-
var
|
101
|
-
var
|
102
|
-
const
|
102
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
103
|
+
var popover_y = x => () => x
|
104
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
105
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
106
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
107
|
+
var popover_less_y = x => () => x
|
108
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
103
109
|
;// CONCATENATED MODULE: ../../packages/dropdown/src/dropdown.tsx
|
104
110
|
|
105
111
|
|
@@ -133,21 +139,22 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
133
139
|
|
134
140
|
|
135
141
|
|
142
|
+
|
136
143
|
/* harmony default export */ const dropdown = ((0,external_vue_namespaceObject.defineComponent)({
|
137
144
|
name: 'Dropdown',
|
138
145
|
props: {
|
139
146
|
/** trigger = manual时候控制显隐藏 */
|
140
|
-
isShow:
|
147
|
+
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
141
148
|
/** 弹层出现位置 */
|
142
|
-
placement: (0,
|
149
|
+
placement: (0,shared_namespaceObject.placementType)(),
|
143
150
|
/** 触发方式 */
|
144
|
-
trigger: (0,
|
151
|
+
trigger: (0,shared_namespaceObject.triggerType)(),
|
145
152
|
/** 是否禁用 */
|
146
|
-
disabled:
|
153
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
147
154
|
/** popover属性 */
|
148
|
-
popoverOptions:
|
155
|
+
popoverOptions: shared_namespaceObject.PropTypes.object.def({}),
|
149
156
|
/** 外部设置的 class name */
|
150
|
-
extCls:
|
157
|
+
extCls: shared_namespaceObject.PropTypes.string
|
151
158
|
},
|
152
159
|
emits: ['showChange', 'show', 'hide'],
|
153
160
|
setup: function setup(_props, _ref) {
|
@@ -167,7 +174,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
167
174
|
handleShowChagne(false);
|
168
175
|
};
|
169
176
|
var popoverRef = (0,external_vue_namespaceObject.ref)(null);
|
170
|
-
var _usePrefix = (0,
|
177
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
171
178
|
resolveClassName = _usePrefix.resolveClassName;
|
172
179
|
return {
|
173
180
|
afterShow: afterShow,
|
@@ -178,7 +185,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
178
185
|
},
|
179
186
|
render: function render() {
|
180
187
|
var _this = this;
|
181
|
-
var wrapperClasses = (0,
|
188
|
+
var wrapperClasses = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(this.resolveClassName('dropdown')), true), this.$props.extCls);
|
182
189
|
/** popover 基础配置 */
|
183
190
|
var basePopoverOptions = {
|
184
191
|
theme: "light ".concat(this.resolveClassName('dropdown-popover')),
|
@@ -191,7 +198,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
191
198
|
var popoverOptions = (0,merge_namespaceObject["default"])(basePopoverOptions, this.popoverOptions);
|
192
199
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
193
200
|
"class": wrapperClasses
|
194
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
201
|
+
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
195
202
|
"ref": "popoverRef"
|
196
203
|
}, popoverOptions, {
|
197
204
|
"onAfterShow": this.afterShow,
|
@@ -246,7 +253,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
246
253
|
name: 'DropdownItem',
|
247
254
|
props: {
|
248
255
|
/** 外部设置的 class name */
|
249
|
-
extCls:
|
256
|
+
extCls: shared_namespaceObject.PropTypes.string
|
250
257
|
},
|
251
258
|
emits: ['click'],
|
252
259
|
setup: function setup(props, _ref) {
|
@@ -255,7 +262,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
255
262
|
evt.stopPropagation();
|
256
263
|
emit('click', evt);
|
257
264
|
};
|
258
|
-
var _usePrefix = (0,
|
265
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
259
266
|
resolveClassName = _usePrefix.resolveClassName;
|
260
267
|
var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
|
261
268
|
return [resolveClassName('dropdown-item'), props.extCls];
|
@@ -307,10 +314,10 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
307
314
|
name: 'DropdownMenu',
|
308
315
|
props: {
|
309
316
|
/** 外部设置的 class name */
|
310
|
-
extCls:
|
317
|
+
extCls: shared_namespaceObject.PropTypes.string
|
311
318
|
},
|
312
319
|
setup: function setup(props) {
|
313
|
-
var _usePrefix = (0,
|
320
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
314
321
|
resolveClassName = _usePrefix.resolveClassName;
|
315
322
|
var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
|
316
323
|
return [resolveClassName('dropdown-menu'), props.extCls];
|
@@ -356,7 +363,7 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
356
363
|
|
357
364
|
|
358
365
|
|
359
|
-
var BkDropdown = (0,
|
366
|
+
var BkDropdown = (0,shared_namespaceObject.withInstallProps)(dropdown, {
|
360
367
|
DropdownMenu: dropdown_menu,
|
361
368
|
DropdownItem: dropdown_item
|
362
369
|
});
|
package/lib/exception/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "./exception.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
|
-
import * as
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
7
|
/******/ var __webpack_modules__ = ({
|
7
8
|
|
8
9
|
/***/ 3760:
|
@@ -126,7 +127,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
126
127
|
;// CONCATENATED MODULE: external "../shared"
|
127
128
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
128
129
|
var y = x => () => x
|
129
|
-
const
|
130
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
130
131
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
131
132
|
function _typeof(obj) {
|
132
133
|
"@babel/helpers - typeof";
|
@@ -185,9 +186,9 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
185
186
|
var external_vue_types_y = x => () => x
|
186
187
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
187
188
|
;// CONCATENATED MODULE: external "../config-provider"
|
188
|
-
var
|
189
|
-
var
|
190
|
-
const
|
189
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
190
|
+
var config_provider_y = x => () => x
|
191
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
191
192
|
// EXTERNAL MODULE: ../../packages/exception/src/images/403.svg
|
192
193
|
var _403 = __webpack_require__(3760);
|
193
194
|
var _403_default = /*#__PURE__*/__webpack_require__.n(_403);
|
@@ -271,8 +272,8 @@ var SceneEnum;
|
|
271
272
|
type: (0,external_vue_types_namespaceObject.toType)('type', {}).def(ExceptionEnum.CODE_404),
|
272
273
|
// 场景
|
273
274
|
scene: (0,external_vue_types_namespaceObject.toType)('scene', {}).def(SceneEnum.PAGE),
|
274
|
-
title:
|
275
|
-
description:
|
275
|
+
title: shared_namespaceObject.PropTypes.string,
|
276
|
+
description: shared_namespaceObject.PropTypes.string
|
276
277
|
},
|
277
278
|
setup: function setup(props, _ref) {
|
278
279
|
var slots = _ref.slots;
|
@@ -285,7 +286,7 @@ var SceneEnum;
|
|
285
286
|
'search-empty': (search_empty_default()),
|
286
287
|
login: (login_default())
|
287
288
|
};
|
288
|
-
var _usePrefix = (0,
|
289
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
289
290
|
resolveClassName = _usePrefix.resolveClassName;
|
290
291
|
var renderImg = function renderImg() {
|
291
292
|
if ((0,isFunction_namespaceObject["default"])(slots.type)) {
|
@@ -338,7 +339,7 @@ var SceneEnum;
|
|
338
339
|
};
|
339
340
|
return function () {
|
340
341
|
var _classes;
|
341
|
-
var rootClass = (0,
|
342
|
+
var rootClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName('exception')), true), _defineProperty(_classes, "".concat(resolveClassName("exception-".concat(props.scene))), true), _classes));
|
342
343
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
343
344
|
"class": rootClass
|
344
345
|
}, [renderImg(), renderTitle(), renderDescription(), renderFooter()]);
|
@@ -373,7 +374,7 @@ var SceneEnum;
|
|
373
374
|
*/
|
374
375
|
|
375
376
|
|
376
|
-
var BkException = (0,
|
377
|
+
var BkException = (0,shared_namespaceObject.withInstall)(exception);
|
377
378
|
|
378
379
|
/* harmony default export */ const src = (BkException);
|
379
380
|
})();
|