bkui-vue 2.0.1-beta.99 → 2.0.1
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 +133 -159
- package/dist/index.esm.js +26188 -29904
- package/dist/index.umd.js +133 -159
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -261
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.variable.css +1 -261
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -394
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -261
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -396
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -261
- package/lib/button/index.d.ts +2 -1
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -395
- package/lib/cascader/cascader.css +27 -153
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +28 -414
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cascader/index.js +15 -747
- package/lib/checkbox/checkbox.css +10 -140
- package/lib/checkbox/checkbox.variable.css +1 -261
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -261
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -261
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -261
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -261
- package/lib/color-picker/index.js +8 -254
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -261
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -391
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.variable.css +1 -261
- package/lib/date-picker/index.d.ts +2 -1
- package/lib/date-picker/index.js +103 -92
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.variable.css +9 -399
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +1 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -261
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -391
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -261
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -261
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -261
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -391
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -261
- package/lib/input/input.css +75 -205
- package/lib/input/input.variable.css +76 -466
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -261
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -407
- package/lib/menu/menu.css +20 -150
- package/lib/menu/menu.variable.css +21 -411
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -261
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -261
- package/lib/modal/index.js +3 -0
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.variable.css +5 -395
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -261
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -261
- package/lib/overflow-title/components/overflow-title.d.ts +20 -0
- package/lib/overflow-title/index.d.ts +40 -0
- package/lib/overflow-title/index.js +2 -1
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +10 -0
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/pagination.css +1 -131
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +1 -261
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +32 -21265
- package/lib/pop-confirm/index.d.ts +8 -0
- package/lib/pop-confirm/index.js +16 -8
- package/lib/pop-confirm/pop-confirm.css +0 -130
- package/lib/pop-confirm/pop-confirm.d.ts +4 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -261
- package/lib/pop-confirm/props.d.ts +3 -0
- package/lib/popover/index.d.ts +49 -3
- package/lib/popover/index.js +87 -17449
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +23 -1
- package/lib/popover/popover.variable.css +1 -261
- package/lib/popover/props.d.ts +16 -0
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover/utils.d.ts +1 -1
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -261
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -395
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.variable.css +1 -261
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -261
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -261
- package/lib/scrollbar/css/scrollbar.css +0 -130
- package/lib/scrollbar/css/scrollbar.variable.css +1 -261
- package/lib/search-select/index.d.ts +6 -0
- package/lib/search-select/index.js +27 -1
- package/lib/search-select/input.d.ts +1 -0
- package/lib/search-select/search-select.css +78 -208
- package/lib/search-select/search-select.d.ts +2 -0
- package/lib/search-select/search-select.less +39 -39
- package/lib/search-select/search-select.variable.css +79 -469
- package/lib/search-select/selected.d.ts +2 -0
- package/lib/select/index.d.ts +78 -7
- package/lib/select/index.js +83 -74
- package/lib/select/select.css +42 -169
- package/lib/select/select.d.ts +32 -2
- package/lib/select/select.less +4 -0
- package/lib/select/select.variable.css +43 -430
- package/lib/sideslider/sideslider.css +1 -131
- package/lib/sideslider/sideslider.variable.css +1 -261
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -261
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.variable.css +1 -261
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -261
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -261
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -261
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -261
- package/lib/styles/themes/themes.less +130 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -261
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -408
- package/lib/tab/tab.css +26 -156
- package/lib/tab/tab.variable.css +1 -261
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/index.d.ts +7 -7
- package/lib/table/index.js +59 -17260
- package/lib/table/plugins/head-filter.css +0 -130
- package/lib/table/plugins/head-filter.variable.css +1 -261
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -261
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.variable.css +1 -261
- package/lib/table/table.css +189 -319
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.variable.css +190 -580
- package/lib/table-column/index.d.ts +3 -3
- package/lib/table-column/index.js +9 -17991
- package/lib/tag/tag.css +5 -135
- package/lib/tag/tag.variable.css +1 -261
- package/lib/tag-input/index.d.ts +52 -10
- package/lib/tag-input/index.js +134 -17399
- package/lib/tag-input/tag-input.css +21 -148
- package/lib/tag-input/tag-input.d.ts +24 -4
- package/lib/tag-input/tag-input.less +4 -0
- package/lib/tag-input/tag-input.variable.css +4 -261
- package/lib/tag-input/tag-props.d.ts +11 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -261
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -261
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.variable.css +1 -261
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +11 -17270
- package/lib/tree/tree.css +10 -140
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +11 -401
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.variable.css +28 -418
- package/lib/virtual-render/index.d.ts +3 -3
- package/lib/virtual-render/index.js +8 -17267
- package/lib/virtual-render/virtual-render.css +0 -130
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +1 -391
- package/package.json +1 -1
- package/lib/styles/themes/themes.css +0 -130
- package/lib/styles/themes/themes.variable.css +0 -130
@@ -124,6 +124,7 @@ declare const BkSearchSelect: {
|
|
124
124
|
and: string;
|
125
125
|
logical: string;
|
126
126
|
}>;
|
127
|
+
inputKey: import("vue").Ref<string>;
|
127
128
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
128
129
|
data: {
|
129
130
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -256,6 +257,7 @@ declare const BkSearchSelect: {
|
|
256
257
|
and: string;
|
257
258
|
logical: string;
|
258
259
|
}>;
|
260
|
+
inputKey: import("vue").Ref<string>;
|
259
261
|
}, {}, {}, {}, {
|
260
262
|
maxHeight: number;
|
261
263
|
mode: import("./utils").SearchInputMode;
|
@@ -578,6 +580,7 @@ declare const BkSearchSelect: {
|
|
578
580
|
and: string;
|
579
581
|
logical: string;
|
580
582
|
}>;
|
583
|
+
inputKey: import("vue").Ref<string>;
|
581
584
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
582
585
|
data: {
|
583
586
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -710,6 +713,7 @@ declare const BkSearchSelect: {
|
|
710
713
|
and: string;
|
711
714
|
logical: string;
|
712
715
|
}>;
|
716
|
+
inputKey: import("vue").Ref<string>;
|
713
717
|
}, {}, {}, {}, {
|
714
718
|
maxHeight: number;
|
715
719
|
mode: import("./utils").SearchInputMode;
|
@@ -981,6 +985,7 @@ declare const BkSearchSelect: {
|
|
981
985
|
and: string;
|
982
986
|
logical: string;
|
983
987
|
}>;
|
988
|
+
inputKey: import("vue").Ref<string>;
|
984
989
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
985
990
|
data: {
|
986
991
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -1113,6 +1118,7 @@ declare const BkSearchSelect: {
|
|
1113
1118
|
and: string;
|
1114
1119
|
logical: string;
|
1115
1120
|
}>;
|
1121
|
+
inputKey: import("vue").Ref<string>;
|
1116
1122
|
}, {}, {}, {}, {
|
1117
1123
|
maxHeight: number;
|
1118
1124
|
mode: import("./utils").SearchInputMode;
|
@@ -1588,6 +1588,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1588
1588
|
var _usingItem$value;
|
1589
1589
|
return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
|
1590
1590
|
});
|
1591
|
+
var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
|
1591
1592
|
(0,external_vue_namespaceObject.watch)(editKey, function () {
|
1592
1593
|
if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
|
1593
1594
|
showPopover.value = false;
|
@@ -1742,11 +1743,33 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1742
1743
|
keyword.value = text;
|
1743
1744
|
debounceSetMenuList();
|
1744
1745
|
return;
|
1746
|
+
} else {
|
1747
|
+
// command + a 全选删除特殊逻辑
|
1748
|
+
if (usingItem.value && !text) {
|
1749
|
+
inputKey.value = (0,shared_namespaceObject.random)(10);
|
1750
|
+
menuHoverId.value = '';
|
1751
|
+
usingItem.value = null;
|
1752
|
+
keyword.value = '';
|
1753
|
+
setTimeout(function () {
|
1754
|
+
setInputFocus(true, true);
|
1755
|
+
(0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1756
|
+
}, 200);
|
1757
|
+
return;
|
1758
|
+
}
|
1745
1759
|
}
|
1746
1760
|
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '').trim();
|
1747
1761
|
debounceSetMenuList();
|
1748
1762
|
}
|
1749
1763
|
function handleInputKeyup(event) {
|
1764
|
+
// if ((event.ctrlKey || event.metaKey) && event.key === 'a') {
|
1765
|
+
// const selection = window.getSelection();
|
1766
|
+
// const range = selection.getRangeAt(0);
|
1767
|
+
// const startContainer = range.startContainer;
|
1768
|
+
// if (startContainer === inputRef.value) {
|
1769
|
+
// event?.preventDefault();
|
1770
|
+
// }
|
1771
|
+
// return;
|
1772
|
+
// }
|
1750
1773
|
switch (event.code) {
|
1751
1774
|
case 'Enter':
|
1752
1775
|
case 'NumpadEnter':
|
@@ -2443,7 +2466,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2443
2466
|
deleteInputTextNode: deleteInputTextNode,
|
2444
2467
|
customPanelSubmit: customPanelSubmit,
|
2445
2468
|
refleshMenuHover: refleshMenuHover,
|
2446
|
-
t: t
|
2469
|
+
t: t,
|
2470
|
+
inputKey: inputKey
|
2447
2471
|
};
|
2448
2472
|
},
|
2449
2473
|
render: function render() {
|
@@ -2462,6 +2486,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2462
2486
|
var inputContent = function inputContent() {
|
2463
2487
|
var _this$keyword2, _this$usingItem, _this$usingItem2;
|
2464
2488
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2489
|
+
"key": _this.inputKey,
|
2465
2490
|
"ref": "inputRef",
|
2466
2491
|
"class": {
|
2467
2492
|
'div-input': true,
|
@@ -2543,6 +2568,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2543
2568
|
}, null)]) : undefined;
|
2544
2569
|
};
|
2545
2570
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
2571
|
+
"key": this.inputKey,
|
2546
2572
|
"arrow": false,
|
2547
2573
|
"disableOutsideClick": true,
|
2548
2574
|
"isShow": showPopover,
|
@@ -83,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
and: string;
|
84
84
|
logical: string;
|
85
85
|
}>;
|
86
|
+
inputKey: Ref<string>;
|
86
87
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], "focus" | "delete" | "add" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
87
88
|
data: {
|
88
89
|
type: PropType<ISearchItem[]>;
|
@@ -1,134 +1,4 @@
|
|
1
1
|
/* stylelint-disable declaration-no-important */
|
2
|
-
:root {
|
3
|
-
--bk-prefix: bk;
|
4
|
-
--popover-max-height: 216px;
|
5
|
-
--primary-color: #3a84ff;
|
6
|
-
--success-color: #2dcb56;
|
7
|
-
--warning-color: #ff9c01;
|
8
|
-
--danger-color: #ea3636;
|
9
|
-
--default-color: #63656e;
|
10
|
-
--gray-color: #979ba5;
|
11
|
-
--light-gray: #c4c6cc;
|
12
|
-
--white-color: white;
|
13
|
-
--whitesmoke-color: #fafbfd;
|
14
|
-
--disable-color: #dcdee5;
|
15
|
-
--disable-bg-color: #f9fafd;
|
16
|
-
--border-color: #dcdee5;
|
17
|
-
--font-size-base: 12px;
|
18
|
-
--font-size-medium: 14px;
|
19
|
-
--font-size-large: 16px;
|
20
|
-
--line-height-base: 16px;
|
21
|
-
--line-height-medium: 16px;
|
22
|
-
--line-height-large: 18px;
|
23
|
-
--component-size-small: 26px;
|
24
|
-
--component-size-base: 32px;
|
25
|
-
--component-size-large: 40px;
|
26
|
-
--component-size-small-padding: 0 12px;
|
27
|
-
--component-size-base-padding: 0 14px;
|
28
|
-
--component-size-large-padding: 0 16px;
|
29
|
-
--border-width-base: 1px;
|
30
|
-
--border-style-base: solid;
|
31
|
-
--border-radius-base: 2px;
|
32
|
-
--border-style-color: var(--light-gray);
|
33
|
-
--input-disabled-bg: #fafbfd;
|
34
|
-
--input-disabled-border: var(--disable-color);
|
35
|
-
--input-height-base: var(--component-size-base);
|
36
|
-
--input-color: var(--default-color);
|
37
|
-
--input-bg: white;
|
38
|
-
--input-border-color: var(--light-gray);
|
39
|
-
--input-broder-radius: 3px;
|
40
|
-
--input-shadow-color: #a3c5fd;
|
41
|
-
--input-horizontal-padding: 8px;
|
42
|
-
--input-block-color: #f5f7fa;
|
43
|
-
--input-block-hover-color: #eaebf0;
|
44
|
-
--input-icon-size: var(--font-size-medium);
|
45
|
-
--input-maxlength-color: #979ba5;
|
46
|
-
--button-primary-hover-color: #5594fa;
|
47
|
-
--button-danger-hover-color: #ff5656;
|
48
|
-
--button-success-hover-color: #45e35f;
|
49
|
-
--button-warning-hover-color: #ffb848;
|
50
|
-
--button-default-hover-border-color: #979ba5;
|
51
|
-
--button-primary-active-color: #2c77f4;
|
52
|
-
--button-danger-active-color: #db2626;
|
53
|
-
--button-success-active-color: #1ab943;
|
54
|
-
--button-warning-active-color: #eb9000;
|
55
|
-
--button-selected-bg-color: #e1ecff;
|
56
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
57
|
-
--radio-font-color: #63656e;
|
58
|
-
--radio-active-color: #3a84ff;
|
59
|
-
--radio-hover-border-color: #979ba5;
|
60
|
-
--radio-disabled-border: #dcdee5;
|
61
|
-
--radio-disabled-font-color: #c4c6cc;
|
62
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
63
|
-
--radio-button-checked-bg: #e1ecff;
|
64
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
65
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
66
|
-
--fixed-navbar-background: #fff;
|
67
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
68
|
-
--switch-default-color: #fff;
|
69
|
-
--switch-grey-color: #c4c6cc;
|
70
|
-
--breadcrumb-black-color: #979ba5;
|
71
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
72
|
-
--breadcrumb-fn-main-color: #63656e;
|
73
|
-
--link-default-hover-color: #979ba5;
|
74
|
-
--link-primary-hover-color: #699df4;
|
75
|
-
--link-success-hover-color: #45e35f;
|
76
|
-
--link-warning-hover-color: #ffb848;
|
77
|
-
--link-danger-hover-color: #ff5656;
|
78
|
-
--link-default-disabled-color: #dcdee5;
|
79
|
-
--link-primary-disabled-color: #a3c5fd;
|
80
|
-
--link-success-disabled-color: #94f5a4;
|
81
|
-
--link-warning-disabled-color: #ffd695;
|
82
|
-
--link-danger-disabled-color: #fd9c9c;
|
83
|
-
--message-color: var(--default-color);
|
84
|
-
--message-primary-bg-color: #f0f8ff;
|
85
|
-
--message-primary-border-color: #e1ecff;
|
86
|
-
--message-primary-shadow-color: #e1e8f4;
|
87
|
-
--message-warning-bg-color: #fff4e2;
|
88
|
-
--message-warning-border-color: #ffe8c3;
|
89
|
-
--message-warning-shadow-color: #ede6db;
|
90
|
-
--message-success-bg-color: #f2fff4;
|
91
|
-
--message-success-border-color: #dcffe2;
|
92
|
-
--message-success-shadow-color: #cef0d7;
|
93
|
-
--message-danger-bg-color: #ffeded;
|
94
|
-
--message-danger-border-color: #ffdddd;
|
95
|
-
--message-danger-shadow-color: #f6dada;
|
96
|
-
--slider-default-bg: #dcdee5;
|
97
|
-
--slider-disable-bar-bg: #979ba5;
|
98
|
-
--menu-bg-color: #182132;
|
99
|
-
--submenu-bg-color: #151d2c;
|
100
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
101
|
-
--menu-color: #96a2b9;
|
102
|
-
--menu-group-color: var(--default-color);
|
103
|
-
--menu-width: 260px;
|
104
|
-
--menu-collapse-width: 60px;
|
105
|
-
--menu-active-color: white;
|
106
|
-
--nav-header-bg-color: #182132;
|
107
|
-
--nav-bg-color: #182132;
|
108
|
-
--date-picker-disabled-bg: #fafbfd;
|
109
|
-
--date-picker-dropdown-mb: 4px;
|
110
|
-
--date-picker-dropdown-bg: #fff;
|
111
|
-
--table-bg-color: var(--white-color);
|
112
|
-
--table-border-color: #dcdee5;
|
113
|
-
--table-strip-color: #fafbfd;
|
114
|
-
--table-head-bg-color: #fafbfd;
|
115
|
-
--table-head-font-color: #313238;
|
116
|
-
--table-body-font-color: #63656e;
|
117
|
-
--table-row-hover-bg-color: #f5f7fa;
|
118
|
-
--table-row-active-bg-color: #f0f1f5;
|
119
|
-
--cascader-panel-border-color: #dcdee5;
|
120
|
-
--cascader-panel-hover: #f5f7fa;
|
121
|
-
--cascader-panel-active: #e1ecff;
|
122
|
-
--cascader-panel-disabled-bg: #fff;
|
123
|
-
--search-select-focus-border-color: var(--primary-color);
|
124
|
-
--search-select-focus-color: #3c96ff;
|
125
|
-
--search-select-font-color: var(--default-color);
|
126
|
-
--search-select-placeholder-color: var(--light-gray);
|
127
|
-
--search-select-message-color: var(--danger-color);
|
128
|
-
--search-select-menu-border-color: var(--disable-color);
|
129
|
-
--select-active-color: #e1ecff;
|
130
|
-
--select-hover-color: #f5f7fa;
|
131
|
-
}
|
132
2
|
@keyframes loading-scale-animate {
|
133
3
|
0% {
|
134
4
|
transform: scale(1);
|
@@ -204,55 +74,58 @@
|
|
204
74
|
.bk-search-select {
|
205
75
|
position: relative;
|
206
76
|
z-index: 9;
|
207
|
-
height:
|
77
|
+
height: 32px;
|
208
78
|
overflow: inherit;
|
209
79
|
}
|
210
80
|
.bk-search-select .focus {
|
211
|
-
color:
|
81
|
+
color: #3c96ff;
|
212
82
|
background: #fff !important;
|
213
|
-
border-color:
|
83
|
+
border-color: #3a84ff !important;
|
214
84
|
}
|
215
85
|
.bk-search-select .div-input {
|
86
|
+
flex: 1 1 auto;
|
216
87
|
height: 100%;
|
217
88
|
padding: 5px 0;
|
218
89
|
line-height: 20px;
|
219
90
|
word-break: break-all;
|
220
|
-
flex: 1 1 auto;
|
221
91
|
}
|
222
92
|
.bk-search-select .div-input:focus {
|
223
93
|
outline: none;
|
224
94
|
}
|
225
95
|
.bk-search-select-container {
|
96
|
+
box-sizing: border-box;
|
226
97
|
display: flex;
|
98
|
+
flex-direction: row;
|
99
|
+
flex-wrap: wrap;
|
100
|
+
align-items: center;
|
227
101
|
min-height: 30px;
|
228
102
|
overflow: hidden;
|
229
103
|
font-size: 12px;
|
230
|
-
color:
|
231
|
-
|
232
|
-
border
|
104
|
+
color: #63656e;
|
105
|
+
resize: none;
|
106
|
+
border: 1px solid #c4c6cc;
|
107
|
+
border-radius: 2px;
|
233
108
|
outline: none;
|
234
|
-
box-sizing: border-box;
|
235
109
|
transition: border 0.2s linear;
|
236
|
-
resize: none;
|
237
|
-
flex-direction: row;
|
238
|
-
align-items: center;
|
239
|
-
flex-wrap: wrap;
|
240
110
|
}
|
241
111
|
.bk-search-select-container.is-focus {
|
242
112
|
overflow: auto;
|
243
|
-
color:
|
113
|
+
color: #3c96ff;
|
244
114
|
background: #fff !important;
|
245
|
-
border-color:
|
115
|
+
border-color: #3a84ff !important;
|
246
116
|
}
|
247
117
|
.bk-search-select-container .search-prefix {
|
248
|
-
flex: 0 0 auto;
|
249
118
|
display: flex;
|
119
|
+
flex: 0 0 auto;
|
250
120
|
align-items: center;
|
251
121
|
height: 100%;
|
252
122
|
}
|
253
123
|
.bk-search-select-container .search-container {
|
254
124
|
position: relative;
|
255
125
|
display: flex;
|
126
|
+
flex: 1;
|
127
|
+
flex-wrap: wrap;
|
128
|
+
align-items: center;
|
256
129
|
max-width: calc(100% - 42px);
|
257
130
|
min-height: 26px;
|
258
131
|
padding: 0 2px;
|
@@ -260,22 +133,19 @@
|
|
260
133
|
overflow: visible;
|
261
134
|
text-align: left;
|
262
135
|
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
263
|
-
flex: 1;
|
264
|
-
flex-wrap: wrap;
|
265
|
-
align-items: center;
|
266
136
|
}
|
267
137
|
.bk-search-select-container .search-container-selected {
|
268
138
|
position: relative;
|
269
139
|
display: inline-block;
|
140
|
+
flex: 0 0 auto;
|
141
|
+
align-self: center;
|
270
142
|
max-width: 99%;
|
271
143
|
padding-left: 8px;
|
272
144
|
margin: 0 0 4px 6px;
|
273
145
|
line-height: 22px;
|
274
|
-
color:
|
146
|
+
color: #63656e;
|
275
147
|
background: #f0f1f5;
|
276
148
|
border-radius: 2px;
|
277
|
-
flex: 0 0 auto;
|
278
|
-
align-self: center;
|
279
149
|
}
|
280
150
|
.bk-search-select-container .search-container-selected.hidden-selected {
|
281
151
|
visibility: hidden;
|
@@ -287,7 +157,7 @@
|
|
287
157
|
background: #dcdee5;
|
288
158
|
}
|
289
159
|
.bk-search-select-container .search-container-selected:hover .selected-clear {
|
290
|
-
color:
|
160
|
+
color: #63656e;
|
291
161
|
}
|
292
162
|
.bk-search-select-container .search-container-selected .selected-name {
|
293
163
|
display: inline-block;
|
@@ -299,6 +169,8 @@
|
|
299
169
|
top: 4px;
|
300
170
|
right: 3px;
|
301
171
|
display: inline-flex;
|
172
|
+
align-items: center;
|
173
|
+
justify-content: center;
|
302
174
|
width: 14px;
|
303
175
|
height: 14px;
|
304
176
|
overflow: hidden;
|
@@ -307,59 +179,57 @@
|
|
307
179
|
color: #979ba5;
|
308
180
|
text-align: center;
|
309
181
|
cursor: pointer;
|
310
|
-
align-items: center;
|
311
|
-
justify-content: center;
|
312
182
|
}
|
313
183
|
.bk-search-select-container .search-container-input {
|
314
184
|
position: relative;
|
315
185
|
display: block;
|
316
|
-
|
186
|
+
flex: 1;
|
317
187
|
min-width: 40px;
|
188
|
+
height: 100%;
|
318
189
|
padding: 0 10px;
|
319
190
|
margin-top: -4px;
|
320
|
-
color:
|
191
|
+
color: #63656e;
|
321
192
|
border: none;
|
322
|
-
flex: 1;
|
323
193
|
}
|
324
|
-
.bk-search-select-container .search-container-input .input-before
|
325
|
-
color:
|
194
|
+
.bk-search-select-container .search-container-input .input-before::after {
|
195
|
+
color: #c4c6cc;
|
326
196
|
content: attr(data-placeholder);
|
327
197
|
}
|
328
198
|
.bk-search-select-container .search-container-input .input-after:after {
|
329
199
|
padding-left: 2px;
|
330
|
-
color:
|
200
|
+
color: #c4c6cc;
|
331
201
|
content: attr(data-tips);
|
332
202
|
}
|
333
203
|
.bk-search-select-container .search-container .selected-input {
|
334
204
|
position: relative;
|
335
205
|
display: flex;
|
336
|
-
|
206
|
+
align-items: center;
|
337
207
|
min-width: 40px;
|
208
|
+
height: 100%;
|
338
209
|
padding: 0 10px;
|
339
210
|
margin-top: -4px;
|
340
|
-
color:
|
211
|
+
color: #63656e;
|
341
212
|
border: none;
|
342
|
-
align-items: center;
|
343
213
|
}
|
344
214
|
.bk-search-select-container .search-nextfix {
|
345
215
|
position: absolute;
|
346
216
|
top: 0;
|
347
217
|
right: 0;
|
348
|
-
color:
|
349
|
-
flex: 0 0 auto;
|
218
|
+
color: #c4c6cc;
|
350
219
|
display: flex;
|
220
|
+
flex: 0 0 auto;
|
351
221
|
align-items: center;
|
352
222
|
height: 100%;
|
353
223
|
}
|
354
224
|
.bk-search-select-container .search-nextfix .search-clear {
|
355
225
|
display: flex;
|
226
|
+
align-items: center;
|
227
|
+
justify-content: center;
|
356
228
|
width: 12px;
|
357
229
|
height: 12px;
|
358
230
|
margin-right: 6px;
|
359
231
|
font-size: 12px;
|
360
|
-
color:
|
361
|
-
align-items: center;
|
362
|
-
justify-content: center;
|
232
|
+
color: #c4c6cc;
|
363
233
|
}
|
364
234
|
.bk-search-select-container .search-nextfix .search-clear:hover {
|
365
235
|
color: #979ba5;
|
@@ -367,16 +237,16 @@
|
|
367
237
|
}
|
368
238
|
.bk-search-select-container .search-nextfix .search-nextfix-icon {
|
369
239
|
display: flex;
|
240
|
+
align-items: center;
|
241
|
+
justify-content: center;
|
370
242
|
margin-right: 8px;
|
371
243
|
font-size: 16px;
|
372
244
|
transition: color 0.2s linear;
|
373
|
-
align-items: center;
|
374
|
-
justify-content: center;
|
375
245
|
}
|
376
246
|
.bk-search-select-container .search-nextfix .search-nextfix-icon.is-focus {
|
377
|
-
color:
|
247
|
+
color: #3c96ff;
|
378
248
|
background: #fff !important;
|
379
|
-
border-color:
|
249
|
+
border-color: #3a84ff !important;
|
380
250
|
}
|
381
251
|
.bk-search-select-container::-webkit-scrollbar {
|
382
252
|
width: 3px;
|
@@ -389,28 +259,28 @@
|
|
389
259
|
}
|
390
260
|
.bk-search-select-tips {
|
391
261
|
display: flex;
|
262
|
+
align-items: center;
|
392
263
|
margin-top: 5px;
|
393
264
|
font-size: 12px;
|
394
265
|
line-height: 16px;
|
395
|
-
color:
|
396
|
-
align-items: center;
|
266
|
+
color: #ea3636;
|
397
267
|
}
|
398
268
|
.bk-search-select-tips .select-tips {
|
399
269
|
display: flex;
|
270
|
+
align-items: center;
|
271
|
+
justify-content: center;
|
400
272
|
width: 16px;
|
401
273
|
height: 16px;
|
402
274
|
margin-right: 5px;
|
403
275
|
overflow: hidden;
|
404
276
|
font-size: 16px;
|
405
|
-
align-items: center;
|
406
|
-
justify-content: center;
|
407
277
|
}
|
408
278
|
.bk-search-select-menu {
|
409
279
|
display: flex;
|
280
|
+
flex-direction: column;
|
410
281
|
min-width: 200px;
|
411
282
|
font-size: 12px;
|
412
|
-
color:
|
413
|
-
flex-direction: column;
|
283
|
+
color: #63656e;
|
414
284
|
}
|
415
285
|
.bk-search-select-menu .menu-list-mixin {
|
416
286
|
display: flex;
|
@@ -418,23 +288,23 @@
|
|
418
288
|
}
|
419
289
|
.bk-search-select-menu .menu-item-mixin {
|
420
290
|
display: flex;
|
291
|
+
flex: 0 0 32px;
|
292
|
+
align-items: center;
|
421
293
|
width: 100%;
|
422
|
-
height: 32px;
|
423
294
|
max-width: 500px;
|
295
|
+
height: 32px;
|
424
296
|
padding: 0 8px;
|
425
297
|
overflow: hidden;
|
426
298
|
text-overflow: ellipsis;
|
427
299
|
white-space: nowrap;
|
428
300
|
outline: none;
|
429
|
-
align-items: center;
|
430
|
-
flex: 0 0 32px;
|
431
301
|
}
|
432
302
|
.bk-search-select-menu .menu-item-mixin:hover {
|
433
303
|
cursor: pointer;
|
434
304
|
background-color: #f5f7fa;
|
435
305
|
}
|
436
306
|
.bk-search-select-menu .menu-disabled-mixin {
|
437
|
-
color:
|
307
|
+
color: #c4c6cc;
|
438
308
|
}
|
439
309
|
.bk-search-select-menu .menu-disabled-mixin:hover {
|
440
310
|
cursor: not-allowed;
|
@@ -443,27 +313,27 @@
|
|
443
313
|
.bk-search-select-menu .menu-header {
|
444
314
|
display: flex;
|
445
315
|
flex-direction: column;
|
446
|
-
border-bottom:
|
316
|
+
border-bottom: 1px solid #c4c6cc;
|
447
317
|
}
|
448
318
|
.bk-search-select-menu .menu-header-item {
|
449
319
|
display: flex;
|
320
|
+
flex: 0 0 32px;
|
321
|
+
align-items: center;
|
450
322
|
width: 100%;
|
451
|
-
height: 32px;
|
452
323
|
max-width: 500px;
|
324
|
+
height: 32px;
|
453
325
|
padding: 0 8px;
|
454
326
|
overflow: hidden;
|
455
327
|
text-overflow: ellipsis;
|
456
328
|
white-space: nowrap;
|
457
329
|
outline: none;
|
458
|
-
align-items: center;
|
459
|
-
flex: 0 0 32px;
|
460
330
|
}
|
461
331
|
.bk-search-select-menu .menu-header-item:hover {
|
462
332
|
cursor: pointer;
|
463
333
|
background-color: #f5f7fa;
|
464
334
|
}
|
465
335
|
.bk-search-select-menu .menu-header-item.is-disabled {
|
466
|
-
color:
|
336
|
+
color: #c4c6cc;
|
467
337
|
}
|
468
338
|
.bk-search-select-menu .menu-header-item.is-disabled:hover {
|
469
339
|
cursor: not-allowed;
|
@@ -476,17 +346,17 @@
|
|
476
346
|
}
|
477
347
|
.bk-search-select-menu .menu-content-wrapper .menu-condition {
|
478
348
|
display: flex;
|
349
|
+
flex: 0 0 64px;
|
350
|
+
flex-direction: column;
|
479
351
|
width: 64px;
|
480
352
|
padding: 8px 8px 2px 10px;
|
481
353
|
background-color: #f5f7fa;
|
482
|
-
flex-direction: column;
|
483
|
-
flex: 0 0 64px;
|
484
354
|
}
|
485
355
|
.bk-search-select-menu .menu-content-wrapper .menu-condition-title {
|
486
356
|
display: flex;
|
357
|
+
align-items: center;
|
487
358
|
margin-bottom: 12px;
|
488
359
|
line-height: 24px;
|
489
|
-
align-items: center;
|
490
360
|
}
|
491
361
|
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
|
492
362
|
width: 50px;
|
@@ -497,24 +367,24 @@
|
|
497
367
|
}
|
498
368
|
.bk-search-select-menu .menu-content {
|
499
369
|
display: flex;
|
370
|
+
flex: 1;
|
371
|
+
flex-direction: column;
|
500
372
|
padding: 4px 0;
|
501
373
|
margin: 0;
|
502
374
|
overflow: auto;
|
503
|
-
flex-direction: column;
|
504
|
-
flex: 1;
|
505
375
|
}
|
506
376
|
.bk-search-select-menu .menu-content .menu-item {
|
507
377
|
display: flex;
|
378
|
+
flex: 0 0 32px;
|
379
|
+
align-items: center;
|
508
380
|
width: 100%;
|
509
|
-
height: 32px;
|
510
381
|
max-width: 500px;
|
382
|
+
height: 32px;
|
511
383
|
padding: 0 8px;
|
512
384
|
overflow: hidden;
|
513
385
|
text-overflow: ellipsis;
|
514
386
|
white-space: nowrap;
|
515
387
|
outline: none;
|
516
|
-
align-items: center;
|
517
|
-
flex: 0 0 32px;
|
518
388
|
white-space: pre;
|
519
389
|
}
|
520
390
|
.bk-search-select-menu .menu-content .menu-item:hover {
|
@@ -523,7 +393,7 @@
|
|
523
393
|
}
|
524
394
|
.bk-search-select-menu .menu-content .menu-item .is-keyword {
|
525
395
|
display: inline-flex;
|
526
|
-
color:
|
396
|
+
color: #3a84ff;
|
527
397
|
}
|
528
398
|
.bk-search-select-menu .menu-content .menu-item .is-selected {
|
529
399
|
display: flex;
|
@@ -531,52 +401,52 @@
|
|
531
401
|
height: 22px;
|
532
402
|
}
|
533
403
|
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
534
|
-
color:
|
404
|
+
color: #3a84ff;
|
535
405
|
background-color: #f5f7fa;
|
536
406
|
}
|
537
407
|
.bk-search-select-menu .menu-content .menu-item.is-hover .menu-name {
|
538
|
-
color:
|
408
|
+
color: #3a84ff;
|
539
409
|
}
|
540
410
|
.bk-search-select-menu .menu-content .menu-item.is-disabled {
|
541
|
-
color:
|
411
|
+
color: #c4c6cc;
|
542
412
|
}
|
543
413
|
.bk-search-select-menu .menu-content .menu-item.is-disabled:hover {
|
544
414
|
cursor: not-allowed;
|
545
415
|
background-color: white;
|
546
416
|
}
|
547
417
|
.bk-search-select-menu .menu-content .menu-item.is-disabled .menu-name {
|
548
|
-
color:
|
418
|
+
color: #c4c6cc;
|
549
419
|
}
|
550
420
|
.bk-search-select-menu .menu-content .menu-item .menu-name {
|
551
421
|
display: flex;
|
422
|
+
align-items: center;
|
552
423
|
margin-right: 5px;
|
553
424
|
font-weight: bold;
|
554
|
-
color:
|
555
|
-
align-items: center;
|
425
|
+
color: #63656e;
|
556
426
|
}
|
557
427
|
.bk-search-select-menu .menu-footer {
|
558
428
|
display: flex;
|
429
|
+
align-items: center;
|
559
430
|
width: 100%;
|
560
431
|
height: 32px;
|
561
|
-
border-top:
|
562
|
-
align-items: center;
|
432
|
+
border-top: 1px solid #dcdee5;
|
563
433
|
}
|
564
434
|
.bk-search-select-menu .menu-footer-btn {
|
565
|
-
flex: 1;
|
566
435
|
display: flex;
|
436
|
+
flex: 1;
|
567
437
|
align-items: center;
|
568
438
|
justify-content: center;
|
569
439
|
height: 100%;
|
570
440
|
}
|
571
441
|
.bk-search-select-menu .menu-footer-btn:first-child {
|
572
|
-
border-right:
|
442
|
+
border-right: 1px solid #dcdee5;
|
573
443
|
}
|
574
444
|
.bk-search-select-menu .menu-footer-btn:hover {
|
575
|
-
color:
|
445
|
+
color: #3a84ff;
|
576
446
|
cursor: pointer;
|
577
447
|
}
|
578
448
|
.bk-search-select-menu .menu-footer-btn.is-disabled {
|
579
|
-
color:
|
449
|
+
color: #c4c6cc;
|
580
450
|
}
|
581
451
|
.bk-search-select-menu .menu-footer-btn.is-disabled:hover {
|
582
452
|
cursor: not-allowed;
|
@@ -156,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
156
|
and: string;
|
157
157
|
logical: string;
|
158
158
|
}>;
|
159
|
+
inputKey: import("vue").Ref<string>;
|
159
160
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
160
161
|
data: {
|
161
162
|
type: PropType<ISearchItem[]>;
|
@@ -288,6 +289,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
288
289
|
and: string;
|
289
290
|
logical: string;
|
290
291
|
}>;
|
292
|
+
inputKey: import("vue").Ref<string>;
|
291
293
|
}, {}, {}, {}, {
|
292
294
|
maxHeight: number;
|
293
295
|
mode: import("./utils").SearchInputMode;
|