bkui-vue 0.0.1-beta.184 → 0.0.1-beta.186
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 +31 -31
- package/dist/index.esm.js +160 -77
- package/dist/index.umd.js +30 -30
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/dialog/dialog.css +4 -4
- package/lib/dialog/dialog.variable.css +4 -4
- package/lib/info-box/index.css +4 -4
- package/lib/info-box/index.d.ts +3 -0
- package/lib/info-box/index.js +1 -1
- package/lib/info-box/index.less +5 -5
- package/lib/info-box/index.variable.css +4 -4
- package/lib/modal/modal.css +4 -4
- package/lib/modal/modal.variable.css +4 -4
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +317 -0
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +6 -0
- package/lib/table/table.d.ts +6 -0
- package/lib/table/use-column.d.ts +6 -0
- package/lib/table/use-common.d.ts +3 -3
- package/lib/table-column/index.d.ts +317 -0
- package/lib/table-column/index.js +1 -0
- package/package.json +3 -3
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Colgroups, TablePropTypes } from './props';
|
2
|
-
export declare const useClass: (props: TablePropTypes, root?: any, reactiveProp?: any, pageData?: any[]) => {
|
1
|
+
import { Colgroups, Column, TablePropTypes } from './props';
|
2
|
+
export declare const useClass: (props: TablePropTypes, targetColumns: Column[], root?: any, reactiveProp?: any, pageData?: any[]) => {
|
3
3
|
tableClass: import("vue").ComputedRef<string>;
|
4
4
|
headClass: string;
|
5
5
|
contentClass: {
|
@@ -23,7 +23,7 @@ export declare const useClass: (props: TablePropTypes, root?: any, reactiveProp?
|
|
23
23
|
hasFooter: import("vue").ComputedRef<number>;
|
24
24
|
hasScrollY: any;
|
25
25
|
};
|
26
|
-
export declare const useInit: (props: TablePropTypes) => {
|
26
|
+
export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) => {
|
27
27
|
colgroups: Colgroups[];
|
28
28
|
dragOffsetXStyle: import("vue").ComputedRef<{
|
29
29
|
readonly position: "absolute";
|
@@ -0,0 +1,317 @@
|
|
1
|
+
declare const BkTableColumn: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
fixed: string | boolean;
|
7
|
+
filter: string | boolean | {
|
8
|
+
list: any[] | (object & (() => any[]));
|
9
|
+
filterFn: any;
|
10
|
+
match: string;
|
11
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
12
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
13
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
14
|
+
};
|
15
|
+
sort: string | boolean | {
|
16
|
+
sortFn: any;
|
17
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
18
|
+
};
|
19
|
+
type: string;
|
20
|
+
minWidth: string | number;
|
21
|
+
columnKey: string;
|
22
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
23
|
+
resizable: boolean;
|
24
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
prop: import("vue-types").VueTypeDef<any>;
|
26
|
+
label: import("vue-types").VueTypeDef<any>;
|
27
|
+
field: import("vue-types").VueTypeDef<any>;
|
28
|
+
render: import("vue-types").VueTypeDef<any>;
|
29
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
30
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
31
|
+
default: string | number;
|
32
|
+
};
|
33
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
34
|
+
default: string;
|
35
|
+
} & {
|
36
|
+
default: string;
|
37
|
+
};
|
38
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
39
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
40
|
+
};
|
41
|
+
type: import("vue-types").VueTypeDef<string> & {
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
46
|
+
} & {
|
47
|
+
default: boolean;
|
48
|
+
};
|
49
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
50
|
+
default: string | boolean;
|
51
|
+
};
|
52
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
53
|
+
sortFn: any;
|
54
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
55
|
+
}> & {
|
56
|
+
default: string | boolean | (() => {
|
57
|
+
sortFn: any;
|
58
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
59
|
+
});
|
60
|
+
};
|
61
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
62
|
+
list: any[] | (object & (() => any[]));
|
63
|
+
filterFn: any;
|
64
|
+
match: string;
|
65
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
66
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
67
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
68
|
+
}> & {
|
69
|
+
default: string | boolean | (() => {
|
70
|
+
list: any[] | (object & (() => any[]));
|
71
|
+
filterFn: any;
|
72
|
+
match: string;
|
73
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
74
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
75
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
76
|
+
});
|
77
|
+
};
|
78
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "filter" | "sort" | "type" | "minWidth" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
79
|
+
$attrs: {
|
80
|
+
[x: string]: unknown;
|
81
|
+
};
|
82
|
+
$refs: {
|
83
|
+
[x: string]: unknown;
|
84
|
+
};
|
85
|
+
$slots: Readonly<{
|
86
|
+
[name: string]: import("vue").Slot;
|
87
|
+
}>;
|
88
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
89
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
90
|
+
$emit: (event: string, ...args: any[]) => void;
|
91
|
+
$el: any;
|
92
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
93
|
+
prop: import("vue-types").VueTypeDef<any>;
|
94
|
+
label: import("vue-types").VueTypeDef<any>;
|
95
|
+
field: import("vue-types").VueTypeDef<any>;
|
96
|
+
render: import("vue-types").VueTypeDef<any>;
|
97
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
98
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
99
|
+
default: string | number;
|
100
|
+
};
|
101
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
102
|
+
default: string;
|
103
|
+
} & {
|
104
|
+
default: string;
|
105
|
+
};
|
106
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
107
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
108
|
+
};
|
109
|
+
type: import("vue-types").VueTypeDef<string> & {
|
110
|
+
default: string;
|
111
|
+
};
|
112
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
113
|
+
default: boolean;
|
114
|
+
} & {
|
115
|
+
default: boolean;
|
116
|
+
};
|
117
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
118
|
+
default: string | boolean;
|
119
|
+
};
|
120
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
121
|
+
sortFn: any;
|
122
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
123
|
+
}> & {
|
124
|
+
default: string | boolean | (() => {
|
125
|
+
sortFn: any;
|
126
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
127
|
+
});
|
128
|
+
};
|
129
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
130
|
+
list: any[] | (object & (() => any[]));
|
131
|
+
filterFn: any;
|
132
|
+
match: string;
|
133
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
134
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
135
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
136
|
+
}> & {
|
137
|
+
default: string | boolean | (() => {
|
138
|
+
list: any[] | (object & (() => any[]));
|
139
|
+
filterFn: any;
|
140
|
+
match: string;
|
141
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
142
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
143
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
144
|
+
});
|
145
|
+
};
|
146
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
147
|
+
fixed: string | boolean;
|
148
|
+
filter: string | boolean | {
|
149
|
+
list: any[] | (object & (() => any[]));
|
150
|
+
filterFn: any;
|
151
|
+
match: string;
|
152
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
153
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
154
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
155
|
+
};
|
156
|
+
sort: string | boolean | {
|
157
|
+
sortFn: any;
|
158
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
159
|
+
};
|
160
|
+
type: string;
|
161
|
+
minWidth: string | number;
|
162
|
+
columnKey: string;
|
163
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
164
|
+
resizable: boolean;
|
165
|
+
}> & {
|
166
|
+
beforeCreate?: (() => void) | (() => void)[];
|
167
|
+
created?: (() => void) | (() => void)[];
|
168
|
+
beforeMount?: (() => void) | (() => void)[];
|
169
|
+
mounted?: (() => void) | (() => void)[];
|
170
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
171
|
+
updated?: (() => void) | (() => void)[];
|
172
|
+
activated?: (() => void) | (() => void)[];
|
173
|
+
deactivated?: (() => void) | (() => void)[];
|
174
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
175
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
176
|
+
destroyed?: (() => void) | (() => void)[];
|
177
|
+
unmounted?: (() => void) | (() => void)[];
|
178
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
179
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
180
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
181
|
+
};
|
182
|
+
$forceUpdate: () => void;
|
183
|
+
$nextTick: typeof import("vue").nextTick;
|
184
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
185
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
186
|
+
prop: import("vue-types").VueTypeDef<any>;
|
187
|
+
label: import("vue-types").VueTypeDef<any>;
|
188
|
+
field: import("vue-types").VueTypeDef<any>;
|
189
|
+
render: import("vue-types").VueTypeDef<any>;
|
190
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
191
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
192
|
+
default: string | number;
|
193
|
+
};
|
194
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
195
|
+
default: string;
|
196
|
+
} & {
|
197
|
+
default: string;
|
198
|
+
};
|
199
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
200
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
201
|
+
};
|
202
|
+
type: import("vue-types").VueTypeDef<string> & {
|
203
|
+
default: string;
|
204
|
+
};
|
205
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
206
|
+
default: boolean;
|
207
|
+
} & {
|
208
|
+
default: boolean;
|
209
|
+
};
|
210
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
211
|
+
default: string | boolean;
|
212
|
+
};
|
213
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
214
|
+
sortFn: any;
|
215
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
216
|
+
}> & {
|
217
|
+
default: string | boolean | (() => {
|
218
|
+
sortFn: any;
|
219
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
220
|
+
});
|
221
|
+
};
|
222
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
223
|
+
list: any[] | (object & (() => any[]));
|
224
|
+
filterFn: any;
|
225
|
+
match: string;
|
226
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
227
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
228
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
229
|
+
}> & {
|
230
|
+
default: string | boolean | (() => {
|
231
|
+
list: any[] | (object & (() => any[]));
|
232
|
+
filterFn: any;
|
233
|
+
match: string;
|
234
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
235
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
236
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
237
|
+
});
|
238
|
+
};
|
239
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
240
|
+
__isFragment?: never;
|
241
|
+
__isTeleport?: never;
|
242
|
+
__isSuspense?: never;
|
243
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
244
|
+
prop: import("vue-types").VueTypeDef<any>;
|
245
|
+
label: import("vue-types").VueTypeDef<any>;
|
246
|
+
field: import("vue-types").VueTypeDef<any>;
|
247
|
+
render: import("vue-types").VueTypeDef<any>;
|
248
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
249
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
250
|
+
default: string | number;
|
251
|
+
};
|
252
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
253
|
+
default: string;
|
254
|
+
} & {
|
255
|
+
default: string;
|
256
|
+
};
|
257
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
258
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
259
|
+
};
|
260
|
+
type: import("vue-types").VueTypeDef<string> & {
|
261
|
+
default: string;
|
262
|
+
};
|
263
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
264
|
+
default: boolean;
|
265
|
+
} & {
|
266
|
+
default: boolean;
|
267
|
+
};
|
268
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
269
|
+
default: string | boolean;
|
270
|
+
};
|
271
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
272
|
+
sortFn: any;
|
273
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
274
|
+
}> & {
|
275
|
+
default: string | boolean | (() => {
|
276
|
+
sortFn: any;
|
277
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
278
|
+
});
|
279
|
+
};
|
280
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
281
|
+
list: any[] | (object & (() => any[]));
|
282
|
+
filterFn: any;
|
283
|
+
match: string;
|
284
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
285
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
286
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
287
|
+
}> & {
|
288
|
+
default: string | boolean | (() => {
|
289
|
+
list: any[] | (object & (() => any[]));
|
290
|
+
filterFn: any;
|
291
|
+
match: string;
|
292
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
293
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
294
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
295
|
+
});
|
296
|
+
};
|
297
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
298
|
+
fixed: string | boolean;
|
299
|
+
filter: string | boolean | {
|
300
|
+
list: any[] | (object & (() => any[]));
|
301
|
+
filterFn: any;
|
302
|
+
match: string;
|
303
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
304
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
305
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
306
|
+
};
|
307
|
+
sort: string | boolean | {
|
308
|
+
sortFn: any;
|
309
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
310
|
+
};
|
311
|
+
type: string;
|
312
|
+
minWidth: string | number;
|
313
|
+
columnKey: string;
|
314
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
315
|
+
resizable: boolean;
|
316
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
317
|
+
export default BkTableColumn;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o)=>(()=>{"use strict";var p={4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function s(e){var o=r[e];if(void 0!==o)return o.exports;var n=r[e]={exports:{}};return p[e](n,n.exports,s),n.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{s.r(n),s.d(n,{default:()=>a});var e,o,p=s(4212),r=s(748);function T(e,o,p){return o in e?Object.defineProperty(e,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):e[o]=p,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer"}(o||(o={}));var y,t,f=[o.NONE,o.ROW,o.COL,o.OUTER];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick"}(y||(y={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom"}(t||(t={}));var P,i=function(){return!0};T(e={},t.COLUMN_PICK,i),T(e,t.COLUMN_FILTER,i),T(e,t.COLUMN_SORT,i),T(e,t.ROW_CLICK,i),T(e,t.ROW_DBL_CLICK,i),T(e,t.ROW_EXPAND_CLICK,i),T(e,t.PAGE_LIMIT_CHANGE,i),T(e,t.PAGE_VALUE_CHANGE,i),T(e,t.SETTING_CHANGE,i),T(e,t.SCROLL_BOTTOM,i),T(e,t.COLUMN_FILTER_SAVE,i),function(e){e.CURRENT="current",e.ALL="all"}(P||(P={}));var d={label:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),field:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),render:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),width:p.PropTypes.oneOfType([p.PropTypes.number.def(void 0),p.PropTypes.string.def("auto")]),minWidth:p.PropTypes.oneOfType([p.PropTypes.number.def(void 0),p.PropTypes.string.def("auto")]).def(),columnKey:p.PropTypes.string.def(""),showOverflowTooltip:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.shape({content:p.PropTypes.string.def(""),disabled:p.PropTypes.bool.def(!1),watchCellResize:p.PropTypes.bool.def(!0)})]).def(!1),type:p.PropTypes.commonType(["selection","index","expand","none"],"columnType").def("none"),resizable:p.PropTypes.bool.def(!0),fixed:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.commonType(["left","right"],"fixed")]).def(!1),sort:p.PropTypes.oneOfType([p.PropTypes.shape({sortFn:p.PropTypes.func.def(void 0),sortScope:p.PropTypes.commonType(Object.values(P)).def(P.CURRENT)}),p.PropTypes.bool,p.PropTypes.string]).def(!1),filter:p.PropTypes.oneOfType([p.PropTypes.shape({list:p.PropTypes.arrayOf(p.PropTypes.any).def([]),filterFn:p.PropTypes.func.def(void 0),match:p.PropTypes.commonType(["full","fuzzy"],"full"),filterScope:p.PropTypes.commonType(Object.values(P)).def(P.CURRENT),btnSave:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.string]).def("确定"),btnReset:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.string]).def("重置")}),p.PropTypes.bool,p.PropTypes.string]).def(!1)};p.PropTypes.arrayOf(p.PropTypes.any).def([]),p.PropTypes.arrayOf(p.PropTypes.shape(d)).def([]),p.PropTypes.oneOfType([p.PropTypes.number.def(-1),p.PropTypes.arrayOf(p.PropTypes.number.def(-1))]),p.PropTypes.commonType(["multi","single","disabled"],"columnPick").def("disabled"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def("auto"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def(84),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def("auto"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.func]).def(42),p.PropTypes.number.def(42),p.PropTypes.bool.def(!0),p.PropTypes.shape({height:p.PropTypes.number.def(42),isShow:p.PropTypes.bool.def(!0),cellFn:p.PropTypes.func.def(void 0)}),p.PropTypes.bool.def(!1),p.PropTypes.arrayOf(p.PropTypes.commonType(f,"border")).def([o.ROW]),p.PropTypes.oneOfType([p.PropTypes.bool.def(!1),p.PropTypes.object.def({})]).def(!1),p.PropTypes.bool.def(!1),p.PropTypes.string.def("暂无数据"),p.PropTypes.oneOfType([p.PropTypes.shape({fields:p.PropTypes.arrayOf(p.PropTypes.shape({label:p.PropTypes.string,field:p.PropTypes.string,disabled:p.PropTypes.bool})),checked:p.PropTypes.arrayOf(p.PropTypes.string),limit:p.PropTypes.number.def(0),size:p.PropTypes.size(["small","medium","large"]).def("small"),sizeList:p.PropTypes.shape([])}),p.PropTypes.bool]).def(!1),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.object,p.PropTypes.bool]).def(void 0),p.PropTypes.bool.def(!1),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.func]).def("__$table_row_index");const l=(0,r.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},d),{prop:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")])}),setup:function(e,o){var p=o.slots,s=(0,r.inject)("InitColumns",(function(e){}),!1);return(0,r.onMounted)((function(){var o=(0,r.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}));s(o),o.render=p.default?function(e){var o;return null===(o=p.default)||void 0===o?void 0:o.call(p,e)}:void 0})),function(){var e;return(0,r.createVNode)(r.Fragment,null,[null===(e=p.default)||void 0===e?void 0:e.call(p,{data:""})])}}}),a=(0,p.withInstall)(l)})(),n})()));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.1-beta.
|
3
|
+
"version": "0.0.1-beta.186",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
],
|
14
14
|
"scripts": {
|
15
15
|
"prepare": "husky install",
|
16
|
-
"dev": "vite serve site",
|
16
|
+
"dev": "vite serve site --force",
|
17
17
|
"build": "run-s build:dist build:lib",
|
18
18
|
"build:site": "vite build site --mode production && cp -r ./site/views/ ./site/dist/views",
|
19
19
|
"build:dist": "rimraf dist && lerna run --stream --scope cli dist",
|
@@ -108,7 +108,7 @@
|
|
108
108
|
"highlight.js": "~11.5.0",
|
109
109
|
"vue": "^3.2.0"
|
110
110
|
},
|
111
|
-
"main": "
|
111
|
+
"main": "dist/index.umd.js",
|
112
112
|
"module": "lib/index.js",
|
113
113
|
"typings": "lib/index.d.ts",
|
114
114
|
"lint-staged": {
|