bkui-vue 0.0.2-beta.122 → 0.0.2-beta.124
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 +27 -27
- package/dist/index.esm.js +5976 -5969
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -123
- package/lib/affix/affix.variable.css +0 -246
- package/lib/alert/alert.css +3 -126
- package/lib/alert/alert.variable.css +0 -246
- package/lib/backtop/backtop.css +3 -126
- package/lib/backtop/backtop.variable.css +3 -372
- package/lib/badge/badge.css +26 -149
- package/lib/badge/badge.variable.css +0 -246
- package/lib/breadcrumb/breadcrumb.css +5 -128
- package/lib/breadcrumb/breadcrumb.variable.css +5 -374
- package/lib/button/button.css +128 -251
- package/lib/button/button.less +7 -6
- package/lib/button/button.variable.css +0 -246
- package/lib/card/card.css +4 -127
- package/lib/card/card.variable.css +4 -373
- package/lib/cascader/cascader.css +23 -146
- package/lib/cascader/cascader.variable.css +23 -392
- package/lib/cascader/index.js +10 -4
- package/lib/checkbox/checkbox.css +9 -132
- package/lib/checkbox/checkbox.variable.css +0 -246
- package/lib/code-diff/code-diff.css +0 -123
- package/lib/code-diff/code-diff.variable.css +0 -246
- package/lib/collapse/collapse.css +1 -124
- package/lib/collapse/collapse.variable.css +0 -246
- package/lib/collapse-transition/collapse-transition.css +0 -123
- package/lib/collapse-transition/collapse-transition.variable.css +0 -246
- package/lib/color-picker/color-picker.css +0 -123
- package/lib/color-picker/color-picker.variable.css +0 -246
- package/lib/config-provider/config-provider.css +0 -123
- package/lib/config-provider/config-provider.variable.css +0 -246
- package/lib/container/container.css +0 -123
- package/lib/container/container.variable.css +0 -369
- package/lib/date-picker/date-picker.css +17 -140
- package/lib/date-picker/date-picker.variable.css +0 -246
- package/lib/dialog/dialog.css +9 -132
- package/lib/dialog/dialog.variable.css +9 -378
- package/lib/divider/divider.css +3 -126
- package/lib/divider/divider.variable.css +0 -246
- package/lib/dropdown/dropdown.css +0 -123
- package/lib/dropdown/dropdown.variable.css +0 -369
- package/lib/exception/exception.css +0 -123
- package/lib/exception/exception.variable.css +0 -246
- package/lib/fixed-navbar/fixed-navbar.css +4 -127
- package/lib/fixed-navbar/fixed-navbar.variable.css +0 -246
- package/lib/form/form.css +0 -123
- package/lib/form/form.variable.css +0 -246
- package/lib/image/image-viewer.css +0 -123
- package/lib/image/image-viewer.variable.css +0 -246
- package/lib/image/image.css +0 -123
- package/lib/image/image.variable.css +0 -369
- package/lib/info-box/info-box.css +0 -123
- package/lib/info-box/info-box.variable.css +0 -246
- package/lib/input/input.css +72 -195
- package/lib/input/input.variable.css +72 -441
- package/lib/link/link.css +16 -139
- package/lib/link/link.variable.css +0 -246
- package/lib/loading/loading.css +16 -139
- package/lib/loading/loading.variable.css +16 -385
- package/lib/menu/menu.css +18 -141
- package/lib/menu/menu.variable.css +18 -387
- package/lib/menu/submenu.css +0 -123
- package/lib/menu/submenu.variable.css +0 -246
- package/lib/message/message.css +21 -144
- package/lib/message/message.variable.css +0 -246
- package/lib/modal/modal.css +0 -123
- package/lib/modal/modal.variable.css +0 -369
- package/lib/navigation/navigation.css +2 -125
- package/lib/navigation/navigation.variable.css +0 -246
- package/lib/notify/notify.css +7 -130
- package/lib/notify/notify.variable.css +0 -246
- package/lib/pagination/pagination.css +1 -124
- package/lib/pagination/pagination.variable.css +0 -246
- package/lib/pop-confirm/pop-confirm.css +0 -123
- package/lib/pop-confirm/pop-confirm.variable.css +0 -246
- package/lib/popover/popover.css +0 -123
- package/lib/popover/popover.variable.css +0 -246
- package/lib/process/process.css +13 -136
- package/lib/process/process.variable.css +0 -246
- package/lib/progress/progress.css +4 -127
- package/lib/progress/progress.variable.css +4 -373
- package/lib/radio/radio.css +31 -154
- package/lib/radio/radio.variable.css +0 -246
- package/lib/rate/rate.css +0 -123
- package/lib/rate/rate.variable.css +0 -246
- package/lib/rate/star.css +0 -123
- package/lib/rate/star.variable.css +0 -246
- package/lib/resize-layout/resize-layout.css +0 -123
- package/lib/resize-layout/resize-layout.variable.css +0 -246
- package/lib/search-select/search-select.css +33 -156
- package/lib/search-select/search-select.variable.css +33 -402
- package/lib/select/common.d.ts +3 -1
- package/lib/select/index.d.ts +9 -6
- package/lib/select/index.js +33 -21
- package/lib/select/select.css +24 -147
- package/lib/select/select.d.ts +3 -2
- package/lib/select/select.variable.css +24 -393
- package/lib/sideslider/sideslider.css +1 -124
- package/lib/sideslider/sideslider.variable.css +0 -246
- package/lib/slider/slider.css +4 -127
- package/lib/slider/slider.variable.css +0 -246
- package/lib/steps/steps.css +38 -161
- package/lib/steps/steps.variable.css +0 -246
- package/lib/styles/mixins/animate.css +0 -123
- package/lib/styles/mixins/animate.variable.css +0 -246
- package/lib/styles/mixins/mixins.css +0 -123
- package/lib/styles/mixins/mixins.variable.css +0 -123
- package/lib/styles/mixins/popper.css +0 -123
- package/lib/styles/mixins/popper.variable.css +0 -246
- package/lib/styles/mixins/scroll.css +0 -123
- package/lib/styles/mixins/scroll.variable.css +0 -246
- package/lib/styles/reset.css +0 -123
- package/lib/styles/reset.variable.css +0 -246
- package/lib/styles/themes/themes.less +126 -300
- package/lib/swiper/swiper.css +0 -123
- package/lib/swiper/swiper.variable.css +0 -246
- package/lib/switcher/switcher.css +17 -140
- package/lib/switcher/switcher.variable.css +17 -386
- package/lib/tab/tab.css +17 -140
- package/lib/tab/tab.variable.css +0 -246
- package/lib/table/plugins/head-filter.css +0 -123
- package/lib/table/plugins/head-filter.variable.css +0 -246
- package/lib/table/plugins/head-sort.css +0 -123
- package/lib/table/plugins/head-sort.variable.css +0 -246
- package/lib/table/plugins/settings.css +0 -123
- package/lib/table/plugins/settings.variable.css +0 -246
- package/lib/table/table.css +159 -282
- package/lib/table/table.variable.css +159 -528
- package/lib/tag/tag.css +5 -128
- package/lib/tag/tag.variable.css +0 -246
- package/lib/tag-input/index.js +10 -9
- package/lib/tag-input/tag-input.css +18 -141
- package/lib/tag-input/tag-input.variable.css +0 -246
- package/lib/time-picker/time-picker.css +0 -123
- package/lib/time-picker/time-picker.variable.css +0 -246
- package/lib/timeline/timeline.css +19 -142
- package/lib/timeline/timeline.variable.css +0 -246
- package/lib/transfer/transfer.css +19 -142
- package/lib/transfer/transfer.variable.css +0 -246
- package/lib/tree/tree.css +9 -132
- package/lib/tree/tree.variable.css +9 -378
- package/lib/upload/upload.css +27 -150
- package/lib/upload/upload.variable.css +27 -396
- package/lib/virtual-render/virtual-render.css +0 -123
- package/lib/virtual-render/virtual-render.variable.css +0 -369
- package/package.json +1 -1
- package/lib/styles/themes/themes.css +0 -123
- package/lib/styles/themes/themes.variable.css +0 -123
package/lib/select/index.js
CHANGED
@@ -661,16 +661,20 @@ function usePopover(config, triggerRef) {
|
|
661
661
|
};
|
662
662
|
}
|
663
663
|
function useRemoteSearch(method, callBack) {
|
664
|
-
var
|
664
|
+
var customOptionName = useDebouncedRef(''); // 自定义创建选项(自定义创建也会触发搜索)
|
665
|
+
var searchValue = useDebouncedRef('');
|
666
|
+
var curSearchValue = (0,external_vue_namespaceObject.computed)(function () {
|
667
|
+
return searchValue.value || customOptionName.value;
|
668
|
+
});
|
665
669
|
var searchLoading = (0,external_vue_namespaceObject.ref)(false);
|
666
|
-
(0,external_vue_namespaceObject.watch)(
|
670
|
+
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
667
671
|
return regenerator_default().wrap(function _callee$(_context) {
|
668
672
|
while (1) switch (_context.prev = _context.next) {
|
669
673
|
case 0:
|
670
674
|
_context.prev = 0;
|
671
675
|
searchLoading.value = true;
|
672
676
|
_context.next = 4;
|
673
|
-
return method(
|
677
|
+
return method(curSearchValue.value);
|
674
678
|
case 4:
|
675
679
|
searchLoading.value = false;
|
676
680
|
_context.next = 10;
|
@@ -690,7 +694,9 @@ function useRemoteSearch(method, callBack) {
|
|
690
694
|
}, _callee, null, [[0, 7, 10, 13]]);
|
691
695
|
})));
|
692
696
|
return {
|
693
|
-
|
697
|
+
customOptionName: customOptionName,
|
698
|
+
searchValue: searchValue,
|
699
|
+
curSearchValue: curSearchValue,
|
694
700
|
searchLoading: searchLoading
|
695
701
|
};
|
696
702
|
}
|
@@ -1514,9 +1520,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1514
1520
|
return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
|
1515
1521
|
var _toLowerCase;
|
1516
1522
|
if (hasFilterOptionFunc.value) {
|
1517
|
-
return !!filterOption.value(
|
1523
|
+
return !!filterOption.value(curSearchValue.value, item);
|
1518
1524
|
}
|
1519
|
-
return (_toLowerCase = toLowerCase(String(item[displayKey.value]))) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(toLowerCase(
|
1525
|
+
return (_toLowerCase = toLowerCase(String(item[displayKey.value]))) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(toLowerCase(curSearchValue.value));
|
1520
1526
|
});
|
1521
1527
|
});
|
1522
1528
|
// select组件是否禁用
|
@@ -1573,7 +1579,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1573
1579
|
});
|
1574
1580
|
// 是否显示全选
|
1575
1581
|
var isShowSelectAll = (0,external_vue_namespaceObject.computed)(function () {
|
1576
|
-
return multiple.value && showSelectAll.value && (!
|
1582
|
+
return multiple.value && showSelectAll.value && (!curSearchValue.value || !filterable.value);
|
1577
1583
|
});
|
1578
1584
|
var isShowAll = (0,external_vue_namespaceObject.computed)(function () {
|
1579
1585
|
return multiple.value && showAll.value;
|
@@ -1651,7 +1657,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1651
1657
|
emit('toggle', isPopoverShow.value);
|
1652
1658
|
if (!isShow) {
|
1653
1659
|
if (!keepSearchValue.value) {
|
1654
|
-
|
1660
|
+
searchValue.value = '';
|
1655
1661
|
}
|
1656
1662
|
document.removeEventListener('keydown', handleDocumentKeydown);
|
1657
1663
|
} else {
|
@@ -1704,7 +1710,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1704
1710
|
}
|
1705
1711
|
};
|
1706
1712
|
var _useRemoteSearch = useRemoteSearch(isRemoteSearch.value ? remoteMethod.value : defaultSearchMethod, initActiveOptionValue),
|
1707
|
-
|
1713
|
+
searchValue = _useRemoteSearch.searchValue,
|
1714
|
+
customOptionName = _useRemoteSearch.customOptionName,
|
1715
|
+
curSearchValue = _useRemoteSearch.curSearchValue,
|
1708
1716
|
searchLoading = _useRemoteSearch.searchLoading;
|
1709
1717
|
// 派发change事件
|
1710
1718
|
var emitChange = function emitChange(val) {
|
@@ -1718,22 +1726,25 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1718
1726
|
handleFocus();
|
1719
1727
|
togglePopover();
|
1720
1728
|
};
|
1721
|
-
//
|
1729
|
+
// 自定义创建
|
1722
1730
|
var handleInputChange = function handleInputChange(value) {
|
1723
1731
|
if (!filterable.value) return;
|
1724
|
-
|
1732
|
+
customOptionName.value = value;
|
1725
1733
|
};
|
1726
1734
|
// allow create(创建自定义选项)
|
1727
|
-
var handleCreateCustomOption = function handleCreateCustomOption(val) {
|
1735
|
+
var handleCreateCustomOption = function handleCreateCustomOption(val, e) {
|
1728
1736
|
var value = String(val);
|
1729
1737
|
if (!allowCreate.value || !value) return;
|
1738
|
+
// 阻止触发鼠标事件
|
1739
|
+
e.stopPropagation();
|
1740
|
+
e.preventDefault();
|
1730
1741
|
var matchedOption = options.value.find(function (data) {
|
1731
1742
|
return toLowerCase(String(data.optionName)) === toLowerCase(value);
|
1732
1743
|
});
|
1733
1744
|
if (filterable.value && matchedOption) {
|
1734
1745
|
// 开启搜索后,正好匹配到自定义选项,则不进行创建操作
|
1735
1746
|
handleOptionSelected(matchedOption);
|
1736
|
-
|
1747
|
+
customOptionName.value = '';
|
1737
1748
|
return;
|
1738
1749
|
}
|
1739
1750
|
var data = optionsMap.value.get(value);
|
@@ -1754,7 +1765,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1754
1765
|
emitChange(value);
|
1755
1766
|
hidePopover();
|
1756
1767
|
}
|
1757
|
-
|
1768
|
+
customOptionName.value = '';
|
1758
1769
|
};
|
1759
1770
|
// Option点击事件
|
1760
1771
|
var handleOptionSelected = function handleOptionSelected(option) {
|
@@ -1980,7 +1991,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1980
1991
|
// 删除选项
|
1981
1992
|
case 'Backspace':
|
1982
1993
|
{
|
1983
|
-
if (!multiple.value || !selected.value.length ||
|
1994
|
+
if (!multiple.value || !selected.value.length || customOptionName.value.length || e.target === searchRef.value) return; // 单选和下拉搜索不支持回退键删除
|
1984
1995
|
selected.value.pop();
|
1985
1996
|
emitChange(selected.value.map(function (item) {
|
1986
1997
|
return item.value;
|
@@ -2060,7 +2071,8 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2060
2071
|
isShowSelectContent: isShowSelectContent,
|
2061
2072
|
curContentText: curContentText,
|
2062
2073
|
isGroup: isGroup,
|
2063
|
-
|
2074
|
+
searchValue: searchValue,
|
2075
|
+
customOptionName: customOptionName,
|
2064
2076
|
isShowAll: isShowAll,
|
2065
2077
|
isShowSelectAll: isShowSelectAll,
|
2066
2078
|
virtualHeight: virtualHeight,
|
@@ -2156,9 +2168,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2156
2168
|
if (_this.multipleMode === 'tag') {
|
2157
2169
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
2158
2170
|
"ref": "selectTagInputRef",
|
2159
|
-
"modelValue": _this.
|
2171
|
+
"modelValue": _this.customOptionName,
|
2160
2172
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
2161
|
-
return _this.
|
2173
|
+
return _this.customOptionName = $event;
|
2162
2174
|
},
|
2163
2175
|
"selected": _this.selected,
|
2164
2176
|
"tagTheme": _this.tagTheme,
|
@@ -2183,7 +2195,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2183
2195
|
return (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
2184
2196
|
"ref": "inputRef",
|
2185
2197
|
"type": "text",
|
2186
|
-
"modelValue": _this.isInput ? _this.
|
2198
|
+
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
2187
2199
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
2188
2200
|
"readonly": !_this.isInput,
|
2189
2201
|
"selectReadonly": true,
|
@@ -2238,9 +2250,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2238
2250
|
"class": _this.resolveClassName('select-search-input'),
|
2239
2251
|
"placeholder": _this.localSearchPlaceholder,
|
2240
2252
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
2241
|
-
return _this.
|
2253
|
+
return _this.searchValue = $event;
|
2242
2254
|
}
|
2243
|
-
}, null), [[external_vue_namespaceObject.vModelText, _this.
|
2255
|
+
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
2244
2256
|
"class": _this.resolveClassName('select-empty')
|
2245
2257
|
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
2246
2258
|
"class": "mr5",
|
package/lib/select/select.css
CHANGED
@@ -1,126 +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
|
-
--disable-bg-color: #f9fafd;
|
15
|
-
--font-size-base: 12px;
|
16
|
-
--font-size-medium: 14px;
|
17
|
-
--font-size-large: 16px;
|
18
|
-
--line-height-base: 16px;
|
19
|
-
--line-height-medium: 16px;
|
20
|
-
--line-height-large: 18px;
|
21
|
-
--component-size-small: 26px;
|
22
|
-
--component-size-base: 32px;
|
23
|
-
--component-size-large: 40px;
|
24
|
-
--border-width-base: 1px;
|
25
|
-
--border-style-base: solid;
|
26
|
-
--border-radius-base: 2px;
|
27
|
-
--border-style-color: var(--light-gray);
|
28
|
-
--input-disabled-bg: #fafbfd;
|
29
|
-
--input-disabled-border: var(--disable-color);
|
30
|
-
--input-height-base: var(--component-size-base);
|
31
|
-
--input-color: var(--default-color);
|
32
|
-
--input-bg: white;
|
33
|
-
--input-border-color: var(--light-gray);
|
34
|
-
--input-broder-radius: 3px;
|
35
|
-
--input-shadow-color: #a3c5fd;
|
36
|
-
--input-horizontal-padding: 8px;
|
37
|
-
--input-block-color: #f5f7fa;
|
38
|
-
--input-block-hover-color: #eaebf0;
|
39
|
-
--input-icon-size: var(--font-size-medium);
|
40
|
-
--input-maxlength-color: #979ba5;
|
41
|
-
--button-primary-hover-color: #5594fa;
|
42
|
-
--button-danger-hover-color: #ff5656;
|
43
|
-
--button-success-hover-color: #45e35f;
|
44
|
-
--button-warning-hover-color: #ffb848;
|
45
|
-
--button-default-hover-border-color: #979ba5;
|
46
|
-
--button-primary-active-color: #2c77f4;
|
47
|
-
--button-danger-active-color: #db2626;
|
48
|
-
--button-success-active-color: #1ab943;
|
49
|
-
--button-warning-active-color: #eb9000;
|
50
|
-
--button-selected-bg-color: #e1ecff;
|
51
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
52
|
-
--radio-font-color: #63656e;
|
53
|
-
--radio-active-color: #3a84ff;
|
54
|
-
--radio-hover-border-color: #979ba5;
|
55
|
-
--radio-disabled-border: #dcdee5;
|
56
|
-
--radio-disabled-font-color: #c4c6cc;
|
57
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
58
|
-
--radio-button-checked-bg: #e1ecff;
|
59
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
60
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
61
|
-
--fixed-navbar-background: #fff;
|
62
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
63
|
-
--switch-default-color: #fff;
|
64
|
-
--switch-grey-color: #c4c6cc;
|
65
|
-
--breadcrumb-black-color: #979ba5;
|
66
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
67
|
-
--breadcrumb-fn-main-color: #63656e;
|
68
|
-
--link-default-hover-color: #979ba5;
|
69
|
-
--link-primary-hover-color: #699df4;
|
70
|
-
--link-success-hover-color: #45e35f;
|
71
|
-
--link-warning-hover-color: #ffb848;
|
72
|
-
--link-danger-hover-color: #ff5656;
|
73
|
-
--link-default-disabled-color: #dcdee5;
|
74
|
-
--link-primary-disabled-color: #a3c5fd;
|
75
|
-
--link-success-disabled-color: #94f5a4;
|
76
|
-
--link-warning-disabled-color: #ffd695;
|
77
|
-
--link-danger-disabled-color: #fd9c9c;
|
78
|
-
--message-color: var(--default-color);
|
79
|
-
--message-primary-bg-color: #f0f8ff;
|
80
|
-
--message-primary-border-color: #e1ecff;
|
81
|
-
--message-primary-shadow-color: #e1e8f4;
|
82
|
-
--message-warning-bg-color: #fff4e2;
|
83
|
-
--message-warning-border-color: #ffe8c3;
|
84
|
-
--message-warning-shadow-color: #ede6db;
|
85
|
-
--message-success-bg-color: #f2fff4;
|
86
|
-
--message-success-border-color: #dcffe2;
|
87
|
-
--message-success-shadow-color: #cef0d7;
|
88
|
-
--message-danger-bg-color: #ffeded;
|
89
|
-
--message-danger-border-color: #ffdddd;
|
90
|
-
--message-danger-shadow-color: #f6dada;
|
91
|
-
--slider-default-bg: #dcdee5;
|
92
|
-
--slider-disable-bar-bg: #979ba5;
|
93
|
-
--menu-bg-color: #182132;
|
94
|
-
--submenu-bg-color: #151d2c;
|
95
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
96
|
-
--menu-color: #96a2b9;
|
97
|
-
--menu-group-color: var(--default-color);
|
98
|
-
--menu-width: 260px;
|
99
|
-
--menu-collapse-width: 60px;
|
100
|
-
--menu-active-color: white;
|
101
|
-
--nav-header-bg-color: #182132;
|
102
|
-
--nav-bg-color: #182132;
|
103
|
-
--date-picker-disabled-bg: #fafbfd;
|
104
|
-
--date-picker-dropdown-mb: 4px;
|
105
|
-
--date-picker-dropdown-bg: #fff;
|
106
|
-
--table-bg-color: var(--white-color);
|
107
|
-
--table-border-color: #dcdee5;
|
108
|
-
--table-head-bg-color: #fafbfd;
|
109
|
-
--table-head-font-color: #313238;
|
110
|
-
--table-body-font-color: #63656E;
|
111
|
-
--table-row-hover-bg-color: #f5f7fa;
|
112
|
-
--table-row-active-bg-color: #f0f1f5;
|
113
|
-
--cascader-panel-border-color: #dcdee5;
|
114
|
-
--cascader-panel-hover: #f5f7fa;
|
115
|
-
--cascader-panel-active: #e1ecff;
|
116
|
-
--cascader-panel-disabled-bg: #fff;
|
117
|
-
--search-select-focus-border-color: var(--primary-color);
|
118
|
-
--search-select-focus-color: #3c96ff;
|
119
|
-
--search-select-font-color: var(--default-color);
|
120
|
-
--search-select-placeholder-color: var(--light-gray);
|
121
|
-
--search-select-message-color: var(--danger-color);
|
122
|
-
--search-select-menu-border-color: var(--disable-color);
|
123
|
-
}
|
124
1
|
@keyframes loading-scale-animate {
|
125
2
|
0% {
|
126
3
|
transform: scale(1);
|
@@ -158,21 +35,21 @@
|
|
158
35
|
font-size: 14px;
|
159
36
|
}
|
160
37
|
.bk-select.is-focus.normal .bk-select-trigger .bk-select-tag.bk-select-tag--default {
|
161
|
-
border-color:
|
38
|
+
border-color: #3a84ff;
|
162
39
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
163
40
|
}
|
164
41
|
.bk-select.is-focus .bk-input--default {
|
165
|
-
border-color:
|
42
|
+
border-color: #3a84ff;
|
166
43
|
outline: 0;
|
167
|
-
box-shadow: 0px 0px 3px 0px
|
44
|
+
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
168
45
|
}
|
169
46
|
.bk-select.is-focus .bk-input--default.is-simplicity {
|
170
47
|
border-color: transparent;
|
171
|
-
border-bottom-color:
|
48
|
+
border-bottom-color: #3a84ff;
|
172
49
|
box-shadow: none;
|
173
50
|
}
|
174
51
|
.bk-select.is-focus .bk-input--default.is-simplicity .bk-input--text {
|
175
|
-
background-color:
|
52
|
+
background-color: #f5f7fa;
|
176
53
|
}
|
177
54
|
.bk-select.popover-show .bk-select-trigger .angle-up {
|
178
55
|
transform: rotate(0);
|
@@ -182,13 +59,13 @@
|
|
182
59
|
background-color: #fafbfd;
|
183
60
|
}
|
184
61
|
.bk-select .bk-input.is-focused {
|
185
|
-
border-color:
|
62
|
+
border-color: #3a84ff;
|
186
63
|
outline: 0;
|
187
|
-
box-shadow: 0 0 3px 0
|
64
|
+
box-shadow: 0 0 3px 0 #a3c5fd;
|
188
65
|
}
|
189
66
|
.bk-select .bk-input.is-focused.is-simplicity {
|
190
67
|
border-color: transparent;
|
191
|
-
border-bottom-color:
|
68
|
+
border-bottom-color: #3a84ff;
|
192
69
|
box-shadow: none;
|
193
70
|
}
|
194
71
|
.bk-select .bk-input--text {
|
@@ -197,7 +74,7 @@
|
|
197
74
|
white-space: nowrap;
|
198
75
|
padding-right: 24px;
|
199
76
|
cursor: pointer;
|
200
|
-
background-color:
|
77
|
+
background-color: white;
|
201
78
|
}
|
202
79
|
.bk-select .bk-select-trigger {
|
203
80
|
position: relative;
|
@@ -210,12 +87,12 @@
|
|
210
87
|
height: 32px;
|
211
88
|
padding: 0 28px 0 10px;
|
212
89
|
line-height: normal;
|
213
|
-
color:
|
90
|
+
color: #63656e;
|
214
91
|
text-align: left;
|
215
92
|
vertical-align: middle;
|
216
93
|
cursor: pointer;
|
217
|
-
background-color:
|
218
|
-
border: 1px solid
|
94
|
+
background-color: white;
|
95
|
+
border: 1px solid #c4c6cc;
|
219
96
|
border-radius: 2px;
|
220
97
|
outline: none;
|
221
98
|
box-sizing: border-box;
|
@@ -229,7 +106,7 @@
|
|
229
106
|
align-items: center;
|
230
107
|
}
|
231
108
|
.bk-select .bk-select-trigger .bk-select-tag::placeholder {
|
232
|
-
color:
|
109
|
+
color: #c4c6cc;
|
233
110
|
}
|
234
111
|
.bk-select .bk-select-trigger .bk-select-tag.has-prefix {
|
235
112
|
padding-left: 0;
|
@@ -278,12 +155,12 @@
|
|
278
155
|
height: 32px;
|
279
156
|
padding: 0 28px 0 10px;
|
280
157
|
line-height: normal;
|
281
|
-
color:
|
158
|
+
color: #63656e;
|
282
159
|
text-align: left;
|
283
160
|
vertical-align: middle;
|
284
161
|
cursor: pointer;
|
285
|
-
background-color:
|
286
|
-
border: 1px solid
|
162
|
+
background-color: white;
|
163
|
+
border: 1px solid #c4c6cc;
|
287
164
|
border-radius: 2px;
|
288
165
|
outline: none;
|
289
166
|
box-sizing: border-box;
|
@@ -301,7 +178,7 @@
|
|
301
178
|
flex-grow: 1;
|
302
179
|
}
|
303
180
|
.bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
|
304
|
-
color:
|
181
|
+
color: #c4c6cc;
|
305
182
|
}
|
306
183
|
.bk-select .bk-select-trigger .bk-select-tag .bk-tag {
|
307
184
|
max-width: 190px;
|
@@ -363,7 +240,7 @@
|
|
363
240
|
}
|
364
241
|
.bk-popover.bk-pop2-content.bk-select-popover {
|
365
242
|
padding: 0;
|
366
|
-
border: 1px solid
|
243
|
+
border: 1px solid #dcdee5;
|
367
244
|
border-radius: 2px;
|
368
245
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
|
369
246
|
}
|
@@ -520,24 +397,24 @@
|
|
520
397
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper {
|
521
398
|
display: flex;
|
522
399
|
margin: 4px 8px 0 8px;
|
523
|
-
border-bottom: 1px solid
|
400
|
+
border-bottom: 1px solid #eaebf0;
|
524
401
|
align-items: center;
|
525
402
|
}
|
526
403
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .icon-search {
|
527
404
|
margin-left: 2px;
|
528
|
-
color:
|
405
|
+
color: #979ba5;
|
529
406
|
}
|
530
407
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input {
|
531
408
|
width: 100%;
|
532
409
|
height: 32px;
|
533
410
|
padding: 0 28px 0 10px;
|
534
411
|
line-height: normal;
|
535
|
-
color:
|
412
|
+
color: #63656e;
|
536
413
|
text-align: left;
|
537
414
|
vertical-align: middle;
|
538
415
|
cursor: pointer;
|
539
|
-
background-color:
|
540
|
-
border: 1px solid
|
416
|
+
background-color: white;
|
417
|
+
border: 1px solid #c4c6cc;
|
541
418
|
border-radius: 2px;
|
542
419
|
outline: none;
|
543
420
|
box-sizing: border-box;
|
@@ -551,5 +428,5 @@
|
|
551
428
|
border: none;
|
552
429
|
}
|
553
430
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input::placeholder {
|
554
|
-
color:
|
431
|
+
color: #c4c6cc;
|
555
432
|
}
|
package/lib/select/select.d.ts
CHANGED
@@ -541,7 +541,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
541
541
|
isShowSelectContent: import("vue").ComputedRef<boolean>;
|
542
542
|
curContentText: import("vue").ComputedRef<string>;
|
543
543
|
isGroup: import("vue").ComputedRef<boolean>;
|
544
|
-
|
544
|
+
searchValue: import("vue").Ref<string>;
|
545
|
+
customOptionName: import("vue").Ref<string>;
|
545
546
|
isShowAll: import("vue").ComputedRef<boolean>;
|
546
547
|
isShowSelectAll: import("vue").ComputedRef<boolean>;
|
547
548
|
virtualHeight: import("vue").ComputedRef<number>;
|
@@ -700,7 +701,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
700
701
|
localSearchPlaceholder: import("vue").ComputedRef<string>;
|
701
702
|
localSelectAllText: import("vue").ComputedRef<string>;
|
702
703
|
resolveClassName: (cls: string) => string;
|
703
|
-
handleCreateCustomOption: (val: string | number) => void;
|
704
|
+
handleCreateCustomOption: (val: string | number, e: KeyboardEvent) => void;
|
704
705
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect")[], "blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
705
706
|
modelValue: import("vue-types").VueTypeValidableDef<any>;
|
706
707
|
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|