bkui-vue 0.0.2-beta.134 → 0.0.2-beta.135
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 +17 -17
- package/dist/index.esm.js +1642 -1634
- package/dist/index.umd.js +17 -17
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.css +1 -1
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.less +1 -1
- package/lib/cascader/cascader.variable.css +1 -1
- package/lib/cascader/index.d.ts +3 -0
- package/lib/cascader/index.js +14 -1
- package/package.json +1 -1
@@ -218,6 +218,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
218
218
|
displayText: import("vue").ComputedRef<any>;
|
219
219
|
resolveClassName: (cls: string) => string;
|
220
220
|
isShowPanel: import("vue").Ref<boolean>;
|
221
|
+
searchBlueHandler: () => void;
|
221
222
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "focus" | "toggle" | "clear" | "update:modelValue")[], "change" | "focus" | "toggle" | "clear" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
222
223
|
modelValue: import("vue-types").VueTypeDef<(string | number | string[])[]>;
|
223
224
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
@import '../styles/mixins/mixins.less';
|
3
3
|
|
4
|
-
.@{bk-prefix}-cascader-popover.@{bk-prefix}-pop2-content {
|
4
|
+
.@{bk-prefix}-cascader-popover.@{bk-prefix}-pop2-content.bk-popover {
|
5
5
|
padding: 0;
|
6
6
|
}
|
7
7
|
.@{bk-prefix}-cascader-popover-wrapper {
|
package/lib/cascader/index.d.ts
CHANGED
@@ -318,6 +318,7 @@ declare const BkCascader: {
|
|
318
318
|
displayText: import("vue").ComputedRef<any>;
|
319
319
|
resolveClassName: (cls: string) => string;
|
320
320
|
isShowPanel: import("vue").Ref<boolean>;
|
321
|
+
searchBlueHandler: () => void;
|
321
322
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "focus" | "toggle" | "clear" | "update:modelValue")[], string, {
|
322
323
|
extCls: string;
|
323
324
|
disabled: boolean;
|
@@ -589,6 +590,7 @@ declare const BkCascader: {
|
|
589
590
|
displayText: import("vue").ComputedRef<any>;
|
590
591
|
resolveClassName: (cls: string) => string;
|
591
592
|
isShowPanel: import("vue").Ref<boolean>;
|
593
|
+
searchBlueHandler: () => void;
|
592
594
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
593
595
|
__isFragment?: never;
|
594
596
|
__isTeleport?: never;
|
@@ -818,6 +820,7 @@ declare const BkCascader: {
|
|
818
820
|
displayText: import("vue").ComputedRef<any>;
|
819
821
|
resolveClassName: (cls: string) => string;
|
820
822
|
isShowPanel: import("vue").Ref<boolean>;
|
823
|
+
searchBlueHandler: () => void;
|
821
824
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "focus" | "toggle" | "clear" | "update:modelValue")[], "change" | "focus" | "toggle" | "clear" | "update:modelValue", {
|
822
825
|
extCls: string;
|
823
826
|
disabled: boolean;
|
package/lib/cascader/index.js
CHANGED
@@ -1673,6 +1673,15 @@ var Store = /*#__PURE__*/function () {
|
|
1673
1673
|
var updateSearchKey = function updateSearchKey() {
|
1674
1674
|
searchKey.value = selectedText.value;
|
1675
1675
|
};
|
1676
|
+
var searchBlueHandler = function searchBlueHandler() {
|
1677
|
+
// 单选搜索框与选择框互斥,因此一旦失去焦点,认为是没有选择,还原选择框的内容
|
1678
|
+
if (!props.multiple) {
|
1679
|
+
searchKey.value = selectedText.value;
|
1680
|
+
return;
|
1681
|
+
}
|
1682
|
+
// 多选下,失去焦点则需要删除搜索框
|
1683
|
+
searchKey.value = '';
|
1684
|
+
};
|
1676
1685
|
// 更新选中
|
1677
1686
|
var updateValue = function updateValue(val) {
|
1678
1687
|
// 更新多选情况下的选中标签
|
@@ -1737,6 +1746,8 @@ var Store = /*#__PURE__*/function () {
|
|
1737
1746
|
oldValue !== undefined && emit('change', value); // oldValue = undefined代表初始化,init不派发change事件
|
1738
1747
|
// 如果有过滤搜索,选择后,自动focus到input
|
1739
1748
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
1749
|
+
// 选择后过滤条件清除,面板初始化渲染
|
1750
|
+
isFiltering.value = false;
|
1740
1751
|
};
|
1741
1752
|
// list的监听函数
|
1742
1753
|
var listChangeHandler = function listChangeHandler() {
|
@@ -1855,7 +1866,8 @@ var Store = /*#__PURE__*/function () {
|
|
1855
1866
|
isEdit: isEdit,
|
1856
1867
|
displayText: displayText,
|
1857
1868
|
resolveClassName: resolveClassName,
|
1858
|
-
isShowPanel: isShowPanel
|
1869
|
+
isShowPanel: isShowPanel,
|
1870
|
+
searchBlueHandler: searchBlueHandler
|
1859
1871
|
};
|
1860
1872
|
},
|
1861
1873
|
render: function render() {
|
@@ -1952,6 +1964,7 @@ var Store = /*#__PURE__*/function () {
|
|
1952
1964
|
}],
|
1953
1965
|
"type": "text",
|
1954
1966
|
"onInput": _this.searchInputHandler,
|
1967
|
+
"onBlur": _this.searchBlueHandler,
|
1955
1968
|
"placeholder": _this.calcuPlaceholder,
|
1956
1969
|
"value": _this.searchKey,
|
1957
1970
|
"disabled": _this.disabled,
|