bkui-vue 1.0.3-beta.26 → 1.0.3-beta.27
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 +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
- package/lib/styles/themes/themes copy.less +0 -167
package/lib/dialog/index.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
import "../
|
2
|
-
import "./dialog.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import "../
|
7
|
-
import * as
|
8
|
-
import * as
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
10
|
-
import "../modal/modal.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_59c00871__ from "../button";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__ from "../modal";
|
11
7
|
/******/ var __webpack_modules__ = ({
|
12
8
|
|
13
9
|
/***/ 7609:
|
@@ -427,7 +423,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
427
423
|
;// CONCATENATED MODULE: external "../shared"
|
428
424
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
429
425
|
var y = x => () => x
|
430
|
-
const
|
426
|
+
const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
431
427
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
432
428
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
433
429
|
try {
|
@@ -467,29 +463,21 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
467
463
|
var regenerator = __webpack_require__(2841);
|
468
464
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
469
465
|
;// CONCATENATED MODULE: external "../button"
|
470
|
-
var
|
471
|
-
var
|
472
|
-
const
|
473
|
-
;// CONCATENATED MODULE: external "../button/button.less"
|
474
|
-
var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
475
|
-
var button_less_y = x => () => x
|
476
|
-
const button_less_namespaceObject = button_less_x({ });
|
466
|
+
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
467
|
+
var external_button_y = x => () => x
|
468
|
+
const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
|
477
469
|
;// CONCATENATED MODULE: external "../config-provider"
|
478
|
-
var
|
479
|
-
var
|
480
|
-
const
|
470
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
471
|
+
var external_config_provider_y = x => () => x
|
472
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
481
473
|
;// CONCATENATED MODULE: external "../icon"
|
482
|
-
var
|
483
|
-
var
|
484
|
-
const
|
474
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
475
|
+
var external_icon_y = x => () => x
|
476
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
485
477
|
;// CONCATENATED MODULE: external "../modal"
|
486
|
-
var
|
487
|
-
var
|
488
|
-
const
|
489
|
-
;// CONCATENATED MODULE: external "../modal/modal.less"
|
490
|
-
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
491
|
-
var modal_less_y = x => () => x
|
492
|
-
const modal_less_namespaceObject = modal_less_x({ });
|
478
|
+
var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
479
|
+
var external_modal_y = x => () => x
|
480
|
+
const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__.propsMixin });
|
493
481
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
494
482
|
function _typeof(o) {
|
495
483
|
"@babel/helpers - typeof";
|
@@ -566,36 +554,36 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
566
554
|
*/
|
567
555
|
|
568
556
|
|
569
|
-
var props = _objectSpread(_objectSpread({},
|
570
|
-
width:
|
571
|
-
height:
|
557
|
+
var props = _objectSpread(_objectSpread({}, external_modal_namespaceObject.propsMixin), {}, {
|
558
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
559
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
572
560
|
// 确认按钮文字
|
573
561
|
// confirmText: PropTypes.string.def('确定'),
|
574
|
-
confirmText:
|
562
|
+
confirmText: external_shared_namespaceObject.PropTypes.string,
|
575
563
|
// 取消按钮文字
|
576
564
|
// cancelText: PropTypes.string.def('取消'),
|
577
|
-
cancelText:
|
565
|
+
cancelText: external_shared_namespaceObject.PropTypes.string,
|
578
566
|
// 步骤按钮文字
|
579
567
|
// prevText: PropTypes.string.def('上一步'),
|
580
|
-
prevText:
|
568
|
+
prevText: external_shared_namespaceObject.PropTypes.string,
|
581
569
|
// nextText: PropTypes.string.def('下一步'),
|
582
|
-
nextText:
|
570
|
+
nextText: external_shared_namespaceObject.PropTypes.string,
|
583
571
|
// 当前步骤
|
584
|
-
current:
|
572
|
+
current: external_shared_namespaceObject.PropTypes.number.def(1),
|
585
573
|
// 总步数
|
586
|
-
totalStep:
|
574
|
+
totalStep: external_shared_namespaceObject.PropTypes.number,
|
587
575
|
// 弹框的标题
|
588
|
-
title:
|
576
|
+
title: external_shared_namespaceObject.PropTypes.string.def('title'),
|
589
577
|
// 显示 header 的位置
|
590
|
-
headerAlign: (0,
|
578
|
+
headerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.LEFT),
|
591
579
|
// 显示 footer 的位置
|
592
|
-
footerAlign: (0,
|
580
|
+
footerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.RIGHT),
|
593
581
|
// 颜色 按钮类型
|
594
|
-
theme:
|
582
|
+
theme: external_shared_namespaceObject.PropTypes.theme().def(external_shared_namespaceObject.ThemeEnum.PRIMARY),
|
595
583
|
// 对话框类型
|
596
|
-
dialogType: (0,
|
584
|
+
dialogType: (0,external_shared_namespaceObject.dialogTypeUnion)(),
|
597
585
|
// 按钮loading
|
598
|
-
isLoading:
|
586
|
+
isLoading: external_shared_namespaceObject.PropTypes.bool.def(false)
|
599
587
|
});
|
600
588
|
/* harmony default export */ const src_props = (props);
|
601
589
|
;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
|
@@ -633,8 +621,6 @@ var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {
|
|
633
621
|
|
634
622
|
|
635
623
|
|
636
|
-
|
637
|
-
|
638
624
|
function _isSlot(s) {
|
639
625
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
640
626
|
}
|
@@ -645,7 +631,7 @@ function _isSlot(s) {
|
|
645
631
|
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
646
632
|
setup: function setup(props, _ref) {
|
647
633
|
var emit = _ref.emit;
|
648
|
-
var t = (0,
|
634
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('dialog');
|
649
635
|
var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
|
650
636
|
if (props.confirmText === undefined) {
|
651
637
|
return t.value.ok;
|
@@ -808,7 +794,7 @@ function _isSlot(s) {
|
|
808
794
|
document.onmouseup = null;
|
809
795
|
};
|
810
796
|
};
|
811
|
-
var _usePrefix = (0,
|
797
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
812
798
|
resolveClassName = _usePrefix.resolveClassName;
|
813
799
|
return {
|
814
800
|
data: data,
|
@@ -831,16 +817,16 @@ function _isSlot(s) {
|
|
831
817
|
var _this = this;
|
832
818
|
var renderIcon = function renderIcon() {
|
833
819
|
var iconMap = {
|
834
|
-
loading: (0,external_vue_namespaceObject.createVNode)(
|
820
|
+
loading: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, {
|
835
821
|
"class": [_this.resolveClassName('info-icon'), 'primary']
|
836
822
|
}, null),
|
837
|
-
warning: (0,external_vue_namespaceObject.createVNode)(
|
823
|
+
warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, {
|
838
824
|
"class": [_this.resolveClassName('info-icon'), 'warning']
|
839
825
|
}, null),
|
840
|
-
success: (0,external_vue_namespaceObject.createVNode)(
|
826
|
+
success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, {
|
841
827
|
"class": [_this.resolveClassName('info-icon'), 'success']
|
842
828
|
}, null),
|
843
|
-
danger: (0,external_vue_namespaceObject.createVNode)(
|
829
|
+
danger: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
844
830
|
"class": [_this.resolveClassName('info-icon'), 'danger']
|
845
831
|
}, null)
|
846
832
|
};
|
@@ -872,21 +858,21 @@ function _isSlot(s) {
|
|
872
858
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
873
859
|
"class": _this.resolveClassName('dialog-footer'),
|
874
860
|
"style": "text-align: ".concat(_this.footerAlign)
|
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)(
|
861
|
+
}, [_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)(external_button_namespaceObject["default"], {
|
876
862
|
"class": _this.resolveClassName('dialog-perv'),
|
877
863
|
"onClick": _this.handlePrevStep
|
878
864
|
}, {
|
879
865
|
"default": function _default() {
|
880
866
|
return [_this.localPrevText];
|
881
867
|
}
|
882
|
-
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(
|
868
|
+
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
883
869
|
"class": _this.resolveClassName('dialog-next'),
|
884
870
|
"onClick": _this.handleNextStep
|
885
871
|
}, {
|
886
872
|
"default": function _default() {
|
887
873
|
return [_this.localNextText];
|
888
874
|
}
|
889
|
-
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(
|
875
|
+
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
890
876
|
"onClick": _this.handleConfirm,
|
891
877
|
"theme": _this.theme,
|
892
878
|
"loading": _this.isLoading
|
@@ -894,7 +880,7 @@ function _isSlot(s) {
|
|
894
880
|
"default": function _default() {
|
895
881
|
return [_this.localConfirmText];
|
896
882
|
}
|
897
|
-
}) : '', (0,external_vue_namespaceObject.createVNode)(
|
883
|
+
}) : '', (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
898
884
|
"class": _this.resolveClassName('dialog-cancel'),
|
899
885
|
"onClick": _this.handleClose,
|
900
886
|
"disabled": _this.isLoading
|
@@ -902,7 +888,7 @@ function _isSlot(s) {
|
|
902
888
|
"default": function _default() {
|
903
889
|
return [_this.localCancelText];
|
904
890
|
}
|
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)(
|
891
|
+
})]) : '', _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)(external_button_namespaceObject["default"], {
|
906
892
|
"onClick": _this.handleConfirm,
|
907
893
|
"theme": _this.theme,
|
908
894
|
"loading": _this.isLoading
|
@@ -910,7 +896,7 @@ function _isSlot(s) {
|
|
910
896
|
"default": function _default() {
|
911
897
|
return [_this.localConfirmText];
|
912
898
|
}
|
913
|
-
}), (0,external_vue_namespaceObject.createVNode)(
|
899
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
914
900
|
"class": _this.resolveClassName('dialog-cancel'),
|
915
901
|
"onClick": _this.handleClose,
|
916
902
|
"disabled": _this.isLoading
|
@@ -918,7 +904,7 @@ function _isSlot(s) {
|
|
918
904
|
"default": function _default() {
|
919
905
|
return [_this.localCancelText];
|
920
906
|
}
|
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)(
|
907
|
+
})]) : '', _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)(external_button_namespaceObject["default"], {
|
922
908
|
"onClick": _this.handleConfirm,
|
923
909
|
"theme": _this.theme,
|
924
910
|
"loading": _this.isLoading
|
@@ -930,14 +916,14 @@ function _isSlot(s) {
|
|
930
916
|
},
|
931
917
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
932
918
|
close: function close() {
|
933
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
919
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
934
920
|
"onClick": _this.handleClose
|
935
921
|
}, null);
|
936
922
|
}
|
937
923
|
};
|
938
924
|
var className = this.resolveClassName('dialog-wrapper ');
|
939
925
|
var bodyClass = "".concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
940
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
926
|
+
return (0,external_vue_namespaceObject.createVNode)(external_modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
941
927
|
"class": className,
|
942
928
|
"bodyClass": bodyClass,
|
943
929
|
"onClose": this.handleClose,
|
@@ -979,7 +965,7 @@ function _isSlot(s) {
|
|
979
965
|
*/
|
980
966
|
|
981
967
|
|
982
|
-
var BkDialog = (0,
|
968
|
+
var BkDialog = (0,external_shared_namespaceObject.withInstall)(dialog);
|
983
969
|
/* harmony default export */ const src = (BkDialog);
|
984
970
|
})();
|
985
971
|
|
package/lib/directives/index.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
import "../styles/reset.css";
|
2
1
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
6
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__ from "../plugin-popover";
|
7
6
|
/******/ var __webpack_modules__ = ({
|
8
7
|
|
9
8
|
/***/ 2439:
|
@@ -945,9 +944,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
945
944
|
var external_vue_y = x => () => x
|
946
945
|
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
947
946
|
;// CONCATENATED MODULE: external "../shared"
|
948
|
-
var
|
949
|
-
var
|
950
|
-
const
|
947
|
+
var external_shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
948
|
+
var external_shared_y = x => () => x
|
949
|
+
const external_shared_namespaceObject = external_shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName });
|
951
950
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
952
951
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
953
952
|
var core_y = x => () => x
|
@@ -1105,9 +1104,9 @@ function renderContent(opts) {
|
|
1105
1104
|
theme = opts.theme,
|
1106
1105
|
extCls = opts.extCls;
|
1107
1106
|
var isLight = theme === 'light';
|
1108
|
-
var zIndex =
|
1107
|
+
var zIndex = external_shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
1109
1108
|
var content = document.createElement('div');
|
1110
|
-
content.className = "".concat((0,
|
1109
|
+
content.className = "".concat((0,external_shared_namespaceObject.resolveClassName)('popper'), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1111
1110
|
content.innerText = value;
|
1112
1111
|
content.style.zIndex = String(zIndex);
|
1113
1112
|
renderContext(value, content);
|
@@ -1123,7 +1122,7 @@ function renderContent(opts) {
|
|
1123
1122
|
*/
|
1124
1123
|
function renderArrow() {
|
1125
1124
|
var arrow = document.createElement('div');
|
1126
|
-
arrow.className = (0,
|
1125
|
+
arrow.className = (0,external_shared_namespaceObject.resolveClassName)('popper-arrow');
|
1127
1126
|
arrow.setAttribute('data-popper-arrow', '');
|
1128
1127
|
return arrow;
|
1129
1128
|
}
|
@@ -1231,9 +1230,9 @@ function hide(el) {
|
|
1231
1230
|
}
|
1232
1231
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1233
1232
|
;// CONCATENATED MODULE: external "../plugin-popover"
|
1234
|
-
var
|
1235
|
-
var
|
1236
|
-
const
|
1233
|
+
var external_plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1234
|
+
var external_plugin_popover_y = x => () => x
|
1235
|
+
const external_plugin_popover_namespaceObject = external_plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__["default"] });
|
1237
1236
|
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
1238
1237
|
|
1239
1238
|
/*
|
@@ -1312,7 +1311,7 @@ var createInstance = function createInstance(el, binding) {
|
|
1312
1311
|
onContentMouseenter: handleContentEnter,
|
1313
1312
|
onContentMouseleave: handleContentLeave
|
1314
1313
|
});
|
1315
|
-
instance = (0,
|
1314
|
+
instance = (0,external_plugin_popover_namespaceObject["default"])(targetOptions);
|
1316
1315
|
}, 300);
|
1317
1316
|
};
|
1318
1317
|
var handleMouseLeave = function handleMouseLeave() {
|
package/lib/dist.index.js
CHANGED
@@ -1,3 +1,58 @@
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__styles_9b7bdad5__ from "./styles";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
6
|
+
/******/ // The require scope
|
7
|
+
/******/ var __webpack_require__ = {};
|
8
|
+
/******/
|
9
|
+
/************************************************************************/
|
10
|
+
/******/ /* webpack/runtime/define property getters */
|
11
|
+
/******/ (() => {
|
12
|
+
/******/ // define getter functions for harmony exports
|
13
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
14
|
+
/******/ for(var key in definition) {
|
15
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
16
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
17
|
+
/******/ }
|
18
|
+
/******/ }
|
19
|
+
/******/ };
|
20
|
+
/******/ })();
|
21
|
+
/******/
|
22
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
23
|
+
/******/ (() => {
|
24
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
25
|
+
/******/ })();
|
26
|
+
/******/
|
27
|
+
/************************************************************************/
|
28
|
+
var __webpack_exports__ = {};
|
29
|
+
|
30
|
+
// EXPORTS
|
31
|
+
__webpack_require__.d(__webpack_exports__, {
|
32
|
+
"default": () => (/* reexport */ external_preset_namespaceObject["default"])
|
33
|
+
});
|
34
|
+
|
35
|
+
;// CONCATENATED MODULE: external "./styles"
|
36
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
|
+
var y = x => () => x
|
38
|
+
const external_styles_namespaceObject = x({ });
|
39
|
+
;// CONCATENATED MODULE: external "./preset"
|
40
|
+
var external_preset_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
|
+
var external_preset_y = x => () => x
|
42
|
+
const external_preset_namespaceObject = external_preset_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__["default"] });
|
43
|
+
;// CONCATENATED MODULE: external "./components"
|
44
|
+
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
|
+
var external_components_y = x => () => x
|
46
|
+
const external_components_namespaceObject = external_components_x({ });
|
47
|
+
;// CONCATENATED MODULE: external "./directives"
|
48
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
49
|
+
var external_directives_y = x => () => x
|
50
|
+
const external_directives_namespaceObject = external_directives_x({ });
|
51
|
+
;// CONCATENATED MODULE: external "./config-provider"
|
52
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
|
+
var external_config_provider_y = x => () => x
|
54
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ });
|
55
|
+
;// CONCATENATED MODULE: ../../packages/bkui-vue/dist.index.ts
|
1
56
|
/*
|
2
57
|
* Tencent is pleased to support the open source community by making
|
3
58
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -23,8 +78,10 @@
|
|
23
78
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
79
|
* IN THE SOFTWARE.
|
25
80
|
*/
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
87
|
+
export { __webpack_exports__default as default };
|
package/lib/divider/divider.css
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
|
1
|
+
.bk-divider {
|
2
2
|
position: relative;
|
3
3
|
background: #c4c6cc;
|
4
4
|
}
|
5
|
-
|
5
|
+
.bk-divider-horizontal {
|
6
6
|
width: 100%;
|
7
7
|
height: 1px;
|
8
8
|
margin: 1em 0;
|
9
9
|
}
|
10
|
-
|
10
|
+
.bk-divider-info {
|
11
11
|
position: absolute;
|
12
12
|
top: 50%;
|
13
13
|
padding: 0 1.4em;
|
@@ -15,20 +15,20 @@
|
|
15
15
|
background-color: white;
|
16
16
|
transform: translateY(-50%);
|
17
17
|
}
|
18
|
-
|
18
|
+
.bk-divider-info-center {
|
19
19
|
left: 50%;
|
20
20
|
transform: translateX(-50%) translateY(-50%);
|
21
21
|
}
|
22
|
-
|
22
|
+
.bk-divider-info .bk-divider-horizontal-left {
|
23
23
|
left: 2em;
|
24
24
|
}
|
25
|
-
|
25
|
+
.bk-divider-info .bk-divider-horizontal-right {
|
26
26
|
right: 2em;
|
27
27
|
}
|
28
|
-
.bk-divider-vertical
|
28
|
+
.bk-divider-vertical .bk-divider-info {
|
29
29
|
padding: 20px 0;
|
30
30
|
}
|
31
|
-
|
31
|
+
.bk-divider-vertical {
|
32
32
|
display: inline-block;
|
33
33
|
width: 1px;
|
34
34
|
height: 100%;
|
package/lib/divider/divider.less
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
-
|
3
|
+
.@{bk-prefix}-divider {
|
4
4
|
position: relative;
|
5
5
|
background: @light-gray;
|
6
6
|
|
7
|
-
|
7
|
+
&-horizontal {
|
8
8
|
width: 100%;
|
9
9
|
height: 1px;
|
10
10
|
margin: 1em 0;
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
&-info {
|
14
14
|
position: absolute;
|
15
15
|
top: 50%;
|
16
16
|
padding: 0 1.4em;
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
&-center {
|
22
22
|
left: 50%;
|
23
|
-
transform: translateX(-50%) translateY(-50%)
|
23
|
+
transform: translateX(-50%) translateY(-50%)
|
24
24
|
}
|
25
25
|
|
26
26
|
.@{bk-prefix}-divider-horizontal {
|
@@ -38,7 +38,7 @@
|
|
38
38
|
}
|
39
39
|
}
|
40
40
|
|
41
|
-
|
41
|
+
&-vertical {
|
42
42
|
display: inline-block;
|
43
43
|
width: 1px;
|
44
44
|
height: 100%;
|
@@ -47,3 +47,6 @@
|
|
47
47
|
vertical-align: middle;
|
48
48
|
}
|
49
49
|
}
|
50
|
+
|
51
|
+
|
52
|
+
|
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,16 +127,16 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-divider {
|
131
131
|
position: relative;
|
132
132
|
background: var(--light-gray);
|
133
133
|
}
|
134
|
-
|
134
|
+
.bk-divider-horizontal {
|
135
135
|
width: 100%;
|
136
136
|
height: 1px;
|
137
137
|
margin: 1em 0;
|
138
138
|
}
|
139
|
-
|
139
|
+
.bk-divider-info {
|
140
140
|
position: absolute;
|
141
141
|
top: 50%;
|
142
142
|
padding: 0 1.4em;
|
@@ -144,20 +144,20 @@
|
|
144
144
|
background-color: var(--white-color);
|
145
145
|
transform: translateY(-50%);
|
146
146
|
}
|
147
|
-
|
147
|
+
.bk-divider-info-center {
|
148
148
|
left: 50%;
|
149
149
|
transform: translateX(-50%) translateY(-50%);
|
150
150
|
}
|
151
|
-
|
151
|
+
.bk-divider-info .bk-divider-horizontal-left {
|
152
152
|
left: 2em;
|
153
153
|
}
|
154
|
-
|
154
|
+
.bk-divider-info .bk-divider-horizontal-right {
|
155
155
|
right: 2em;
|
156
156
|
}
|
157
|
-
.bk-divider-vertical
|
157
|
+
.bk-divider-vertical .bk-divider-info {
|
158
158
|
padding: 20px 0;
|
159
159
|
}
|
160
|
-
|
160
|
+
.bk-divider-vertical {
|
161
161
|
display: inline-block;
|
162
162
|
width: 1px;
|
163
163
|
height: 100%;
|
package/lib/divider/index.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
import "../
|
2
|
-
import "./divider.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
6
4
|
/******/ // The require scope
|
7
5
|
/******/ var __webpack_require__ = {};
|
8
6
|
/******/
|
@@ -35,15 +33,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
35
33
|
;// CONCATENATED MODULE: external "../shared"
|
36
34
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
35
|
var y = x => () => x
|
38
|
-
const
|
36
|
+
const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["directionType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.directionType, ["lineStyleType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.lineStyleType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
39
37
|
;// CONCATENATED MODULE: external "vue"
|
40
38
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
39
|
var external_vue_y = x => () => x
|
42
40
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
|
43
41
|
;// CONCATENATED MODULE: external "../config-provider"
|
44
|
-
var
|
45
|
-
var
|
46
|
-
const
|
42
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
|
+
var external_config_provider_y = x => () => x
|
44
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
47
45
|
;// CONCATENATED MODULE: ../../packages/divider/src/props.ts
|
48
46
|
/*
|
49
47
|
* Tencent is pleased to support the open source community by making
|
@@ -72,11 +70,11 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
72
70
|
*/
|
73
71
|
|
74
72
|
var dividerProps = {
|
75
|
-
direction: (0,
|
76
|
-
align: (0,
|
77
|
-
color:
|
78
|
-
width:
|
79
|
-
type: (0,
|
73
|
+
direction: (0,external_shared_namespaceObject.directionType)(),
|
74
|
+
align: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.CENTER),
|
75
|
+
color: external_shared_namespaceObject.PropTypes.string.def('#dde4eb'),
|
76
|
+
width: external_shared_namespaceObject.PropTypes.number.def(1),
|
77
|
+
type: (0,external_shared_namespaceObject.lineStyleType)()
|
80
78
|
};
|
81
79
|
;// CONCATENATED MODULE: ../../packages/divider/src/divider.tsx
|
82
80
|
|
@@ -123,7 +121,7 @@ var dividerProps = {
|
|
123
121
|
borderBottom: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
|
124
122
|
};
|
125
123
|
};
|
126
|
-
var _usePrefix = (0,
|
124
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
127
125
|
resolveClassName = _usePrefix.resolveClassName;
|
128
126
|
var slots;
|
129
127
|
if (this.$slots["default"]) {
|
@@ -165,7 +163,7 @@ var dividerProps = {
|
|
165
163
|
*/
|
166
164
|
|
167
165
|
|
168
|
-
var BkDivider = (0,
|
166
|
+
var BkDivider = (0,external_shared_namespaceObject.withInstall)(divider);
|
169
167
|
/* harmony default export */ const src = (BkDivider);
|
170
168
|
var __webpack_exports__default = __webpack_exports__["default"];
|
171
169
|
export { __webpack_exports__default as default };
|