bkui-vue 2.0.1-beta.74 → 2.0.1-beta.76
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 +37 -37
- package/dist/index.esm.js +7836 -7823
- package/dist/index.umd.js +37 -37
- 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 +13 -13
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +5 -5
- package/lib/modal/props.mixin.d.ts +2 -2
- 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 +41 -38
- package/lib/select/index.js +4 -0
- package/lib/select/select.d.ts +15 -14
- package/lib/select/selectTagInput.d.ts +5 -5
- package/lib/shared/vue-types.d.ts +6 -6
- package/lib/sideslider/index.d.ts +14 -14
- package/lib/sideslider/sideslider.d.ts +6 -6
- 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/package.json +1 -1
package/lib/steps/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkSteps: {
|
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" | "primary" | "success" | "warning"> & {
|
4
|
+
default: "danger" | "primary" | "success" | "warning";
|
5
5
|
};
|
6
6
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
7
7
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -42,8 +42,8 @@ declare const BkSteps: {
|
|
42
42
|
jumpTo: (index: any) => Promise<void>;
|
43
43
|
resolveClassName: (cls: string) => string;
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
45
|
-
theme: import("vue-types").VueTypeDef<"
|
46
|
-
default: "
|
45
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
46
|
+
default: "danger" | "primary" | "success" | "warning";
|
47
47
|
};
|
48
48
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
49
49
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -81,7 +81,7 @@ declare const BkSteps: {
|
|
81
81
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
82
82
|
}, {
|
83
83
|
extCls: string;
|
84
|
-
theme: "
|
84
|
+
theme: "danger" | "primary" | "success" | "warning";
|
85
85
|
steps: unknown[];
|
86
86
|
direction: "horizontal" | "vertical";
|
87
87
|
lineType: "dashed" | "solid";
|
@@ -97,8 +97,8 @@ declare const BkSteps: {
|
|
97
97
|
M: {};
|
98
98
|
Defaults: {};
|
99
99
|
}, Readonly<import("vue").ExtractPropTypes<{
|
100
|
-
theme: import("vue-types").VueTypeDef<"
|
101
|
-
default: "
|
100
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
101
|
+
default: "danger" | "primary" | "success" | "warning";
|
102
102
|
};
|
103
103
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
104
104
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -140,7 +140,7 @@ declare const BkSteps: {
|
|
140
140
|
resolveClassName: (cls: string) => string;
|
141
141
|
}, {}, {}, {}, {
|
142
142
|
extCls: string;
|
143
|
-
theme: "
|
143
|
+
theme: "danger" | "primary" | "success" | "warning";
|
144
144
|
steps: unknown[];
|
145
145
|
direction: "horizontal" | "vertical";
|
146
146
|
lineType: "dashed" | "solid";
|
@@ -153,8 +153,8 @@ declare const BkSteps: {
|
|
153
153
|
__isTeleport?: never;
|
154
154
|
__isSuspense?: never;
|
155
155
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
156
|
-
theme: import("vue-types").VueTypeDef<"
|
157
|
-
default: "
|
156
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
157
|
+
default: "danger" | "primary" | "success" | "warning";
|
158
158
|
};
|
159
159
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
160
160
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -196,7 +196,7 @@ declare const BkSteps: {
|
|
196
196
|
resolveClassName: (cls: string) => string;
|
197
197
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", {
|
198
198
|
extCls: string;
|
199
|
-
theme: "
|
199
|
+
theme: "danger" | "primary" | "success" | "warning";
|
200
200
|
steps: unknown[];
|
201
201
|
direction: "horizontal" | "vertical";
|
202
202
|
lineType: "dashed" | "solid";
|
package/lib/steps/steps.d.ts
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
*/
|
26
26
|
import { ExtractPropTypes } from 'vue';
|
27
27
|
declare const stepsProps: {
|
28
|
-
theme: import("vue-types").VueTypeDef<"
|
29
|
-
default: "
|
28
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
29
|
+
default: "danger" | "primary" | "success" | "warning";
|
30
30
|
};
|
31
31
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
32
32
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -62,8 +62,8 @@ declare const stepsProps: {
|
|
62
62
|
};
|
63
63
|
export type StepsPropTypes = ExtractPropTypes<typeof stepsProps>;
|
64
64
|
declare const _default: import("vue").DefineComponent<{
|
65
|
-
theme: import("vue-types").VueTypeDef<"
|
66
|
-
default: "
|
65
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
66
|
+
default: "danger" | "primary" | "success" | "warning";
|
67
67
|
};
|
68
68
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
69
69
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -101,8 +101,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
101
|
jumpTo: (index: any) => Promise<void>;
|
102
102
|
resolveClassName: (cls: string) => string;
|
103
103
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
104
|
-
theme: import("vue-types").VueTypeDef<"
|
105
|
-
default: "
|
104
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning"> & {
|
105
|
+
default: "danger" | "primary" | "success" | "warning";
|
106
106
|
};
|
107
107
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
108
108
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
140
140
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
141
141
|
}, {
|
142
142
|
extCls: string;
|
143
|
-
theme: "
|
143
|
+
theme: "danger" | "primary" | "success" | "warning";
|
144
144
|
steps: unknown[];
|
145
145
|
direction: "horizontal" | "vertical";
|
146
146
|
lineType: "dashed" | "solid";
|
package/lib/switcher/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkSwitcher: {
|
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<"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> & {
|
@@ -58,8 +58,8 @@ declare const BkSwitcher: {
|
|
58
58
|
"update:modelValue": (value: string | number | boolean) => string | number | boolean;
|
59
59
|
change: (value: boolean) => boolean;
|
60
60
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
61
|
-
theme: import("vue-types").VueTypeDef<"
|
62
|
-
default: "
|
61
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
62
|
+
default: "primary" | "success";
|
63
63
|
};
|
64
64
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
65
65
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -115,7 +115,7 @@ declare const BkSwitcher: {
|
|
115
115
|
}, {
|
116
116
|
extCls: string;
|
117
117
|
disabled: boolean;
|
118
|
-
theme: "
|
118
|
+
theme: "primary" | "success";
|
119
119
|
value: string | number | boolean;
|
120
120
|
modelValue: string | number | boolean;
|
121
121
|
withValidate: boolean;
|
@@ -135,8 +135,8 @@ declare const BkSwitcher: {
|
|
135
135
|
M: {};
|
136
136
|
Defaults: {};
|
137
137
|
}, Readonly<import("vue").ExtractPropTypes<{
|
138
|
-
theme: import("vue-types").VueTypeDef<"
|
139
|
-
default: "
|
138
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
139
|
+
default: "primary" | "success";
|
140
140
|
};
|
141
141
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
142
142
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -192,7 +192,7 @@ declare const BkSwitcher: {
|
|
192
192
|
}, () => JSX.Element, {}, {}, {}, {
|
193
193
|
extCls: string;
|
194
194
|
disabled: boolean;
|
195
|
-
theme: "
|
195
|
+
theme: "primary" | "success";
|
196
196
|
value: string | number | boolean;
|
197
197
|
modelValue: string | number | boolean;
|
198
198
|
withValidate: boolean;
|
@@ -209,8 +209,8 @@ declare const BkSwitcher: {
|
|
209
209
|
__isTeleport?: never;
|
210
210
|
__isSuspense?: never;
|
211
211
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
212
|
-
theme: import("vue-types").VueTypeDef<"
|
213
|
-
default: "
|
212
|
+
theme: import("vue-types").VueTypeDef<"primary" | "success"> & {
|
213
|
+
default: "primary" | "success";
|
214
214
|
};
|
215
215
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
216
216
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -269,7 +269,7 @@ declare const BkSwitcher: {
|
|
269
269
|
}, string, {
|
270
270
|
extCls: string;
|
271
271
|
disabled: boolean;
|
272
|
-
theme: "
|
272
|
+
theme: "primary" | "success";
|
273
273
|
value: string | number | boolean;
|
274
274
|
modelValue: string | number | boolean;
|
275
275
|
withValidate: boolean;
|
@@ -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;
|