bkui-vue 2.0.2-beta.83 → 2.0.2-beta.84
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 +47 -47
- package/dist/index.esm.js +8368 -8152
- package/dist/index.umd.js +49 -49
- package/lib/index.js +1 -1
- package/lib/tag-input/index.d.ts +3 -3
- package/lib/tag-input/index.js +14 -7
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/tag-input/index.d.ts
CHANGED
|
@@ -354,7 +354,7 @@ declare const TagInput: {
|
|
|
354
354
|
handleFocus: () => void;
|
|
355
355
|
handleBlur: () => void;
|
|
356
356
|
handleTagSelected: (item: any, type: string, e?: Event) => void;
|
|
357
|
-
handleTagRemove: (data: any,
|
|
357
|
+
handleTagRemove: (data: any, e?: MouseEvent) => void;
|
|
358
358
|
handleClear: (e: MouseEvent) => void;
|
|
359
359
|
tagFocus: (e: MouseEvent) => void;
|
|
360
360
|
handleKeydown: (e: KeyboardEvent) => void;
|
|
@@ -1102,7 +1102,7 @@ declare const TagInput: {
|
|
|
1102
1102
|
handleFocus: () => void;
|
|
1103
1103
|
handleBlur: () => void;
|
|
1104
1104
|
handleTagSelected: (item: any, type: string, e?: Event) => void;
|
|
1105
|
-
handleTagRemove: (data: any,
|
|
1105
|
+
handleTagRemove: (data: any, e?: MouseEvent) => void;
|
|
1106
1106
|
handleClear: (e: MouseEvent) => void;
|
|
1107
1107
|
tagFocus: (e: MouseEvent) => void;
|
|
1108
1108
|
handleKeydown: (e: KeyboardEvent) => void;
|
|
@@ -1524,7 +1524,7 @@ declare const TagInput: {
|
|
|
1524
1524
|
handleFocus: () => void;
|
|
1525
1525
|
handleBlur: () => void;
|
|
1526
1526
|
handleTagSelected: (item: any, type: string, e?: Event) => void;
|
|
1527
|
-
handleTagRemove: (data: any,
|
|
1527
|
+
handleTagRemove: (data: any, e?: MouseEvent) => void;
|
|
1528
1528
|
handleClear: (e: MouseEvent) => void;
|
|
1529
1529
|
tagFocus: (e: MouseEvent) => void;
|
|
1530
1530
|
handleKeydown: (e: KeyboardEvent) => void;
|
package/lib/tag-input/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import "../loading/loading.less";
|
|
|
13
13
|
import "../popover/popover.less";
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
|
15
15
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__ from "lodash/trim";
|
|
16
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_filter_a18a57cd__ from "lodash/filter";
|
|
16
17
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
17
18
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__ from "lodash/has";
|
|
18
19
|
/******/ var __webpack_modules__ = ({
|
|
@@ -1654,6 +1655,10 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
|
1654
1655
|
var trim_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1655
1656
|
var trim_y = x => () => x
|
|
1656
1657
|
const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__["default"] });
|
|
1658
|
+
;// CONCATENATED MODULE: external "lodash/filter"
|
|
1659
|
+
var filter_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1660
|
+
var filter_y = x => () => x
|
|
1661
|
+
const filter_namespaceObject = filter_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_filter_a18a57cd__["default"] });
|
|
1657
1662
|
;// CONCATENATED MODULE: ../../node_modules/dompurify/dist/purify.es.mjs
|
|
1658
1663
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
1659
1664
|
|
|
@@ -3403,6 +3408,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
3403
3408
|
|
|
3404
3409
|
|
|
3405
3410
|
|
|
3411
|
+
|
|
3406
3412
|
/* harmony default export */ const tag_input = ((0,external_vue_namespaceObject.defineComponent)({
|
|
3407
3413
|
name: 'TagInput',
|
|
3408
3414
|
directives: {
|
|
@@ -3620,7 +3626,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
3620
3626
|
listState.tagListCache = _toConsumableArray(tagList.value);
|
|
3621
3627
|
listState.selectedTagListCache = _toConsumableArray(listState.selectedTagList);
|
|
3622
3628
|
curInputValue.value = listState.selectedTagListCache[0][props.saveKey];
|
|
3623
|
-
removeTag(listState.selectedTagList[0]
|
|
3629
|
+
removeTag(listState.selectedTagList[0]);
|
|
3624
3630
|
handleInput();
|
|
3625
3631
|
}
|
|
3626
3632
|
state.isEdit = true;
|
|
@@ -3947,9 +3953,9 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
3947
3953
|
* @param index tag index
|
|
3948
3954
|
* @param e mouse event
|
|
3949
3955
|
*/
|
|
3950
|
-
var handleTagRemove = function handleTagRemove(data,
|
|
3956
|
+
var handleTagRemove = function handleTagRemove(data, e) {
|
|
3951
3957
|
e === null || e === void 0 || e.stopPropagation();
|
|
3952
|
-
removeTag(data
|
|
3958
|
+
removeTag(data);
|
|
3953
3959
|
clearInput();
|
|
3954
3960
|
handleChange('remove', data);
|
|
3955
3961
|
tagInputRef.value.style.width = "".concat(INPUT_MIN_WIDTH, "px");
|
|
@@ -4266,10 +4272,11 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
4266
4272
|
/**
|
|
4267
4273
|
* remove current tag
|
|
4268
4274
|
* @param data tag data
|
|
4269
|
-
* @param index tag index
|
|
4270
4275
|
*/
|
|
4271
|
-
var removeTag = function removeTag(data
|
|
4272
|
-
listState.selectedTagList
|
|
4276
|
+
var removeTag = function removeTag(data) {
|
|
4277
|
+
listState.selectedTagList = (0,filter_namespaceObject["default"])(listState.selectedTagList, function (item) {
|
|
4278
|
+
return item[props.saveKey] !== data[props.saveKey];
|
|
4279
|
+
});
|
|
4273
4280
|
var isExistInit = saveKeyMap.value[data[props.saveKey]];
|
|
4274
4281
|
// 将删除的项加入加列表
|
|
4275
4282
|
if ((props.allowCreate && isExistInit || !props.allowCreate) && !isSingleSelect.value) {
|
|
@@ -4415,7 +4422,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
4415
4422
|
} : undefined
|
|
4416
4423
|
}, null), _this.showTagClose && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
|
4417
4424
|
"class": "remove-tag",
|
|
4418
|
-
"onClick": _this.handleTagRemove.bind(_this, item
|
|
4425
|
+
"onClick": _this.handleTagRemove.bind(_this, item)
|
|
4419
4426
|
}, null)]);
|
|
4420
4427
|
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
|
|
4421
4428
|
"id": "tagInputItem",
|
|
@@ -343,7 +343,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
343
343
|
handleFocus: () => void;
|
|
344
344
|
handleBlur: () => void;
|
|
345
345
|
handleTagSelected: (item: any, type: string, e?: Event) => void;
|
|
346
|
-
handleTagRemove: (data: any,
|
|
346
|
+
handleTagRemove: (data: any, e?: MouseEvent) => void;
|
|
347
347
|
handleClear: (e: MouseEvent) => void;
|
|
348
348
|
tagFocus: (e: MouseEvent) => void;
|
|
349
349
|
handleKeydown: (e: KeyboardEvent) => void;
|