bkui-vue 0.0.2-beta.99 → 0.0.2-modal-refactor.2
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 +47 -47
- package/dist/index.esm.js +12587 -12621
- package/dist/index.umd.js +34 -34
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -122
- package/lib/affix/affix.variable.css +5 -245
- package/lib/alert/alert.css +3 -125
- package/lib/alert/alert.variable.css +5 -245
- package/lib/backtop/backtop.css +3 -125
- package/lib/backtop/backtop.variable.css +8 -370
- package/lib/badge/badge.css +34 -150
- package/lib/badge/badge.less +8 -4
- package/lib/badge/badge.variable.css +13 -247
- package/lib/breadcrumb/breadcrumb.css +5 -127
- package/lib/breadcrumb/breadcrumb.variable.css +10 -372
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +137 -256
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.less +98 -93
- package/lib/button/button.variable.css +23 -260
- package/lib/button/index.d.ts +5 -5
- package/lib/card/card.css +11 -133
- package/lib/card/card.less +7 -7
- package/lib/card/card.variable.css +16 -378
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +26 -148
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.less +4 -6
- package/lib/cascader/cascader.variable.css +31 -393
- package/lib/cascader/index.d.ts +4 -0
- package/lib/cascader/index.js +31 -14
- package/lib/checkbox/checkbox.css +22 -132
- package/lib/checkbox/checkbox.d.ts +9 -8
- package/lib/checkbox/checkbox.less +15 -1
- package/lib/checkbox/checkbox.variable.css +18 -246
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +15 -12
- package/lib/checkbox/index.js +33 -9
- package/lib/code-diff/code-diff.css +0 -122
- package/lib/code-diff/code-diff.variable.css +5 -245
- package/lib/collapse/collapse.css +1 -123
- package/lib/collapse/collapse.variable.css +5 -245
- package/lib/collapse-transition/collapse-transition.css +0 -122
- package/lib/collapse-transition/collapse-transition.variable.css +5 -245
- package/lib/color-picker/color-picker.css +0 -122
- package/lib/color-picker/color-picker.variable.css +5 -245
- package/lib/config-provider/config-provider.css +0 -122
- package/lib/config-provider/config-provider.d.ts +18 -0
- package/lib/config-provider/config-provider.variable.css +5 -245
- package/lib/config-provider/index.d.ts +24 -0
- package/lib/config-provider/token.d.ts +6 -0
- package/lib/container/container.css +0 -122
- package/lib/container/container.variable.css +5 -367
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/date-picker.css +17 -139
- package/lib/date-picker/date-picker.d.ts +2 -0
- package/lib/date-picker/date-picker.variable.css +5 -245
- package/lib/date-picker/index.d.ts +6 -0
- package/lib/date-picker/index.js +184 -110
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +17 -0
- package/lib/date-picker/panel/time.d.ts +17 -1
- package/lib/date-picker/time-picker.d.ts +2 -0
- package/lib/date-picker/use-calendar.d.ts +24 -0
- package/lib/dialog/dialog.css +76 -172
- package/lib/dialog/dialog.d.ts +18 -9
- package/lib/dialog/dialog.less +9 -8
- package/lib/dialog/dialog.variable.css +81 -417
- package/lib/dialog/index.d.ts +34 -18
- package/lib/dialog/index.js +4 -7
- package/lib/dialog/props.d.ts +7 -3
- package/lib/directives/index.js +15 -4
- package/lib/divider/divider.css +3 -125
- package/lib/divider/divider.variable.css +5 -245
- package/lib/dropdown/dropdown.css +1 -123
- package/lib/dropdown/dropdown.variable.css +6 -368
- package/lib/dropdown/index.js +2 -2
- package/lib/exception/exception.css +0 -122
- package/lib/exception/exception.variable.css +5 -245
- package/lib/fixed-navbar/fixed-navbar.css +4 -126
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -245
- package/lib/form/form.css +2 -123
- package/lib/form/form.less +3 -2
- package/lib/form/form.variable.css +7 -246
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +58 -25
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/image/image-viewer.css +0 -122
- package/lib/image/image-viewer.variable.css +5 -245
- package/lib/image/image.css +0 -122
- package/lib/image/image.variable.css +5 -367
- package/lib/info-box/index.js +28 -20
- package/lib/info-box/info-box.css +10 -132
- package/lib/info-box/info-box.less +37 -34
- package/lib/info-box/info-box.variable.css +15 -255
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +12 -5
- package/lib/input/input.css +84 -190
- package/lib/input/input.d.ts +3 -3
- package/lib/input/input.less +19 -0
- package/lib/input/input.variable.css +89 -435
- package/lib/link/link.css +16 -138
- package/lib/link/link.variable.css +5 -245
- package/lib/loading/index.d.ts +3 -3
- package/lib/loading/loading.css +25 -147
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.less +14 -9
- package/lib/loading/loading.variable.css +30 -392
- package/lib/locale/index.js +14 -2
- package/lib/locale/lang/en.d.ts +6 -0
- package/lib/menu/menu.css +18 -140
- package/lib/menu/menu.variable.css +23 -385
- package/lib/menu/submenu.css +0 -122
- package/lib/menu/submenu.variable.css +5 -245
- package/lib/message/message.css +21 -143
- package/lib/message/message.variable.css +5 -245
- package/lib/modal/index.d.ts +103 -60
- package/lib/modal/index.js +131 -103
- package/lib/modal/modal.css +35 -132
- package/lib/modal/modal.d.ts +38 -20
- package/lib/modal/modal.less +33 -0
- package/lib/modal/modal.variable.css +40 -377
- package/lib/modal/props.mixin.d.ts +7 -3
- package/lib/navigation/navigation.css +2 -124
- package/lib/navigation/navigation.variable.css +5 -245
- package/lib/notify/notify.css +13 -135
- package/lib/notify/notify.less +6 -6
- package/lib/notify/notify.variable.css +11 -251
- package/lib/overflow-title/components/overflow-title.d.ts +0 -1
- package/lib/overflow-title/index.js +2 -178
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.css +2 -123
- package/lib/pagination/pagination.d.ts +3 -3
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +6 -245
- package/lib/plugin-popover/index.js +31 -103
- package/lib/pop-confirm/index.d.ts +42 -3
- package/lib/pop-confirm/index.js +55 -47
- package/lib/pop-confirm/pop-confirm.css +4 -126
- package/lib/pop-confirm/pop-confirm.d.ts +14 -1
- package/lib/pop-confirm/pop-confirm.less +4 -4
- package/lib/pop-confirm/pop-confirm.variable.css +9 -249
- package/lib/popover/index.js +31 -103
- package/lib/popover/popover.css +1 -123
- package/lib/popover/popover.less +1 -1
- package/lib/popover/popover.variable.css +6 -246
- package/lib/preset.d.ts +12 -0
- package/lib/process/process.css +13 -135
- package/lib/process/process.variable.css +5 -245
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/progress.css +11 -129
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.less +8 -3
- package/lib/progress/progress.variable.css +16 -374
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +8 -2
- package/lib/radio/index.js +11 -3
- package/lib/radio/radio-button.d.ts +4 -3
- package/lib/radio/radio-group.d.ts +3 -0
- package/lib/radio/radio.css +49 -157
- package/lib/radio/radio.d.ts +1 -0
- package/lib/radio/radio.less +42 -8
- package/lib/radio/radio.variable.css +25 -251
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/index.js +22 -6
- package/lib/rate/rate.css +0 -122
- package/lib/rate/rate.d.ts +2 -2
- package/lib/rate/rate.variable.css +5 -245
- package/lib/rate/star.css +3 -122
- package/lib/rate/star.less +3 -0
- package/lib/rate/star.variable.css +8 -245
- package/lib/resize-layout/index.d.ts +3 -3
- package/lib/resize-layout/resize-layout.css +2 -124
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +2 -2
- package/lib/resize-layout/resize-layout.variable.css +7 -247
- package/lib/search-select/index.js +6 -6
- package/lib/search-select/search-select.css +34 -156
- package/lib/search-select/search-select.less +9 -9
- package/lib/search-select/search-select.variable.css +39 -401
- package/lib/select/common.d.ts +3 -1
- package/lib/select/index.d.ts +92 -21
- package/lib/select/index.js +193 -63
- package/lib/select/option.d.ts +1 -0
- package/lib/select/select.css +27 -146
- package/lib/select/select.d.ts +38 -9
- package/lib/select/select.less +3 -0
- package/lib/select/select.variable.css +32 -391
- package/lib/select/selectTagInput.d.ts +2 -0
- package/lib/select/type.d.ts +3 -0
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +484 -1133
- package/lib/shared/mask.d.ts +11 -0
- package/lib/shared/vue-types.d.ts +1 -1
- package/lib/sideslider/index.d.ts +34 -18
- package/lib/sideslider/index.js +0 -11
- package/lib/sideslider/sideslider.css +12 -134
- package/lib/sideslider/sideslider.d.ts +18 -9
- package/lib/sideslider/sideslider.less +80 -77
- package/lib/sideslider/sideslider.variable.css +16 -256
- package/lib/slider/index.js +7 -1
- package/lib/slider/slider.css +6 -126
- package/lib/slider/slider.less +2 -0
- package/lib/slider/slider.variable.css +7 -245
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +53 -163
- package/lib/steps/steps.d.ts +3 -3
- package/lib/steps/steps.less +26 -5
- package/lib/steps/steps.variable.css +23 -251
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.css +0 -122
- package/lib/styles/mixins/animate.variable.css +5 -245
- package/lib/styles/mixins/mixins.css +0 -122
- package/lib/styles/mixins/mixins.variable.css +0 -122
- package/lib/styles/mixins/popper.css +0 -122
- package/lib/styles/mixins/popper.variable.css +5 -245
- package/lib/styles/mixins/scroll.css +0 -122
- package/lib/styles/mixins/scroll.variable.css +5 -245
- package/lib/styles/reset.css +0 -122
- package/lib/styles/reset.variable.css +5 -245
- package/lib/styles/themes/themes.less +124 -289
- package/lib/swiper/swiper.css +0 -122
- package/lib/swiper/swiper.variable.css +5 -245
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/switcher.css +17 -139
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/switcher/switcher.variable.css +22 -384
- package/lib/tab/tab.css +17 -139
- package/lib/tab/tab.variable.css +5 -245
- package/lib/table/components/table-column.d.ts +5 -4
- package/lib/table/index.d.ts +8 -7
- package/lib/table/index.js +877 -630
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +1 -150
- package/lib/table/plugins/head-filter.less +2 -34
- package/lib/table/plugins/head-filter.variable.css +6 -273
- package/lib/table/plugins/head-sort.css +0 -122
- package/lib/table/plugins/head-sort.variable.css +5 -245
- package/lib/table/plugins/settings.css +0 -122
- package/lib/table/plugins/settings.d.ts +0 -7
- package/lib/table/plugins/settings.variable.css +5 -245
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +3 -1
- package/lib/table/table.css +207 -337
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +27 -21
- package/lib/table/table.variable.css +212 -582
- package/lib/table/use-attributes.d.ts +5 -1
- package/lib/table/use-column.d.ts +3 -0
- package/lib/table/use-common.d.ts +0 -1
- package/lib/table/utils.d.ts +6 -4
- package/lib/table-column/index.d.ts +13 -10
- package/lib/tag/tag.css +5 -127
- package/lib/tag/tag.variable.css +5 -245
- package/lib/tag-input/index.js +17 -13
- package/lib/tag-input/list-tag-render.d.ts +11 -0
- package/lib/tag-input/tag-input.css +18 -140
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +5 -245
- package/lib/time-picker/index.d.ts +6 -0
- package/lib/time-picker/time-picker.css +4 -125
- package/lib/time-picker/time-picker.less +5 -9
- package/lib/time-picker/time-picker.variable.css +9 -248
- package/lib/timeline/timeline.css +19 -141
- package/lib/timeline/timeline.variable.css +5 -245
- package/lib/transfer/transfer.css +21 -143
- package/lib/transfer/transfer.less +2 -2
- package/lib/transfer/transfer.variable.css +7 -247
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +54 -8
- package/lib/tree/tree.css +22 -132
- package/lib/tree/tree.d.ts +5 -1
- package/lib/tree/tree.variable.css +27 -377
- package/lib/tree/use-empty.d.ts +1 -3
- package/lib/upload/index.js +2 -2
- package/lib/upload/upload.css +27 -149
- package/lib/upload/upload.variable.css +32 -394
- package/lib/virtual-render/index.js +71 -30
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +5 -0
- package/lib/virtual-render/virtual-render.css +0 -122
- package/lib/virtual-render/virtual-render.variable.css +5 -367
- package/package.json +4 -3
- package/lib/shared/mask-manager.d.ts +0 -89
- package/lib/shared/pop-manager.d.ts +0 -41
- package/lib/styles/themes/themes.css +0 -122
- package/lib/styles/themes/themes.variable.css +0 -122
- package/lib/table/render.d.ts +0 -130
- /package/lib/overflow-title/{overflow.css → overflow-title.css} +0 -0
- /package/lib/overflow-title/{overflow.less → overflow-title.less} +0 -0
- /package/lib/overflow-title/{overflow.variable.css → overflow-title.variable.css} +0 -0
package/lib/cascader/index.js
CHANGED
@@ -574,16 +574,20 @@ function usePopover(config, triggerRef) {
|
|
574
574
|
};
|
575
575
|
}
|
576
576
|
function useRemoteSearch(method, callBack) {
|
577
|
-
var
|
577
|
+
var customOptionName = useDebouncedRef(''); // 自定义创建选项(自定义创建也会触发搜索)
|
578
|
+
var searchValue = useDebouncedRef('');
|
579
|
+
var curSearchValue = computed(function () {
|
580
|
+
return searchValue.value || customOptionName.value;
|
581
|
+
});
|
578
582
|
var searchLoading = ref(false);
|
579
|
-
watch(
|
583
|
+
watch(curSearchValue, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
580
584
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
581
585
|
while (1) switch (_context.prev = _context.next) {
|
582
586
|
case 0:
|
583
587
|
_context.prev = 0;
|
584
588
|
searchLoading.value = true;
|
585
589
|
_context.next = 4;
|
586
|
-
return method(
|
590
|
+
return method(curSearchValue.value);
|
587
591
|
case 4:
|
588
592
|
searchLoading.value = false;
|
589
593
|
_context.next = 10;
|
@@ -603,7 +607,9 @@ function useRemoteSearch(method, callBack) {
|
|
603
607
|
}, _callee, null, [[0, 7, 10, 13]]);
|
604
608
|
})));
|
605
609
|
return {
|
606
|
-
|
610
|
+
customOptionName: customOptionName,
|
611
|
+
searchValue: searchValue,
|
612
|
+
curSearchValue: curSearchValue,
|
607
613
|
searchLoading: searchLoading
|
608
614
|
};
|
609
615
|
}
|
@@ -858,7 +864,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
858
864
|
emits: ['update:modelValue'],
|
859
865
|
setup: function setup(props, _ref) {
|
860
866
|
var emit = _ref.emit;
|
861
|
-
var t = (0,external_config_provider_namespaceObject.useLocale)('
|
867
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('cascader');
|
862
868
|
var store = props.store;
|
863
869
|
var menus = (0,external_vue_namespaceObject.reactive)({
|
864
870
|
list: [props.store.getNodes()]
|
@@ -986,6 +992,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
986
992
|
return events;
|
987
993
|
};
|
988
994
|
var noDataText = t.value.noData;
|
995
|
+
var emptyText = t.value.emptyText;
|
989
996
|
var isNodeInPath = function isNodeInPath(node) {
|
990
997
|
var currentLevel = activePath.value[node.level - 1] || {};
|
991
998
|
return currentLevel.id === node.id;
|
@@ -1040,6 +1047,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1040
1047
|
searchPanelEvents: searchPanelEvents,
|
1041
1048
|
expandByNodeList: expandByNodeList,
|
1042
1049
|
noDataText: noDataText,
|
1050
|
+
emptyText: emptyText,
|
1043
1051
|
resolveClassName: resolveClassName
|
1044
1052
|
};
|
1045
1053
|
},
|
@@ -1068,7 +1076,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1068
1076
|
"style": {
|
1069
1077
|
width: emptyWidth
|
1070
1078
|
}
|
1071
|
-
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [
|
1079
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.noDataText])]);
|
1072
1080
|
};
|
1073
1081
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1074
1082
|
"class": this.resolveClassName('cascader-panel-wrapper')
|
@@ -1560,11 +1568,6 @@ var Store = /*#__PURE__*/function () {
|
|
1560
1568
|
directives: {
|
1561
1569
|
bkTooltips: external_directives_namespaceObject.bkTooltips
|
1562
1570
|
},
|
1563
|
-
components: {
|
1564
|
-
CascaderPanel: cascader_panel,
|
1565
|
-
BkPopover: external_popover_namespaceObject["default"],
|
1566
|
-
Tag: external_tag_namespaceObject["default"]
|
1567
|
-
},
|
1568
1571
|
props: {
|
1569
1572
|
modelValue: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number])),
|
1570
1573
|
list: external_shared_namespaceObject.PropTypes.array.def([]),
|
@@ -1604,7 +1607,7 @@ var Store = /*#__PURE__*/function () {
|
|
1604
1607
|
setup: function setup(props, _ref) {
|
1605
1608
|
var emit = _ref.emit,
|
1606
1609
|
slots = _ref.slots;
|
1607
|
-
var t = (0,external_config_provider_namespaceObject.useLocale)('
|
1610
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('cascader');
|
1608
1611
|
var separator = props.separator,
|
1609
1612
|
multiple = props.multiple;
|
1610
1613
|
// 用useHover自定义hook来处理鼠标hover状态
|
@@ -1665,6 +1668,15 @@ var Store = /*#__PURE__*/function () {
|
|
1665
1668
|
var updateSearchKey = function updateSearchKey() {
|
1666
1669
|
searchKey.value = selectedText.value;
|
1667
1670
|
};
|
1671
|
+
var searchBlueHandler = function searchBlueHandler() {
|
1672
|
+
// 单选搜索框与选择框互斥,因此一旦失去焦点,认为是没有选择,还原选择框的内容
|
1673
|
+
if (!props.multiple) {
|
1674
|
+
searchKey.value = selectedText.value;
|
1675
|
+
return;
|
1676
|
+
}
|
1677
|
+
// 多选下,失去焦点则需要删除搜索框
|
1678
|
+
searchKey.value = '';
|
1679
|
+
};
|
1668
1680
|
// 更新选中
|
1669
1681
|
var updateValue = function updateValue(val) {
|
1670
1682
|
// 更新多选情况下的选中标签
|
@@ -1729,6 +1741,8 @@ var Store = /*#__PURE__*/function () {
|
|
1729
1741
|
oldValue !== undefined && emit('change', value); // oldValue = undefined代表初始化,init不派发change事件
|
1730
1742
|
// 如果有过滤搜索,选择后,自动focus到input
|
1731
1743
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
1744
|
+
// 选择后过滤条件清除,面板初始化渲染
|
1745
|
+
isFiltering.value = false;
|
1732
1746
|
};
|
1733
1747
|
// list的监听函数
|
1734
1748
|
var listChangeHandler = function listChangeHandler() {
|
@@ -1847,7 +1861,8 @@ var Store = /*#__PURE__*/function () {
|
|
1847
1861
|
isEdit: isEdit,
|
1848
1862
|
displayText: displayText,
|
1849
1863
|
resolveClassName: resolveClassName,
|
1850
|
-
isShowPanel: isShowPanel
|
1864
|
+
isShowPanel: isShowPanel,
|
1865
|
+
searchBlueHandler: searchBlueHandler
|
1851
1866
|
};
|
1852
1867
|
},
|
1853
1868
|
render: function render() {
|
@@ -1863,7 +1878,7 @@ var Store = /*#__PURE__*/function () {
|
|
1863
1878
|
}
|
1864
1879
|
// 否则渲染展开/收起图标
|
1865
1880
|
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUp, {
|
1866
|
-
"class": _this.resolveClassName('icon-angle-up')
|
1881
|
+
"class": [_this.resolveClassName('icon-angle-up'), _this.isShowPanel ? 'active' : '']
|
1867
1882
|
}, null);
|
1868
1883
|
};
|
1869
1884
|
// 因为cascader的tag长短不一,在计算时如果overflowIndex为0,会出现直接+n渲染的情况,因此需要对其进行修正
|
@@ -1925,6 +1940,7 @@ var Store = /*#__PURE__*/function () {
|
|
1925
1940
|
"trigger": "click",
|
1926
1941
|
"arrow": false,
|
1927
1942
|
"disabled": _this.disabled,
|
1943
|
+
"offset": 4,
|
1928
1944
|
"class": _this.resolveClassName('cascader-popover-wrapper'),
|
1929
1945
|
"ref": "popover",
|
1930
1946
|
"onAfterHidden": _this.popoverChangeEmitter,
|
@@ -1943,6 +1959,7 @@ var Store = /*#__PURE__*/function () {
|
|
1943
1959
|
}],
|
1944
1960
|
"type": "text",
|
1945
1961
|
"onInput": _this.searchInputHandler,
|
1962
|
+
"onBlur": _this.searchBlueHandler,
|
1946
1963
|
"placeholder": _this.calcuPlaceholder,
|
1947
1964
|
"value": _this.searchKey,
|
1948
1965
|
"disabled": _this.disabled,
|
@@ -1,125 +1,3 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: 216px;
|
4
|
-
--primary-color: #3a84ff;
|
5
|
-
--success-color: #2dcb56;
|
6
|
-
--warning-color: #ff9c01;
|
7
|
-
--danger-color: #ea3636;
|
8
|
-
--default-color: #63656e;
|
9
|
-
--gray-color: #979ba5;
|
10
|
-
--light-gray: #c4c6cc;
|
11
|
-
--white-color: white;
|
12
|
-
--whitesmoke-color: #fafbfd;
|
13
|
-
--disable-color: #dcdee5;
|
14
|
-
--font-size-base: 12px;
|
15
|
-
--font-size-medium: 14px;
|
16
|
-
--font-size-large: 16px;
|
17
|
-
--line-height-base: 16px;
|
18
|
-
--line-height-medium: 16px;
|
19
|
-
--line-height-large: 18px;
|
20
|
-
--component-size-small: 26px;
|
21
|
-
--component-size-base: 32px;
|
22
|
-
--component-size-large: 40px;
|
23
|
-
--border-width-base: 1px;
|
24
|
-
--border-style-base: solid;
|
25
|
-
--border-radius-base: 2px;
|
26
|
-
--border-style-color: var(--light-gray);
|
27
|
-
--input-disabled-bg: #fafbfd;
|
28
|
-
--input-disabled-border: var(--disable-color);
|
29
|
-
--input-height-base: var(--component-size-base);
|
30
|
-
--input-color: var(--default-color);
|
31
|
-
--input-bg: white;
|
32
|
-
--input-border-color: var(--light-gray);
|
33
|
-
--input-broder-radius: 3px;
|
34
|
-
--input-shadow-color: #a3c5fd;
|
35
|
-
--input-horizontal-padding: 10px;
|
36
|
-
--input-block-color: #f5f7fa;
|
37
|
-
--input-block-hover-color: #eaebf0;
|
38
|
-
--input-icon-size: var(--font-size-medium);
|
39
|
-
--input-maxlength-color: #979ba5;
|
40
|
-
--button-primary-hover-color: #5594fa;
|
41
|
-
--button-danger-hover-color: #ff5656;
|
42
|
-
--button-success-hover-color: #45e35f;
|
43
|
-
--button-warning-hover-color: #ffb848;
|
44
|
-
--button-default-hover-border-color: #979ba5;
|
45
|
-
--button-primary-active-color: #2c77f4;
|
46
|
-
--button-danger-active-color: #db2626;
|
47
|
-
--button-success-active-color: #1ab943;
|
48
|
-
--button-warning-active-color: #eb9000;
|
49
|
-
--button-selected-bg-color: #e1ecff;
|
50
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
51
|
-
--radio-font-color: #63656e;
|
52
|
-
--radio-active-color: #3a84ff;
|
53
|
-
--radio-hover-border-color: #979ba5;
|
54
|
-
--radio-disabled-border: #dcdee5;
|
55
|
-
--radio-disabled-font-color: #c4c6cc;
|
56
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
57
|
-
--radio-button-checked-bg: #e1ecff;
|
58
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
59
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
60
|
-
--fixed-navbar-background: #fff;
|
61
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
62
|
-
--switch-default-color: #fff;
|
63
|
-
--switch-grey-color: #c4c6cc;
|
64
|
-
--breadcrumb-black-color: #979ba5;
|
65
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
66
|
-
--breadcrumb-fn-main-color: #63656e;
|
67
|
-
--link-default-hover-color: #979ba5;
|
68
|
-
--link-primary-hover-color: #699df4;
|
69
|
-
--link-success-hover-color: #45e35f;
|
70
|
-
--link-warning-hover-color: #ffb848;
|
71
|
-
--link-danger-hover-color: #ff5656;
|
72
|
-
--link-default-disabled-color: #dcdee5;
|
73
|
-
--link-primary-disabled-color: #a3c5fd;
|
74
|
-
--link-success-disabled-color: #94f5a4;
|
75
|
-
--link-warning-disabled-color: #ffd695;
|
76
|
-
--link-danger-disabled-color: #fd9c9c;
|
77
|
-
--message-color: var(--default-color);
|
78
|
-
--message-primary-bg-color: #f0f8ff;
|
79
|
-
--message-primary-border-color: #e1ecff;
|
80
|
-
--message-primary-shadow-color: #e1e8f4;
|
81
|
-
--message-warning-bg-color: #fff4e2;
|
82
|
-
--message-warning-border-color: #ffe8c3;
|
83
|
-
--message-warning-shadow-color: #ede6db;
|
84
|
-
--message-success-bg-color: #f2fff4;
|
85
|
-
--message-success-border-color: #dcffe2;
|
86
|
-
--message-success-shadow-color: #cef0d7;
|
87
|
-
--message-danger-bg-color: #ffeded;
|
88
|
-
--message-danger-border-color: #ffdddd;
|
89
|
-
--message-danger-shadow-color: #f6dada;
|
90
|
-
--slider-default-bg: #dcdee5;
|
91
|
-
--slider-disable-bar-bg: #979ba5;
|
92
|
-
--menu-bg-color: #182132;
|
93
|
-
--submenu-bg-color: #151d2c;
|
94
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
95
|
-
--menu-color: #96a2b9;
|
96
|
-
--menu-group-color: var(--default-color);
|
97
|
-
--menu-width: 260px;
|
98
|
-
--menu-collapse-width: 60px;
|
99
|
-
--menu-active-color: white;
|
100
|
-
--nav-header-bg-color: #182132;
|
101
|
-
--nav-bg-color: #182132;
|
102
|
-
--date-picker-disabled-bg: #fafbfd;
|
103
|
-
--date-picker-dropdown-mb: 4px;
|
104
|
-
--date-picker-dropdown-bg: #fff;
|
105
|
-
--table-bg-color: var(--white-color);
|
106
|
-
--table-border-color: #dcdee5;
|
107
|
-
--table-head-bg-color: #fafbfd;
|
108
|
-
--table-head-font-color: #313238;
|
109
|
-
--table-body-font-color: #63656E;
|
110
|
-
--table-row-hover-bg-color: #f5f7fa;
|
111
|
-
--table-row-active-bg-color: #f0f1f5;
|
112
|
-
--cascader-panel-border-color: #dcdee5;
|
113
|
-
--cascader-panel-hover: #f5f7fa;
|
114
|
-
--cascader-panel-active: #e1ecff;
|
115
|
-
--cascader-panel-disabled-bg: #fff;
|
116
|
-
--search-select-focus-border-color: var(--primary-color);
|
117
|
-
--search-select-focus-color: #3c96ff;
|
118
|
-
--search-select-font-color: var(--default-color);
|
119
|
-
--search-select-placeholder-color: var(--light-gray);
|
120
|
-
--search-select-message-color: var(--danger-color);
|
121
|
-
--search-select-menu-border-color: var(--disable-color);
|
122
|
-
}
|
123
1
|
.bk-checkbox-group {
|
124
2
|
display: inline-flex;
|
125
3
|
letter-spacing: normal;
|
@@ -135,11 +13,11 @@
|
|
135
13
|
user-select: none;
|
136
14
|
}
|
137
15
|
.bk-checkbox ~ .bk-checkbox {
|
138
|
-
margin-left:
|
16
|
+
margin-left: 24px;
|
139
17
|
}
|
140
18
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
141
|
-
background:
|
142
|
-
border-color:
|
19
|
+
background: #3a84ff;
|
20
|
+
border-color: #3a84ff;
|
143
21
|
transition: all 0.1s;
|
144
22
|
}
|
145
23
|
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
@@ -160,8 +38,8 @@
|
|
160
38
|
transform-origin: center;
|
161
39
|
}
|
162
40
|
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
163
|
-
background:
|
164
|
-
border-color:
|
41
|
+
background: #3a84ff;
|
42
|
+
border-color: #3a84ff;
|
165
43
|
transition: all 0.1s;
|
166
44
|
}
|
167
45
|
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
@@ -186,17 +64,23 @@
|
|
186
64
|
}
|
187
65
|
.bk-checkbox.is-disabled .bk-checkbox-input {
|
188
66
|
background: #fafbfd;
|
189
|
-
border-color:
|
67
|
+
border-color: #dcdee5;
|
190
68
|
}
|
191
69
|
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
192
|
-
background:
|
70
|
+
background: #dcdee5;
|
193
71
|
}
|
194
72
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
195
|
-
background:
|
196
|
-
border-color:
|
73
|
+
background: #a3c5fd;
|
74
|
+
border-color: #a3c5fd;
|
197
75
|
}
|
198
76
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
199
|
-
background:
|
77
|
+
background: #a3c5fd;
|
78
|
+
}
|
79
|
+
.bk-checkbox.is-prechecking {
|
80
|
+
position: relative;
|
81
|
+
}
|
82
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
83
|
+
visibility: hidden;
|
200
84
|
}
|
201
85
|
.bk-checkbox-input {
|
202
86
|
position: relative;
|
@@ -224,3 +108,9 @@
|
|
224
108
|
margin-left: 6px;
|
225
109
|
vertical-align: middle;
|
226
110
|
}
|
111
|
+
.bk-checkbox-checking {
|
112
|
+
position: absolute;
|
113
|
+
font-size: 16px;
|
114
|
+
color: #3a84ff;
|
115
|
+
animation: loading 1s linear infinite;
|
116
|
+
}
|
@@ -24,8 +24,8 @@ export declare const checkboxProps: {
|
|
24
24
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
25
25
|
default: (...args: any[]) => any;
|
26
26
|
};
|
27
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large"> & {
|
28
|
-
default: "default" | "small" | "large";
|
27
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge"> & {
|
28
|
+
default: "default" | "small" | "large" | "huge";
|
29
29
|
};
|
30
30
|
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
31
|
default: boolean;
|
@@ -59,8 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
59
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
60
60
|
default: (...args: any[]) => any;
|
61
61
|
};
|
62
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large"> & {
|
63
|
-
default: "default" | "small" | "large";
|
62
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge"> & {
|
63
|
+
default: "default" | "small" | "large" | "huge";
|
64
64
|
};
|
65
65
|
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
66
66
|
default: boolean;
|
@@ -71,12 +71,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
71
|
inputRef: import("vue").Ref<any>;
|
72
72
|
isFocus: import("vue").Ref<boolean>;
|
73
73
|
isChecked: import("vue").Ref<boolean>;
|
74
|
+
isPrechecking: import("vue").Ref<boolean>;
|
74
75
|
isDisabled: import("vue").ComputedRef<boolean>;
|
75
76
|
setChecked: (value?: boolean) => void;
|
76
77
|
handleBlur: () => void;
|
77
78
|
handleFocus: () => void;
|
78
79
|
handleChange: (event: Event) => void;
|
79
|
-
size: "default" | "small" | "large";
|
80
|
+
size: "default" | "small" | "large" | "huge";
|
80
81
|
resolveClassName: (cls: string) => string;
|
81
82
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
82
83
|
'update:modelValue': (value: any) => boolean;
|
@@ -107,8 +108,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
108
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
108
109
|
default: (...args: any[]) => any;
|
109
110
|
};
|
110
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large"> & {
|
111
|
-
default: "default" | "small" | "large";
|
111
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge"> & {
|
112
|
+
default: "default" | "small" | "large" | "huge";
|
112
113
|
};
|
113
114
|
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
114
115
|
default: boolean;
|
@@ -121,7 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
121
122
|
"onUpdate:modelValue"?: (value: any) => any;
|
122
123
|
}, {
|
123
124
|
disabled: boolean;
|
124
|
-
size: "default" | "small" | "large";
|
125
|
+
size: "default" | "small" | "large" | "huge";
|
125
126
|
trueLabel: string | number | boolean;
|
126
127
|
falseLabel: string | number | boolean;
|
127
128
|
checked: boolean;
|
@@ -16,7 +16,7 @@
|
|
16
16
|
user-select: none;
|
17
17
|
|
18
18
|
& ~ .@{bk-prefix}-checkbox {
|
19
|
-
margin-left:
|
19
|
+
margin-left: 24px;
|
20
20
|
}
|
21
21
|
|
22
22
|
&.is-checked {
|
@@ -100,6 +100,13 @@
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
}
|
103
|
+
|
104
|
+
&.is-prechecking {
|
105
|
+
position: relative;
|
106
|
+
.@{bk-prefix}-checkbox-input {
|
107
|
+
visibility: hidden;
|
108
|
+
}
|
109
|
+
}
|
103
110
|
}
|
104
111
|
|
105
112
|
.@{bk-prefix}-checkbox-input {
|
@@ -131,3 +138,10 @@
|
|
131
138
|
margin-left: 6px;
|
132
139
|
vertical-align: middle;
|
133
140
|
}
|
141
|
+
|
142
|
+
.@{bk-prefix}-checkbox-checking {
|
143
|
+
position: absolute;
|
144
|
+
font-size: 16px;
|
145
|
+
color: #3a84ff;
|
146
|
+
animation: loading 1s linear infinite;
|
147
|
+
}
|