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.
@@ -70,7 +70,7 @@
70
70
  .bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
71
71
  left: -4px;
72
72
  }
73
- .bk-cascader-popover.bk-pop2-content {
73
+ .bk-cascader-popover.bk-pop2-content.bk-popover {
74
74
  padding: 0;
75
75
  }
76
76
  .bk-cascader-popover-wrapper {
@@ -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 {
@@ -196,7 +196,7 @@
196
196
  .bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
197
197
  left: -4px;
198
198
  }
199
- .bk-cascader-popover.bk-pop2-content {
199
+ .bk-cascader-popover.bk-pop2-content.bk-popover {
200
200
  padding: 0;
201
201
  }
202
202
  .bk-cascader-popover-wrapper {
@@ -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;
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.134",
3
+ "version": "0.0.2-beta.135",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",