bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113
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 +54 -54
- package/dist/index.esm.js +13942 -13951
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +57 -59
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +40 -42
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +359 -421
- package/lib/popover/index.js +122 -220
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +348 -336
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/tag-input/index.js
CHANGED
@@ -49,38 +49,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
49
49
|
var y = x => () => x
|
50
50
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
51
51
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
52
|
-
function _typeof(
|
52
|
+
function _typeof(obj) {
|
53
53
|
"@babel/helpers - typeof";
|
54
54
|
|
55
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
56
|
-
return typeof
|
57
|
-
} : function (
|
58
|
-
return
|
59
|
-
}, _typeof(
|
55
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
56
|
+
return typeof obj;
|
57
|
+
} : function (obj) {
|
58
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
59
|
+
}, _typeof(obj);
|
60
60
|
}
|
61
61
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
62
62
|
|
63
|
-
function
|
64
|
-
if ("object"
|
65
|
-
var
|
66
|
-
if (
|
67
|
-
var
|
68
|
-
if ("object"
|
63
|
+
function _toPrimitive(input, hint) {
|
64
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
65
|
+
var prim = input[Symbol.toPrimitive];
|
66
|
+
if (prim !== undefined) {
|
67
|
+
var res = prim.call(input, hint || "default");
|
68
|
+
if (_typeof(res) !== "object") return res;
|
69
69
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
70
70
|
}
|
71
|
-
return ("string"
|
71
|
+
return (hint === "string" ? String : Number)(input);
|
72
72
|
}
|
73
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
74
74
|
|
75
75
|
|
76
|
-
function
|
77
|
-
var
|
78
|
-
return "symbol"
|
76
|
+
function _toPropertyKey(arg) {
|
77
|
+
var key = _toPrimitive(arg, "string");
|
78
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
79
79
|
}
|
80
80
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
81
81
|
|
82
82
|
function _defineProperty(obj, key, value) {
|
83
|
-
key =
|
83
|
+
key = _toPropertyKey(key);
|
84
84
|
if (key in obj) {
|
85
85
|
Object.defineProperty(obj, key, {
|
86
86
|
value: value,
|
@@ -320,31 +320,31 @@ function _arrayWithHoles(arr) {
|
|
320
320
|
if (Array.isArray(arr)) return arr;
|
321
321
|
}
|
322
322
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
323
|
-
function _iterableToArrayLimit(
|
324
|
-
var
|
325
|
-
if (null !=
|
326
|
-
var
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
323
|
+
function _iterableToArrayLimit(arr, i) {
|
324
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
325
|
+
if (null != _i) {
|
326
|
+
var _s,
|
327
|
+
_e,
|
328
|
+
_x,
|
329
|
+
_r,
|
330
|
+
_arr = [],
|
331
|
+
_n = !0,
|
332
|
+
_d = !1;
|
333
333
|
try {
|
334
|
-
if (
|
335
|
-
if (Object(
|
336
|
-
|
337
|
-
} else for (; !(
|
338
|
-
} catch (
|
339
|
-
|
334
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
335
|
+
if (Object(_i) !== _i) return;
|
336
|
+
_n = !1;
|
337
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
338
|
+
} catch (err) {
|
339
|
+
_d = !0, _e = err;
|
340
340
|
} finally {
|
341
341
|
try {
|
342
|
-
if (!
|
342
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
343
343
|
} finally {
|
344
|
-
if (
|
344
|
+
if (_d) throw _e;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
return
|
347
|
+
return _arr;
|
348
348
|
}
|
349
349
|
}
|
350
350
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
@@ -424,8 +424,7 @@ const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODU
|
|
424
424
|
*/
|
425
425
|
|
426
426
|
|
427
|
-
|
428
|
-
/* harmony default export */ const list_tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
427
|
+
/* harmony default export */ const list_tag_render = (defineComponent({
|
429
428
|
name: 'ListTagRender',
|
430
429
|
props: {
|
431
430
|
node: shared_namespaceObject.PropTypes.object,
|
@@ -449,7 +448,7 @@ const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODU
|
|
449
448
|
return value;
|
450
449
|
};
|
451
450
|
if (this.tpl) {
|
452
|
-
return this.tpl(this.node, highlightKeyword,
|
451
|
+
return this.tpl(this.node, highlightKeyword, h, this);
|
453
452
|
}
|
454
453
|
var displayText = this.node[this.displayKey];
|
455
454
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -772,7 +771,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
772
771
|
return props.clearable && !props.disabled && listState.selectedTagList.length !== 0 && (props.showClearOnlyHover ? state.isHover : true);
|
773
772
|
});
|
774
773
|
var triggerClass = (0,external_vue_namespaceObject.computed)(function () {
|
775
|
-
|
774
|
+
var _ref2;
|
775
|
+
return _ref2 = {}, _defineProperty(_ref2, "".concat(resolveClassName('tag-input-trigger')), true), _defineProperty(_ref2, "active", state.isEdit), _defineProperty(_ref2, "disabled", props.disabled), _ref2;
|
776
776
|
});
|
777
777
|
var listState = (0,external_vue_namespaceObject.reactive)({
|
778
778
|
localList: [],
|
@@ -806,7 +806,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
806
806
|
children: []
|
807
807
|
};
|
808
808
|
}
|
809
|
-
groupMap === null || groupMap === void 0 || (_groupMap$curGroupId = groupMap[curGroupId]) === null || _groupMap$curGroupId === void 0
|
809
|
+
groupMap === null || groupMap === void 0 || (_groupMap$curGroupId = groupMap[curGroupId]) === null || _groupMap$curGroupId === void 0 ? void 0 : _groupMap$curGroupId.children.push(item);
|
810
810
|
});
|
811
811
|
return Object.keys(groupMap).map(function (key) {
|
812
812
|
return groupMap[key];
|
@@ -832,7 +832,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
832
832
|
});
|
833
833
|
if (props.withValidate) {
|
834
834
|
var _formItem$validate;
|
835
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
835
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
836
836
|
}
|
837
837
|
}
|
838
838
|
});
|
@@ -922,7 +922,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
922
922
|
state.isEdit = true;
|
923
923
|
setTimeout(function () {
|
924
924
|
var _tagInputRef$value;
|
925
|
-
(_tagInputRef$value = tagInputRef.value) === null || _tagInputRef$value === void 0
|
925
|
+
(_tagInputRef$value = tagInputRef.value) === null || _tagInputRef$value === void 0 ? void 0 : _tagInputRef$value.focus();
|
926
926
|
if (props.trigger === 'focus' && listState.localList.length !== 0) {
|
927
927
|
filterData();
|
928
928
|
if (popoverProps.isShow) {
|
@@ -951,7 +951,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
951
951
|
var item = saveKeyMap.value[tag];
|
952
952
|
modelValueMap[tag] = 1;
|
953
953
|
if (!item && allowCreate) {
|
954
|
-
|
954
|
+
var _ref3;
|
955
|
+
return _ref3 = {}, _defineProperty(_ref3, saveKey, tag), _defineProperty(_ref3, displayKey, tag), _ref3;
|
955
956
|
}
|
956
957
|
return item;
|
957
958
|
}).filter(function (item) {
|
@@ -1007,7 +1008,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1007
1008
|
initPage(filterData);
|
1008
1009
|
};
|
1009
1010
|
var activeClass = function activeClass(data, index) {
|
1010
|
-
var
|
1011
|
+
var _style;
|
1012
|
+
var style = (_style = {}, _defineProperty(_style, "".concat(resolveClassName('selector-actived')), true), _defineProperty(_style, "".concat(resolveClassName('selector-selected')), tagList.value.includes(data[props.saveKey])), _style);
|
1011
1013
|
if (props.useGroup) {
|
1012
1014
|
style["".concat(resolveClassName('selector-actived'))] = data.__index__ === state.focusItemIndex;
|
1013
1015
|
} else {
|
@@ -1133,7 +1135,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1133
1135
|
}
|
1134
1136
|
popoverProps.isShow = false;
|
1135
1137
|
emit('blur', inputValue, tagList.value);
|
1136
|
-
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0
|
1138
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
|
1137
1139
|
}, 200);
|
1138
1140
|
};
|
1139
1141
|
/**
|
@@ -1142,7 +1144,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1142
1144
|
* @param type emit type
|
1143
1145
|
*/
|
1144
1146
|
var handleTagSelected = function handleTagSelected(item, type, e) {
|
1145
|
-
e === null || e === void 0
|
1147
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
1146
1148
|
// 如果 item 不存在(备选项中没有包含输入的字母的情况即输入关键字没有备选项出现的情况)或者选中标签所在组是禁用状态,返回
|
1147
1149
|
if (!item || item.disabled) {
|
1148
1150
|
return;
|
@@ -1163,7 +1165,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1163
1165
|
* @param e mouse event
|
1164
1166
|
*/
|
1165
1167
|
var handleTagRemove = function handleTagRemove(data, index, e) {
|
1166
|
-
e === null || e === void 0
|
1168
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
1167
1169
|
removeTag(data, index);
|
1168
1170
|
clearInput();
|
1169
1171
|
handleChange('remove', data);
|
@@ -1322,7 +1324,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1322
1324
|
var textArr = value.split(';');
|
1323
1325
|
textArr.forEach(function (item) {
|
1324
1326
|
if ((0,trim_namespaceObject["default"])(item)) {
|
1325
|
-
|
1327
|
+
var _target$push;
|
1328
|
+
target.push((_target$push = {}, _defineProperty(_target$push, props.saveKey, item), _defineProperty(_target$push, props.displayKey, item), _target$push));
|
1326
1329
|
}
|
1327
1330
|
});
|
1328
1331
|
return target;
|
@@ -1362,10 +1365,11 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1362
1365
|
}
|
1363
1366
|
}
|
1364
1367
|
var localTags = allowCreate ? tags.map(function (tag) {
|
1368
|
+
var _ref6;
|
1365
1369
|
var localTag = listState.localList.find(function (localTag) {
|
1366
1370
|
return localTag[saveKey] === tag;
|
1367
1371
|
});
|
1368
|
-
return localTag !== null && localTag !== void 0 ? localTag :
|
1372
|
+
return localTag !== null && localTag !== void 0 ? localTag : (_ref6 = {}, _defineProperty(_ref6, saveKey, tag), _defineProperty(_ref6, displayKey, tag), _ref6);
|
1369
1373
|
}) : listState.localList.filter(function (tag) {
|
1370
1374
|
return tags.includes(tag[saveKey]);
|
1371
1375
|
});
|
@@ -1427,7 +1431,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1427
1431
|
return (tag === null || tag === void 0 ? void 0 : tag.trim()) && !tagList.value.includes(tag) && validateTag(tag);
|
1428
1432
|
});
|
1429
1433
|
var localTags = tags.map(function (tag) {
|
1430
|
-
|
1434
|
+
var _ref7;
|
1435
|
+
return saveKeyMap.value[tag] || (_ref7 = {}, _defineProperty(_ref7, saveKey, tag), _defineProperty(_ref7, displayKey, tag), _ref7);
|
1431
1436
|
});
|
1432
1437
|
if (tags.length) {
|
1433
1438
|
var _listState$selectedTa2;
|
@@ -1442,7 +1447,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1442
1447
|
newValue = newValue.replace(/\s+/g, '');
|
1443
1448
|
}
|
1444
1449
|
if (newValue !== undefined && !tagList.value.includes(newValue) && validateTag(newValue)) {
|
1445
|
-
var
|
1450
|
+
var _ref8;
|
1451
|
+
var localItem = saveKeyMap.value[newValue] || (isObject ? item : (_ref8 = {}, _defineProperty(_ref8, saveKey, newValue), _defineProperty(_ref8, displayKey, newValue), _ref8));
|
1446
1452
|
listState.selectedTagList.splice(targetIndex, 0, localItem);
|
1447
1453
|
isSelected = true;
|
1448
1454
|
}
|
@@ -307,12 +307,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
307
307
|
curInputValue: Ref<string>;
|
308
308
|
renderList: import("vue").ComputedRef<any[]>;
|
309
309
|
showTagClose: import("vue").ComputedRef<boolean>;
|
310
|
-
tagInputRef:
|
311
|
-
bkTagSelectorRef:
|
312
|
-
tagListRef:
|
313
|
-
tagInputItemRef:
|
310
|
+
tagInputRef: any;
|
311
|
+
bkTagSelectorRef: any;
|
312
|
+
tagListRef: any;
|
313
|
+
tagInputItemRef: any;
|
314
314
|
inputValueRef: Ref<HTMLElement>;
|
315
|
-
selectorListRef:
|
315
|
+
selectorListRef: any;
|
316
316
|
triggerClass: import("vue").ComputedRef<{
|
317
317
|
[x: string]: boolean;
|
318
318
|
active: boolean;
|