bkui-vue 0.0.3-beta.1 → 0.0.3-beta.3
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 +166 -140
- package/dist/index.esm.js +20024 -16244
- package/dist/index.umd.js +166 -140
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/collapse/index.js +9 -9
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +4 -4
- package/lib/dialog/props.d.ts +1 -1
- package/lib/icon/grag-fill.d.ts +4 -0
- package/lib/icon/grag-fill.js +191 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +21 -1
- package/lib/info-box/index.d.ts +0 -1
- package/lib/info-box/index.js +17270 -43
- package/lib/info-box/info-box.d.ts +3 -4
- package/lib/locale/index.js +2 -0
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/modal/index.d.ts +5 -5
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +2 -2
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/preset.d.ts +2 -0
- package/lib/shared/index.js +13 -0
- package/lib/shared/vue-types.d.ts +1 -0
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/sideslider.d.ts +2 -2
- package/lib/tab/index.js +1 -1
- package/lib/table/events.d.ts +10 -1
- package/lib/table/index.d.ts +39 -0
- package/lib/table/index.js +168 -23
- package/lib/table/plugins/use-draggable.d.ts +17 -0
- package/lib/table/props.d.ts +13 -0
- package/lib/table/table.css +24 -0
- package/lib/table/table.d.ts +15 -0
- package/lib/table/table.less +24 -0
- package/lib/table/table.variable.css +24 -0
- package/lib/table/use-attributes.d.ts +1 -0
- package/lib/table-column/index.js +5 -1
- package/lib/tag-input/index.js +17287 -15
- package/lib/tag-input/tag-render.d.ts +7 -0
- package/lib/tree/index.d.ts +6 -24
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +1 -5
- package/lib/tree/tree.d.ts +2 -13
- package/package.json +1 -1
@@ -6,10 +6,10 @@ export interface ModalFuncProps {
|
|
6
6
|
'ext-cls': string | string[];
|
7
7
|
type?: 'primary' | 'warning' | 'success' | 'danger';
|
8
8
|
infoType?: 'success' | 'danger' | 'warning' | 'loading';
|
9
|
-
title?: string
|
9
|
+
title?: string;
|
10
10
|
subTitle?: string | (() => VNode) | VNode;
|
11
|
-
confirmText?: string
|
12
|
-
cancelText?: string
|
11
|
+
confirmText?: string;
|
12
|
+
cancelText?: string;
|
13
13
|
onConfirm?: (...args: any[]) => any;
|
14
14
|
onClosed?: (...args: any[]) => any;
|
15
15
|
boundary?: HTMLElement;
|
@@ -27,7 +27,6 @@ export interface ModalFuncProps {
|
|
27
27
|
declare const InfoBox: (config: Partial<ModalFuncProps>) => {
|
28
28
|
show: () => void;
|
29
29
|
hide: () => void;
|
30
|
-
update: (config: Partial<ModalFuncProps>) => void;
|
31
30
|
destroy: () => void;
|
32
31
|
};
|
33
32
|
export default InfoBox;
|
package/lib/locale/index.js
CHANGED
@@ -134,6 +134,7 @@ var en = {
|
|
134
134
|
emptyText: 'No Data',
|
135
135
|
confirm: 'Confirm',
|
136
136
|
reset: 'Reset',
|
137
|
+
sort: 'Sort',
|
137
138
|
setting: {
|
138
139
|
title: 'Table Settings',
|
139
140
|
fields: {
|
@@ -342,6 +343,7 @@ var zhCn = {
|
|
342
343
|
emptyText: '暂无数据',
|
343
344
|
confirm: '确定',
|
344
345
|
reset: '重置',
|
346
|
+
sort: '排序',
|
345
347
|
setting: {
|
346
348
|
title: '表格设置',
|
347
349
|
fields: {
|
package/lib/locale/lang/en.d.ts
CHANGED
package/lib/modal/index.d.ts
CHANGED
@@ -79,7 +79,7 @@ declare const BkModal: {
|
|
79
79
|
"onQuick-close"?: (...args: any[]) => any;
|
80
80
|
onQuickClose?: (...args: any[]) => any;
|
81
81
|
readonly beforeClose?: unknown;
|
82
|
-
readonly infoType?: "
|
82
|
+
readonly infoType?: "loading" | "success" | "warning" | "danger";
|
83
83
|
};
|
84
84
|
$attrs: {
|
85
85
|
[x: string]: unknown;
|
@@ -179,7 +179,7 @@ declare const BkModal: {
|
|
179
179
|
} & {
|
180
180
|
default: boolean;
|
181
181
|
};
|
182
|
-
infoType: import("vue-types").VueTypeDef<"
|
182
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
183
183
|
}>> & {
|
184
184
|
onClose?: (...args: any[]) => any;
|
185
185
|
onShown?: (...args: any[]) => any;
|
@@ -322,7 +322,7 @@ declare const BkModal: {
|
|
322
322
|
} & {
|
323
323
|
default: boolean;
|
324
324
|
};
|
325
|
-
infoType: import("vue-types").VueTypeDef<"
|
325
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
326
326
|
}>> & {
|
327
327
|
onClose?: (...args: any[]) => any;
|
328
328
|
onShown?: (...args: any[]) => any;
|
@@ -429,7 +429,7 @@ declare const BkModal: {
|
|
429
429
|
} & {
|
430
430
|
default: boolean;
|
431
431
|
};
|
432
|
-
infoType: import("vue-types").VueTypeDef<"
|
432
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
433
433
|
}>> & {
|
434
434
|
onClose?: (...args: any[]) => any;
|
435
435
|
onShown?: (...args: any[]) => any;
|
@@ -553,7 +553,7 @@ declare const BkModal: {
|
|
553
553
|
} & {
|
554
554
|
default: boolean;
|
555
555
|
};
|
556
|
-
infoType: import("vue-types").VueTypeDef<"
|
556
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
557
557
|
};
|
558
558
|
}>;
|
559
559
|
export default BkModal;
|
package/lib/modal/index.js
CHANGED
@@ -175,7 +175,7 @@ var propsMixin = {
|
|
175
175
|
// 是否允许多个弹框同时存在
|
176
176
|
multiInstance: external_shared_namespaceObject.PropTypes.bool.def(true),
|
177
177
|
// info-box
|
178
|
-
infoType: external_shared_namespaceObject.PropTypes.
|
178
|
+
infoType: external_shared_namespaceObject.PropTypes.infoType()
|
179
179
|
};
|
180
180
|
;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
|
181
181
|
|
package/lib/modal/modal.d.ts
CHANGED
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
} & {
|
84
84
|
default: boolean;
|
85
85
|
};
|
86
|
-
infoType: import("vue-types").VueTypeDef<"
|
86
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
87
87
|
}, unknown, {
|
88
88
|
visible: boolean;
|
89
89
|
closeTimer: any;
|
@@ -180,7 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
180
180
|
} & {
|
181
181
|
default: boolean;
|
182
182
|
};
|
183
|
-
infoType: import("vue-types").VueTypeDef<"
|
183
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
184
184
|
}>> & {
|
185
185
|
onClose?: (...args: any[]) => any;
|
186
186
|
onShown?: (...args: any[]) => any;
|
package/lib/preset.d.ts
CHANGED
@@ -80,6 +80,7 @@ declare const _default: {
|
|
80
80
|
emptyText: string;
|
81
81
|
confirm: string;
|
82
82
|
reset: string;
|
83
|
+
sort: string;
|
83
84
|
setting: {
|
84
85
|
title: string;
|
85
86
|
fields: {
|
@@ -219,6 +220,7 @@ declare const _default: {
|
|
219
220
|
emptyText: string;
|
220
221
|
confirm: string;
|
221
222
|
reset: string;
|
223
|
+
sort: string;
|
222
224
|
setting: {
|
223
225
|
title: string;
|
224
226
|
fields: {
|
package/lib/shared/index.js
CHANGED
@@ -2459,6 +2459,19 @@ var PropTypes = /*#__PURE__*/function (_propTypesNS) {
|
|
2459
2459
|
"default": 'top-center'
|
2460
2460
|
});
|
2461
2461
|
}
|
2462
|
+
}, {
|
2463
|
+
key: "infoType",
|
2464
|
+
value: function infoType() {
|
2465
|
+
var type = ['success', 'danger', 'warning', 'loading'];
|
2466
|
+
return (0,external_vue_types_namespaceObject.toType)('InfoType', {
|
2467
|
+
validator: function validator(val) {
|
2468
|
+
if (!val || type.includes(val)) {
|
2469
|
+
return true;
|
2470
|
+
}
|
2471
|
+
return false;
|
2472
|
+
}
|
2473
|
+
});
|
2474
|
+
}
|
2462
2475
|
}]);
|
2463
2476
|
return PropTypes;
|
2464
2477
|
}(propTypesNS);
|
@@ -235,6 +235,7 @@ export declare class PropTypes extends propTypesNS {
|
|
235
235
|
static placement(): VueTypeDef<"top" | "right" | "bottom" | "left">;
|
236
236
|
static style(): VueTypeDef<CSSProperties>;
|
237
237
|
static position(positions?: string[]): VueTypeDef<string>;
|
238
|
+
static infoType(): VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
238
239
|
}
|
239
240
|
export declare enum SelectedTypeEnum {
|
240
241
|
CHECKBOX = "checkbox",
|
@@ -71,7 +71,7 @@ declare const BkSideslider: {
|
|
71
71
|
onShown?: (...args: any[]) => any;
|
72
72
|
onHidden?: (...args: any[]) => any;
|
73
73
|
readonly beforeClose?: unknown;
|
74
|
-
readonly infoType?: "
|
74
|
+
readonly infoType?: "loading" | "success" | "warning" | "danger";
|
75
75
|
onClosed?: (...args: any[]) => any;
|
76
76
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
77
77
|
"onAnimation-end"?: (...args: any[]) => any;
|
@@ -176,7 +176,7 @@ declare const BkSideslider: {
|
|
176
176
|
} & {
|
177
177
|
default: boolean;
|
178
178
|
};
|
179
|
-
infoType: import("vue-types").VueTypeDef<"
|
179
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
180
180
|
}>> & {
|
181
181
|
onShown?: (...args: any[]) => any;
|
182
182
|
onHidden?: (...args: any[]) => any;
|
@@ -310,7 +310,7 @@ declare const BkSideslider: {
|
|
310
310
|
} & {
|
311
311
|
default: boolean;
|
312
312
|
};
|
313
|
-
infoType: import("vue-types").VueTypeDef<"
|
313
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
314
314
|
}>> & {
|
315
315
|
onShown?: (...args: any[]) => any;
|
316
316
|
onHidden?: (...args: any[]) => any;
|
@@ -408,7 +408,7 @@ declare const BkSideslider: {
|
|
408
408
|
} & {
|
409
409
|
default: boolean;
|
410
410
|
};
|
411
|
-
infoType: import("vue-types").VueTypeDef<"
|
411
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
412
412
|
}>> & {
|
413
413
|
onShown?: (...args: any[]) => any;
|
414
414
|
onHidden?: (...args: any[]) => any;
|
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
85
|
} & {
|
86
86
|
default: boolean;
|
87
87
|
};
|
88
|
-
infoType: import("vue-types").VueTypeDef<"
|
88
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
89
89
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
90
90
|
direction: {
|
91
91
|
type: StringConstructor;
|
@@ -173,7 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
173
173
|
} & {
|
174
174
|
default: boolean;
|
175
175
|
};
|
176
|
-
infoType: import("vue-types").VueTypeDef<"
|
176
|
+
infoType: import("vue-types").VueTypeDef<"loading" | "success" | "warning" | "danger">;
|
177
177
|
}>> & {
|
178
178
|
onShown?: (...args: any[]) => any;
|
179
179
|
onHidden?: (...args: any[]) => any;
|
package/lib/tab/index.js
CHANGED
@@ -561,7 +561,7 @@ function tab_nav_objectSpread(target) { for (var i = 1; i < arguments.length; i+
|
|
561
561
|
return _this.handleTabRemove(index, item);
|
562
562
|
}
|
563
563
|
}, [(0,external_vue_namespaceObject.createVNode)(_namespaceObject.Close, null, null)]) : '']), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
564
|
-
content: item.tips,
|
564
|
+
content: item.tips || '',
|
565
565
|
disabled: !item.tips
|
566
566
|
}]]);
|
567
567
|
});
|
package/lib/table/events.d.ts
CHANGED
@@ -28,7 +28,8 @@ export declare const enum EMIT_EVENTS {
|
|
28
28
|
CELL_CLICK = "cellClick",
|
29
29
|
CELL_DBL_CLICK = "cellDblclick",
|
30
30
|
NATIVE_CLICK = "click",
|
31
|
-
NATIVE_DBL_CLICK = "dblclick"
|
31
|
+
NATIVE_DBL_CLICK = "dblclick",
|
32
|
+
DRAG_END = "dragend"
|
32
33
|
}
|
33
34
|
export declare const EVENT_COL_PICK: (_cols: IColumnActive[]) => boolean;
|
34
35
|
export declare const EVENT_COL_FILTER: (_args: {
|
@@ -94,6 +95,10 @@ export declare const EVENT_SCROLL_FN: (_args: {
|
|
94
95
|
scrollLeft: number;
|
95
96
|
bottom: number;
|
96
97
|
}) => boolean;
|
98
|
+
export declare const EVENT_DRAGEND_FN: (_args: {
|
99
|
+
sourceEvent: DragEvent;
|
100
|
+
data: any[];
|
101
|
+
}) => boolean;
|
97
102
|
export declare const EMIT_EVENT_TYPES: {
|
98
103
|
columnPick: (_cols: IColumnActive[]) => boolean;
|
99
104
|
columnFilter: (_args: {
|
@@ -173,6 +178,10 @@ export declare const EMIT_EVENT_TYPES: {
|
|
173
178
|
}) => boolean;
|
174
179
|
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
175
180
|
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
181
|
+
dragend: (_args: {
|
182
|
+
sourceEvent: DragEvent;
|
183
|
+
data: any[];
|
184
|
+
}) => boolean;
|
176
185
|
};
|
177
186
|
export declare const CELL_EVENT_TYPES: {
|
178
187
|
click: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
package/lib/table/index.d.ts
CHANGED
@@ -48,8 +48,13 @@ declare const BkTable: {
|
|
48
48
|
observerResize?: boolean;
|
49
49
|
prependStyle?: import("vue").CSSProperties;
|
50
50
|
isFlex?: boolean;
|
51
|
+
rowDraggable?: any;
|
51
52
|
class?: unknown;
|
52
53
|
style?: unknown;
|
54
|
+
onDragend?: (_args: {
|
55
|
+
sourceEvent: DragEvent;
|
56
|
+
data: any[];
|
57
|
+
}) => any;
|
53
58
|
onSelect?: (_args: {
|
54
59
|
row: any;
|
55
60
|
index: Number;
|
@@ -249,6 +254,9 @@ declare const BkTable: {
|
|
249
254
|
};
|
250
255
|
rowIndex: number;
|
251
256
|
columnIndex: number;
|
257
|
+
}) => void) & ((event: import("./events").EMIT_EVENTS.DRAG_END, _args: {
|
258
|
+
sourceEvent: DragEvent;
|
259
|
+
data: any[];
|
252
260
|
}) => void);
|
253
261
|
$el: any;
|
254
262
|
$options: import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
@@ -403,7 +411,14 @@ declare const BkTable: {
|
|
403
411
|
} & {
|
404
412
|
default: boolean;
|
405
413
|
};
|
414
|
+
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
415
|
+
default: any;
|
416
|
+
};
|
406
417
|
}>> & {
|
418
|
+
onDragend?: (_args: {
|
419
|
+
sourceEvent: DragEvent;
|
420
|
+
data: any[];
|
421
|
+
}) => any;
|
407
422
|
onSelect?: (_args: {
|
408
423
|
row: any;
|
409
424
|
index: Number;
|
@@ -561,6 +576,10 @@ declare const BkTable: {
|
|
561
576
|
}) => boolean;
|
562
577
|
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
563
578
|
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
579
|
+
dragend: (_args: {
|
580
|
+
sourceEvent: DragEvent;
|
581
|
+
data: any[];
|
582
|
+
}) => boolean;
|
564
583
|
}, string, {
|
565
584
|
data: any[];
|
566
585
|
thead: import("./props").Thead;
|
@@ -602,6 +621,7 @@ declare const BkTable: {
|
|
602
621
|
observerResize: boolean;
|
603
622
|
prependStyle: import("vue").CSSProperties;
|
604
623
|
isFlex: boolean;
|
624
|
+
rowDraggable: any;
|
605
625
|
}, {}, string, {}> & {
|
606
626
|
beforeCreate?: (() => void) | (() => void)[];
|
607
627
|
created?: (() => void) | (() => void)[];
|
@@ -774,7 +794,14 @@ declare const BkTable: {
|
|
774
794
|
} & {
|
775
795
|
default: boolean;
|
776
796
|
};
|
797
|
+
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
798
|
+
default: any;
|
799
|
+
};
|
777
800
|
}>> & {
|
801
|
+
onDragend?: (_args: {
|
802
|
+
sourceEvent: DragEvent;
|
803
|
+
data: any[];
|
804
|
+
}) => any;
|
778
805
|
onSelect?: (_args: {
|
779
806
|
row: any;
|
780
807
|
index: Number;
|
@@ -1009,7 +1036,14 @@ declare const BkTable: {
|
|
1009
1036
|
} & {
|
1010
1037
|
default: boolean;
|
1011
1038
|
};
|
1039
|
+
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
1040
|
+
default: any;
|
1041
|
+
};
|
1012
1042
|
}>> & {
|
1043
|
+
onDragend?: (_args: {
|
1044
|
+
sourceEvent: DragEvent;
|
1045
|
+
data: any[];
|
1046
|
+
}) => any;
|
1013
1047
|
onSelect?: (_args: {
|
1014
1048
|
row: any;
|
1015
1049
|
index: Number;
|
@@ -1167,6 +1201,10 @@ declare const BkTable: {
|
|
1167
1201
|
}) => boolean;
|
1168
1202
|
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1169
1203
|
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
1204
|
+
dragend: (_args: {
|
1205
|
+
sourceEvent: DragEvent;
|
1206
|
+
data: any[];
|
1207
|
+
}) => boolean;
|
1170
1208
|
}, string, {
|
1171
1209
|
data: any[];
|
1172
1210
|
thead: import("./props").Thead;
|
@@ -1208,6 +1246,7 @@ declare const BkTable: {
|
|
1208
1246
|
observerResize: boolean;
|
1209
1247
|
prependStyle: import("vue").CSSProperties;
|
1210
1248
|
isFlex: boolean;
|
1249
|
+
rowDraggable: any;
|
1211
1250
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
1212
1251
|
Column: import("vue").DefineComponent<{
|
1213
1252
|
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|