bkui-vue 2.0.1-beta.56 → 2.0.1-beta.57
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 +46 -46
- package/dist/index.esm.js +8823 -8820
- package/dist/index.umd.js +61 -61
- package/lib/index.js +1 -1
- package/lib/tag-input/index.js +3 -1
- package/lib/tag-input/tag-input.d.ts +2 -14
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/tag-input/index.js
CHANGED
@@ -17973,6 +17973,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17973
17973
|
emits: ['update:modelValue', 'change', 'select', 'focus', 'blur', 'remove', 'removeAll', 'input'],
|
17974
17974
|
setup: function setup(props, _ref) {
|
17975
17975
|
var emit = _ref.emit;
|
17976
|
+
var chineseInputTemporaryValue = '';
|
17976
17977
|
var formItem = (0,shared_namespaceObject.useFormItem)();
|
17977
17978
|
var t = (0,config_provider_namespaceObject.useLocale)('tagInput');
|
17978
17979
|
var state = (0,external_vue_namespaceObject.reactive)({
|
@@ -18320,6 +18321,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18320
18321
|
if (maxData === -1 || maxData > tagList.value.length) {
|
18321
18322
|
var _ref5 = e !== null && e !== void 0 && e.target ? e.target : curInputValue,
|
18322
18323
|
value = _ref5.value;
|
18324
|
+
chineseInputTemporaryValue = value;
|
18323
18325
|
var charLen = getCharLength(value);
|
18324
18326
|
if (charLen) {
|
18325
18327
|
filterData(value);
|
@@ -18555,7 +18557,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18555
18557
|
e.preventDefault();
|
18556
18558
|
break;
|
18557
18559
|
case 'Backspace':
|
18558
|
-
if (tagInputItemIndex !== 0 && !curInputValue.value) {
|
18560
|
+
if (tagInputItemIndex !== 0 && !curInputValue.value && !chineseInputTemporaryValue) {
|
18559
18561
|
target = listState.selectedTagList[tagInputItemIndex - 1];
|
18560
18562
|
backspaceHandler(tagInputItemIndex, target);
|
18561
18563
|
}
|
@@ -274,13 +274,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
274
|
default: boolean;
|
275
275
|
};
|
276
276
|
tagOverflowTips: {
|
277
|
-
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
278
|
-
* 不显示条件:
|
279
|
-
* 1. 设置不可清除
|
280
|
-
* 2. 禁用时
|
281
|
-
* 3. tag标签为空时
|
282
|
-
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
283
|
-
*/
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
284
278
|
default: () => {};
|
285
279
|
};
|
286
280
|
}, {
|
@@ -614,13 +608,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
614
608
|
default: boolean;
|
615
609
|
};
|
616
610
|
tagOverflowTips: {
|
617
|
-
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
618
|
-
* 不显示条件:
|
619
|
-
* 1. 设置不可清除
|
620
|
-
* 2. 禁用时
|
621
|
-
* 3. tag标签为空时
|
622
|
-
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
623
|
-
*/
|
611
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
624
612
|
default: () => {};
|
625
613
|
};
|
626
614
|
}>> & {
|