bkui-vue 2.0.1-beta.75 → 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 +33 -33
- package/dist/index.esm.js +9204 -9124
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +11 -11
- package/lib/cascader/cascader-panel.d.ts +5 -0
- package/lib/cascader/cascader.d.ts +4 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +70 -1
- package/lib/dialog/dialog.d.ts +6 -6
- package/lib/dialog/index.d.ts +14 -14
- package/lib/dialog/props.d.ts +2 -2
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +20 -4
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/link/index.d.ts +11 -11
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +12 -11
- package/lib/loading/index.js +4 -2
- package/lib/loading/loading.d.ts +5 -5
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/modal.d.ts +1 -1
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/select/index.d.ts +38 -38
- package/lib/select/select.d.ts +14 -14
- package/lib/select/selectTagInput.d.ts +5 -5
- package/lib/shared/vue-types.d.ts +6 -6
- package/lib/sideslider/index.d.ts +3 -3
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/steps.d.ts +7 -7
- package/lib/switcher/index.d.ts +11 -11
- package/lib/switcher/switcher.d.ts +7 -7
- package/lib/tab/index.js +15 -13
- package/lib/tab/tab-nav.d.ts +16 -23
- package/lib/table/index.js +13 -17
- package/lib/table/plugins/head-filter.css +4 -0
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +4 -0
- package/lib/table/table.css +4 -0
- package/lib/table/table.variable.css +4 -0
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/tag.d.ts +5 -5
- 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
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const switcherType: {
|
3
|
-
theme: import("vue-types").VueTypeDef<"
|
4
|
-
default: "
|
3
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
4
|
+
default: "primary" | "success";
|
5
5
|
};
|
6
6
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
7
7
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -60,8 +60,8 @@ export type SwitcherType = ExtractPropTypes<typeof switcherType>;
|
|
60
60
|
declare function EventFunction(value: SwitcherType['modelValue']): string | number | boolean;
|
61
61
|
declare function ChangeFunction(value: boolean): boolean;
|
62
62
|
declare const _default: import("vue").DefineComponent<{
|
63
|
-
theme: import("vue-types").VueTypeDef<"
|
64
|
-
default: "
|
63
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
64
|
+
default: "primary" | "success";
|
65
65
|
};
|
66
66
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
67
67
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -115,8 +115,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
115
115
|
"update:modelValue": typeof EventFunction;
|
116
116
|
change: typeof ChangeFunction;
|
117
117
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
118
|
-
theme: import("vue-types").VueTypeDef<"
|
119
|
-
default: "
|
118
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
119
|
+
default: "primary" | "success";
|
120
120
|
};
|
121
121
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
122
122
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -172,7 +172,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
172
172
|
}, {
|
173
173
|
extCls: string;
|
174
174
|
disabled: boolean;
|
175
|
-
theme: "
|
175
|
+
theme: "primary" | "success";
|
176
176
|
value: string | number | boolean;
|
177
177
|
modelValue: string | number | boolean;
|
178
178
|
withValidate: boolean;
|
package/lib/tab/index.js
CHANGED
@@ -5,7 +5,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
8
|
-
import * as
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
/******/ // The require scope
|
10
10
|
/******/ var __webpack_require__ = {};
|
11
11
|
/******/
|
@@ -281,10 +281,10 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
281
281
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
282
282
|
var directives_y = x => () => x
|
283
283
|
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
284
|
-
;// CONCATENATED MODULE: external "../icon
|
285
|
-
var
|
286
|
-
var
|
287
|
-
const
|
284
|
+
;// CONCATENATED MODULE: external "../icon"
|
285
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
286
|
+
var icon_y = x => () => x
|
287
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus });
|
288
288
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab-nav.tsx
|
289
289
|
|
290
290
|
|
@@ -338,7 +338,8 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
338
338
|
if (!activeRef.value) {
|
339
339
|
return initStyle;
|
340
340
|
}
|
341
|
-
|
341
|
+
var positionArr = [PositionEnum.LEFT, PositionEnum.RIGHT];
|
342
|
+
if (positionArr.includes(props.tabPosition)) {
|
342
343
|
var _activeRef$value = activeRef.value,
|
343
344
|
clientHeight = _activeRef$value.clientHeight,
|
344
345
|
offsetTop = _activeRef$value.offsetTop;
|
@@ -369,13 +370,14 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
369
370
|
}
|
370
371
|
return initStyle;
|
371
372
|
});
|
372
|
-
var
|
373
|
+
var tableNavList = (0,external_vue_namespaceObject.computed)(function () {
|
373
374
|
if (!Array.isArray(props.panels) || !props.panels.length) {
|
374
375
|
return [];
|
375
376
|
}
|
376
377
|
var list = [];
|
377
378
|
var hasFindActive = false;
|
378
|
-
props.panels
|
379
|
+
var panels = props.panels;
|
380
|
+
panels.filter(function (item, index) {
|
379
381
|
if (!item.props) {
|
380
382
|
return null;
|
381
383
|
}
|
@@ -484,7 +486,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
484
486
|
return tab_nav_objectSpread(tab_nav_objectSpread({}, methods), {}, {
|
485
487
|
activeRef: activeRef,
|
486
488
|
activeBarStyle: activeBarStyle,
|
487
|
-
|
489
|
+
tableNavList: tableNavList,
|
488
490
|
dragenterIndex: dragenterIndex,
|
489
491
|
dragStartIndex: dragStartIndex,
|
490
492
|
draggingEle: draggingEle,
|
@@ -505,7 +507,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
505
507
|
dragend = this.dragend,
|
506
508
|
drop = this.drop;
|
507
509
|
var renderNavs = function renderNavs() {
|
508
|
-
return _this.
|
510
|
+
return _this.tableNavList.map(function (item, index) {
|
509
511
|
if (!item) {
|
510
512
|
return null;
|
511
513
|
}
|
@@ -533,14 +535,14 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
533
535
|
"onClick": function onClick() {
|
534
536
|
return _this.handleTabRemove(index, item);
|
535
537
|
}
|
536
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
538
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]) : '';
|
537
539
|
};
|
538
540
|
var getNumType = function getNumType() {
|
539
541
|
return ['bracket'].includes(numDisplayType) ? "(".concat(tabNum, ")") : tabNum;
|
540
542
|
};
|
541
543
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
542
544
|
"key": name,
|
543
|
-
"ref": active === name ? 'activeRef' : '',
|
545
|
+
"ref": active === name ? 'activeRef' : 'tabLabelRef',
|
544
546
|
"class": getNavItemClass(),
|
545
547
|
"draggable": getValue(item.sortable, sortable),
|
546
548
|
"onClick": function onClick() {
|
@@ -589,7 +591,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
589
591
|
} else if (addable) {
|
590
592
|
list.push((0,external_vue_namespaceObject.createVNode)("div", {
|
591
593
|
"onClick": _this.handleTabAdd
|
592
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
594
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Plus, {
|
593
595
|
"style": "display:flex;",
|
594
596
|
"width": 26,
|
595
597
|
"height": 26
|
package/lib/tab/tab-nav.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
1
|
+
import { CSSProperties, type Ref, type ComponentInternalInstance, type ExtractPropTypes } from 'vue';
|
2
|
+
import { tabNavProps, TabPanelProps } from './props';
|
3
|
+
export type TabNavProps = ExtractPropTypes<typeof tabNavProps & ComponentInternalInstance>;
|
4
|
+
export type StringOrFunction = ((...args: unknown[]) => unknown) | string;
|
2
5
|
declare const _default: import("vue").DefineComponent<{
|
3
6
|
tabAdd: {
|
4
7
|
type: FunctionConstructor;
|
@@ -55,24 +58,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
58
|
default: number;
|
56
59
|
} & {
|
57
60
|
default: number;
|
58
|
-
};
|
59
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
60
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
61
|
-
* @param e {event} 触发的元素
|
62
|
-
* @return {boolean}
|
63
|
-
*/
|
61
|
+
};
|
64
62
|
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
63
|
default: boolean;
|
66
64
|
} & {
|
67
65
|
default: boolean;
|
68
66
|
};
|
69
67
|
}, {
|
70
|
-
activeRef:
|
68
|
+
activeRef: Ref<HTMLElement>;
|
71
69
|
activeBarStyle: import("vue").ComputedRef<CSSProperties>;
|
72
|
-
|
73
|
-
dragenterIndex:
|
74
|
-
dragStartIndex:
|
75
|
-
draggingEle:
|
70
|
+
tableNavList: import("vue").ComputedRef<any[]>;
|
71
|
+
dragenterIndex: Ref<number>;
|
72
|
+
dragStartIndex: Ref<number>;
|
73
|
+
draggingEle: Ref<string>;
|
76
74
|
guid: string;
|
77
75
|
resolveClassName: (cls: string) => string;
|
78
76
|
/**
|
@@ -81,14 +79,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
79
|
* @param e {event} 触发的元素
|
82
80
|
* @return {boolean}
|
83
81
|
*/
|
84
|
-
handleTabAdd(e:
|
82
|
+
handleTabAdd(e: MouseEvent): void;
|
85
83
|
dragstart(index: number, $event: DragEvent): void;
|
86
|
-
dragenter(index:
|
84
|
+
dragenter(index: number): void;
|
87
85
|
dragend(): void;
|
88
|
-
drop(index:
|
86
|
+
drop(index: number, sortType: string): boolean;
|
89
87
|
handleTabChange(name: string): void;
|
90
|
-
handleTabRemove(index: number, panel:
|
91
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
88
|
+
handleTabRemove(index: number, panel: TabPanelProps): void;
|
89
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
92
90
|
tabAdd: {
|
93
91
|
type: FunctionConstructor;
|
94
92
|
default: () => any;
|
@@ -144,12 +142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
144
142
|
default: number;
|
145
143
|
} & {
|
146
144
|
default: number;
|
147
|
-
};
|
148
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
149
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
150
|
-
* @param e {event} 触发的元素
|
151
|
-
* @return {boolean}
|
152
|
-
*/
|
145
|
+
};
|
153
146
|
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
154
147
|
default: boolean;
|
155
148
|
} & {
|
package/lib/table/index.js
CHANGED
@@ -22432,8 +22432,6 @@ const input_less_namespaceObject = input_less_x({ });
|
|
22432
22432
|
|
22433
22433
|
|
22434
22434
|
|
22435
|
-
|
22436
|
-
|
22437
22435
|
function _isSlot(s) {
|
22438
22436
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
22439
22437
|
}
|
@@ -22523,6 +22521,13 @@ var ROW_HEIGHT = 32;
|
|
22523
22521
|
}
|
22524
22522
|
return defaultMin;
|
22525
22523
|
});
|
22524
|
+
var contentStyle = (0,external_vue_namespaceObject.computed)(function () {
|
22525
|
+
return {
|
22526
|
+
maxHeight: "".concat(maxHeight.value, "px"),
|
22527
|
+
minHeight: "".concat(minHeight.value, "px"),
|
22528
|
+
height: /%$/.test("".concat(height.value)) ? height.value : "".concat(height.value, "px")
|
22529
|
+
};
|
22530
|
+
});
|
22526
22531
|
var getRegExp = function getRegExp(val) {
|
22527
22532
|
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ig';
|
22528
22533
|
return new RegExp("".concat(val).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
|
@@ -22652,8 +22657,8 @@ var ROW_HEIGHT = 32;
|
|
22652
22657
|
handleFilterChange();
|
22653
22658
|
};
|
22654
22659
|
var renderFilterList = function renderFilterList(scope) {
|
22655
|
-
if (scope.
|
22656
|
-
return scope.
|
22660
|
+
if (scope.length) {
|
22661
|
+
return scope.map(function (item) {
|
22657
22662
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
22658
22663
|
"key": item.value,
|
22659
22664
|
"ref": filterPopoverRef,
|
@@ -22722,19 +22727,10 @@ var ROW_HEIGHT = 32;
|
|
22722
22727
|
"class": "content-list"
|
22723
22728
|
}, {
|
22724
22729
|
"default": function _default() {
|
22725
|
-
return [(0,external_vue_namespaceObject.createVNode)(
|
22726
|
-
"
|
22727
|
-
"
|
22728
|
-
|
22729
|
-
"lineHeight": 32,
|
22730
|
-
"list": localData.value,
|
22731
|
-
"maxHeight": maxHeight.value,
|
22732
|
-
"minHeight": minHeight.value,
|
22733
|
-
"scrollEvent": true,
|
22734
|
-
"throttleDelay": 0
|
22735
|
-
}, {
|
22736
|
-
"default": renderFilterList
|
22737
|
-
})];
|
22730
|
+
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
22731
|
+
"style": contentStyle.value,
|
22732
|
+
"class": "content-items"
|
22733
|
+
}, [renderFilterList(localData.value)])];
|
22738
22734
|
}
|
22739
22735
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
22740
22736
|
"class": "content-footer"
|
@@ -157,6 +157,10 @@
|
|
157
157
|
max-width: 300px;
|
158
158
|
min-width: 200px;
|
159
159
|
}
|
160
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
161
|
+
max-height: 200px;
|
162
|
+
overflow: auto;
|
163
|
+
}
|
160
164
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
161
165
|
width: 100%;
|
162
166
|
height: 32px;
|
@@ -417,6 +417,10 @@
|
|
417
417
|
max-width: 300px;
|
418
418
|
min-width: 200px;
|
419
419
|
}
|
420
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
421
|
+
max-height: 200px;
|
422
|
+
overflow: auto;
|
423
|
+
}
|
420
424
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
421
425
|
width: 100%;
|
422
426
|
height: 32px;
|
package/lib/table/table.css
CHANGED
@@ -1029,6 +1029,10 @@
|
|
1029
1029
|
max-width: 300px;
|
1030
1030
|
min-width: 200px;
|
1031
1031
|
}
|
1032
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
1033
|
+
max-height: 200px;
|
1034
|
+
overflow: auto;
|
1035
|
+
}
|
1032
1036
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
1033
1037
|
width: 100%;
|
1034
1038
|
height: 32px;
|
@@ -1419,6 +1419,10 @@
|
|
1419
1419
|
max-width: 300px;
|
1420
1420
|
min-width: 200px;
|
1421
1421
|
}
|
1422
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
1423
|
+
max-height: 200px;
|
1424
|
+
overflow: auto;
|
1425
|
+
}
|
1422
1426
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
1423
1427
|
width: 100%;
|
1424
1428
|
height: 32px;
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkTag: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
4
|
-
default: "" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
4
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -38,8 +38,8 @@ declare const BkTag: {
|
|
38
38
|
handleClick: (e: Event) => void;
|
39
39
|
resolveClassName: (cls: string) => string;
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
41
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
42
|
-
default: "" | "
|
41
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
42
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
43
43
|
};
|
44
44
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
@@ -70,7 +70,7 @@ declare const BkTag: {
|
|
70
70
|
onClose?: (...args: any[]) => any;
|
71
71
|
}, {
|
72
72
|
type: "" | "stroke" | "filled";
|
73
|
-
theme: "" | "
|
73
|
+
theme: "" | "danger" | "success" | "warning" | "info";
|
74
74
|
closable: boolean;
|
75
75
|
radius: string;
|
76
76
|
checked: boolean;
|
@@ -86,8 +86,8 @@ declare const BkTag: {
|
|
86
86
|
M: {};
|
87
87
|
Defaults: {};
|
88
88
|
}, Readonly<import("vue").ExtractPropTypes<{
|
89
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
90
|
-
default: "" | "
|
89
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
90
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
91
91
|
};
|
92
92
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
93
|
default: boolean;
|
@@ -125,7 +125,7 @@ declare const BkTag: {
|
|
125
125
|
resolveClassName: (cls: string) => string;
|
126
126
|
}, {}, {}, {}, {
|
127
127
|
type: "" | "stroke" | "filled";
|
128
|
-
theme: "" | "
|
128
|
+
theme: "" | "danger" | "success" | "warning" | "info";
|
129
129
|
closable: boolean;
|
130
130
|
radius: string;
|
131
131
|
checked: boolean;
|
@@ -135,8 +135,8 @@ declare const BkTag: {
|
|
135
135
|
__isTeleport?: never;
|
136
136
|
__isSuspense?: never;
|
137
137
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
138
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
139
|
-
default: "" | "
|
138
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
139
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
140
140
|
};
|
141
141
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
142
|
default: boolean;
|
@@ -174,7 +174,7 @@ declare const BkTag: {
|
|
174
174
|
resolveClassName: (cls: string) => string;
|
175
175
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
|
176
176
|
type: "" | "stroke" | "filled";
|
177
|
-
theme: "" | "
|
177
|
+
theme: "" | "danger" | "success" | "warning" | "info";
|
178
178
|
closable: boolean;
|
179
179
|
radius: string;
|
180
180
|
checked: boolean;
|
package/lib/tag/tag.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SlotsType } from 'vue';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
4
|
-
default: "" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
4
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
handleClick: (e: Event) => void;
|
36
36
|
resolveClassName: (cls: string) => string;
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
-
theme: import("vue-types").VueTypeDef<"" | "
|
39
|
-
default: "" | "
|
38
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
39
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
40
40
|
};
|
41
41
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
42
|
default: boolean;
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
onClose?: (...args: any[]) => any;
|
68
68
|
}, {
|
69
69
|
type: "" | "stroke" | "filled";
|
70
|
-
theme: "" | "
|
70
|
+
theme: "" | "danger" | "success" | "warning" | "info";
|
71
71
|
closable: boolean;
|
72
72
|
radius: string;
|
73
73
|
checked: boolean;
|
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>;
|