bkui-vue 2.0.1-beta.76 → 2.0.1-beta.77
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 +32 -32
- package/dist/index.esm.js +3916 -3847
- package/dist/index.umd.js +45 -45
- package/lib/index.js +1 -1
- package/lib/tag-input/index.d.ts +3 -3
- package/lib/tag-input/index.js +9 -9
- 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
@@ -319,7 +319,7 @@ declare const TagInput: {
|
|
319
319
|
handleClear: (e: MouseEvent) => void;
|
320
320
|
tagFocus: (e: MouseEvent) => void;
|
321
321
|
handleKeydown: (e: KeyboardEvent) => void;
|
322
|
-
handlePaste: (e: ClipboardEvent) =>
|
322
|
+
handlePaste: (e: ClipboardEvent) => void;
|
323
323
|
resolveClassName: (cls: string) => string;
|
324
324
|
curPage: import("vue").Ref<number>;
|
325
325
|
totalSize: import("vue").Ref<number>;
|
@@ -987,7 +987,7 @@ declare const TagInput: {
|
|
987
987
|
handleClear: (e: MouseEvent) => void;
|
988
988
|
tagFocus: (e: MouseEvent) => void;
|
989
989
|
handleKeydown: (e: KeyboardEvent) => void;
|
990
|
-
handlePaste: (e: ClipboardEvent) =>
|
990
|
+
handlePaste: (e: ClipboardEvent) => void;
|
991
991
|
resolveClassName: (cls: string) => string;
|
992
992
|
curPage: import("vue").Ref<number>;
|
993
993
|
totalSize: import("vue").Ref<number>;
|
@@ -1365,7 +1365,7 @@ declare const TagInput: {
|
|
1365
1365
|
handleClear: (e: MouseEvent) => void;
|
1366
1366
|
tagFocus: (e: MouseEvent) => void;
|
1367
1367
|
handleKeydown: (e: KeyboardEvent) => void;
|
1368
|
-
handlePaste: (e: ClipboardEvent) =>
|
1368
|
+
handlePaste: (e: ClipboardEvent) => void;
|
1369
1369
|
resolveClassName: (cls: string) => string;
|
1370
1370
|
curPage: import("vue").Ref<number>;
|
1371
1371
|
totalSize: import("vue").Ref<number>;
|
package/lib/tag-input/index.js
CHANGED
@@ -10,6 +10,7 @@ import "../loading/loading.less";
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
11
11
|
import "../popover/popover.less";
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
13
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__ from "lodash/trim";
|
13
14
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
14
15
|
/******/ var __webpack_modules__ = ({
|
15
16
|
|
@@ -17478,6 +17479,10 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
17478
17479
|
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17479
17480
|
var debounce_y = x => () => x
|
17480
17481
|
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
17482
|
+
;// CONCATENATED MODULE: external "lodash/trim"
|
17483
|
+
var trim_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17484
|
+
var trim_y = x => () => x
|
17485
|
+
const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__["default"] });
|
17481
17486
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
17482
17487
|
|
17483
17488
|
|
@@ -17964,6 +17969,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17964
17969
|
|
17965
17970
|
|
17966
17971
|
|
17972
|
+
|
17967
17973
|
/* harmony default export */ const tag_input = ((0,external_vue_namespaceObject.defineComponent)({
|
17968
17974
|
name: 'TagInput',
|
17969
17975
|
directives: {
|
@@ -18572,22 +18578,15 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18572
18578
|
var defaultPasteFn = function defaultPasteFn(value) {
|
18573
18579
|
var target = [];
|
18574
18580
|
var textArr = value.split(';');
|
18575
|
-
var regx = /^[a-zA-Z][a-zA-Z_]*/g;
|
18576
18581
|
textArr.forEach(function (item) {
|
18577
|
-
|
18578
|
-
|
18579
|
-
var finalItem = matchValue.join('');
|
18580
|
-
target.push(_defineProperty(_defineProperty({}, props.saveKey, finalItem), props.displayKey, finalItem));
|
18582
|
+
if ((0,trim_namespaceObject["default"])(item)) {
|
18583
|
+
target.push(_defineProperty(_defineProperty({}, props.saveKey, item), props.displayKey, item));
|
18581
18584
|
}
|
18582
18585
|
});
|
18583
18586
|
return target;
|
18584
18587
|
};
|
18585
18588
|
var handlePaste = function handlePaste(e) {
|
18586
18589
|
e.preventDefault();
|
18587
|
-
// 单选禁止复制粘贴,防止粘贴多个tag
|
18588
|
-
if (isSingleSelect.value) {
|
18589
|
-
return false;
|
18590
|
-
}
|
18591
18590
|
var maxData = props.maxData,
|
18592
18591
|
saveKey = props.saveKey,
|
18593
18592
|
displayKey = props.displayKey,
|
@@ -18640,6 +18639,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18640
18639
|
focusInputTrigger();
|
18641
18640
|
}
|
18642
18641
|
}
|
18642
|
+
clearInput();
|
18643
18643
|
};
|
18644
18644
|
/**
|
18645
18645
|
* 已选中标签点击
|
@@ -310,7 +310,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
310
310
|
handleClear: (e: MouseEvent) => void;
|
311
311
|
tagFocus: (e: MouseEvent) => void;
|
312
312
|
handleKeydown: (e: KeyboardEvent) => void;
|
313
|
-
handlePaste: (e: ClipboardEvent) =>
|
313
|
+
handlePaste: (e: ClipboardEvent) => void;
|
314
314
|
resolveClassName: (cls: string) => string;
|
315
315
|
curPage: Ref<number>;
|
316
316
|
totalSize: Ref<number>;
|