bkui-vue 0.0.1-beta.442 → 0.0.1-beta.444
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 +18 -18
- package/dist/index.esm.js +32 -12
- package/dist/index.umd.js +18 -18
- package/lib/search-select/index.d.ts +47 -3
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +2 -0
- package/lib/search-select/search-select.d.ts +17 -1
- package/lib/search-select/selected.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +35 -39
- package/lib/table/index.d.ts +101 -117
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +3 -0
- package/lib/table-column/index.d.ts +101 -117
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
@@ -13,6 +13,7 @@ declare const BkTableColumn: {
|
|
13
13
|
list: any[] | (object & (() => any[]));
|
14
14
|
filterFn: any;
|
15
15
|
match: "full" | "fuzzy";
|
16
|
+
checked: any[] | (object & (() => any[]));
|
16
17
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
17
18
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
18
19
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -68,6 +69,7 @@ declare const BkTableColumn: {
|
|
68
69
|
list: any[] | (object & (() => any[]));
|
69
70
|
filterFn: any;
|
70
71
|
match: "full" | "fuzzy";
|
72
|
+
checked: any[] | (object & (() => any[]));
|
71
73
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
72
74
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
73
75
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -76,6 +78,7 @@ declare const BkTableColumn: {
|
|
76
78
|
list: any[] | (object & (() => any[]));
|
77
79
|
filterFn: any;
|
78
80
|
match: "full" | "fuzzy";
|
81
|
+
checked: any[] | (object & (() => any[]));
|
79
82
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
80
83
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
81
84
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -145,6 +148,7 @@ declare const BkTableColumn: {
|
|
145
148
|
list: any[] | (object & (() => any[]));
|
146
149
|
filterFn: any;
|
147
150
|
match: "full" | "fuzzy";
|
151
|
+
checked: any[] | (object & (() => any[]));
|
148
152
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
149
153
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
150
154
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -153,6 +157,7 @@ declare const BkTableColumn: {
|
|
153
157
|
list: any[] | (object & (() => any[]));
|
154
158
|
filterFn: any;
|
155
159
|
match: "full" | "fuzzy";
|
160
|
+
checked: any[] | (object & (() => any[]));
|
156
161
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
157
162
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
158
163
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -168,50 +173,41 @@ declare const BkTableColumn: {
|
|
168
173
|
queueStack: (_: any, fn: any) => any;
|
169
174
|
};
|
170
175
|
column: {
|
171
|
-
field:
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
176
|
+
field: any;
|
177
|
+
render: any;
|
178
|
+
fixed: boolean | "left" | "right";
|
179
|
+
sort: string | boolean | {
|
180
|
+
sortFn: any;
|
181
|
+
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
182
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
183
|
+
};
|
184
|
+
filter: string | boolean | {
|
185
|
+
list: any[] | (object & (() => any[]));
|
186
|
+
filterFn: any;
|
187
|
+
match: "full" | "fuzzy";
|
188
|
+
checked: any[] | (object & (() => any[]));
|
189
|
+
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
190
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
191
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
192
|
+
};
|
193
|
+
type: "none" | "selection" | "index" | "expand";
|
194
|
+
label: any;
|
195
|
+
width: string | number;
|
196
|
+
minWidth: string | number;
|
197
|
+
className: any;
|
198
|
+
align: "" | "left" | "center" | "right";
|
199
|
+
index: number;
|
200
|
+
columnKey: string;
|
201
|
+
showOverflowTooltip: boolean | {
|
178
202
|
content: string | Function;
|
179
203
|
disabled?: boolean;
|
180
204
|
watchCellResize?: boolean;
|
181
205
|
mode?: "auto" | "static";
|
182
206
|
};
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
sortFn?: Function;
|
188
|
-
sortScope?: string;
|
189
|
-
value?: string;
|
190
|
-
};
|
191
|
-
filter?: string | boolean | {
|
192
|
-
list?: any;
|
193
|
-
filterFn?: Function;
|
194
|
-
};
|
195
|
-
colspan?: Function | {
|
196
|
-
toString: (radix?: number) => string;
|
197
|
-
toFixed: (fractionDigits?: number) => string;
|
198
|
-
toExponential: (fractionDigits?: number) => string;
|
199
|
-
toPrecision: (precision?: number) => string;
|
200
|
-
valueOf: () => number;
|
201
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
202
|
-
};
|
203
|
-
rowspan?: Function | {
|
204
|
-
toString: (radix?: number) => string;
|
205
|
-
toFixed: (fractionDigits?: number) => string;
|
206
|
-
toExponential: (fractionDigits?: number) => string;
|
207
|
-
toPrecision: (precision?: number) => string;
|
208
|
-
valueOf: () => number;
|
209
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
210
|
-
};
|
211
|
-
className?: string | Function;
|
212
|
-
align?: string;
|
213
|
-
prop?: string | Function;
|
214
|
-
index?: number;
|
207
|
+
resizable: boolean;
|
208
|
+
colspan: any;
|
209
|
+
rowspan: any;
|
210
|
+
prop: any;
|
215
211
|
};
|
216
212
|
}, unknown, {}, {
|
217
213
|
updateColumnDefine(unmounted?: boolean): void;
|
@@ -228,6 +224,7 @@ declare const BkTableColumn: {
|
|
228
224
|
list: any[] | (object & (() => any[]));
|
229
225
|
filterFn: any;
|
230
226
|
match: "full" | "fuzzy";
|
227
|
+
checked: any[] | (object & (() => any[]));
|
231
228
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
232
229
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
233
230
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -303,6 +300,7 @@ declare const BkTableColumn: {
|
|
303
300
|
list: any[] | (object & (() => any[]));
|
304
301
|
filterFn: any;
|
305
302
|
match: "full" | "fuzzy";
|
303
|
+
checked: any[] | (object & (() => any[]));
|
306
304
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
307
305
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
308
306
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -311,6 +309,7 @@ declare const BkTableColumn: {
|
|
311
309
|
list: any[] | (object & (() => any[]));
|
312
310
|
filterFn: any;
|
313
311
|
match: "full" | "fuzzy";
|
312
|
+
checked: any[] | (object & (() => any[]));
|
314
313
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
315
314
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
316
315
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -326,50 +325,41 @@ declare const BkTableColumn: {
|
|
326
325
|
queueStack: (_: any, fn: any) => any;
|
327
326
|
};
|
328
327
|
column: {
|
329
|
-
field:
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
328
|
+
field: any;
|
329
|
+
render: any;
|
330
|
+
fixed: boolean | "left" | "right";
|
331
|
+
sort: string | boolean | {
|
332
|
+
sortFn: any;
|
333
|
+
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
334
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
335
|
+
};
|
336
|
+
filter: string | boolean | {
|
337
|
+
list: any[] | (object & (() => any[]));
|
338
|
+
filterFn: any;
|
339
|
+
match: "full" | "fuzzy";
|
340
|
+
checked: any[] | (object & (() => any[]));
|
341
|
+
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
342
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
343
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
344
|
+
};
|
345
|
+
type: "none" | "selection" | "index" | "expand";
|
346
|
+
label: any;
|
347
|
+
width: string | number;
|
348
|
+
minWidth: string | number;
|
349
|
+
className: any;
|
350
|
+
align: "" | "left" | "center" | "right";
|
351
|
+
index: number;
|
352
|
+
columnKey: string;
|
353
|
+
showOverflowTooltip: boolean | {
|
336
354
|
content: string | Function;
|
337
355
|
disabled?: boolean;
|
338
356
|
watchCellResize?: boolean;
|
339
357
|
mode?: "auto" | "static";
|
340
358
|
};
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
sortFn?: Function;
|
346
|
-
sortScope?: string;
|
347
|
-
value?: string;
|
348
|
-
};
|
349
|
-
filter?: string | boolean | {
|
350
|
-
list?: any;
|
351
|
-
filterFn?: Function;
|
352
|
-
};
|
353
|
-
colspan?: Function | {
|
354
|
-
toString: (radix?: number) => string;
|
355
|
-
toFixed: (fractionDigits?: number) => string;
|
356
|
-
toExponential: (fractionDigits?: number) => string;
|
357
|
-
toPrecision: (precision?: number) => string;
|
358
|
-
valueOf: () => number;
|
359
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
360
|
-
};
|
361
|
-
rowspan?: Function | {
|
362
|
-
toString: (radix?: number) => string;
|
363
|
-
toFixed: (fractionDigits?: number) => string;
|
364
|
-
toExponential: (fractionDigits?: number) => string;
|
365
|
-
toPrecision: (precision?: number) => string;
|
366
|
-
valueOf: () => number;
|
367
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
368
|
-
};
|
369
|
-
className?: string | Function;
|
370
|
-
align?: string;
|
371
|
-
prop?: string | Function;
|
372
|
-
index?: number;
|
359
|
+
resizable: boolean;
|
360
|
+
colspan: any;
|
361
|
+
rowspan: any;
|
362
|
+
prop: any;
|
373
363
|
};
|
374
364
|
}> & {} & {} & {
|
375
365
|
updateColumnDefine(unmounted?: boolean): void;
|
@@ -425,6 +415,7 @@ declare const BkTableColumn: {
|
|
425
415
|
list: any[] | (object & (() => any[]));
|
426
416
|
filterFn: any;
|
427
417
|
match: "full" | "fuzzy";
|
418
|
+
checked: any[] | (object & (() => any[]));
|
428
419
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
429
420
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
430
421
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -433,6 +424,7 @@ declare const BkTableColumn: {
|
|
433
424
|
list: any[] | (object & (() => any[]));
|
434
425
|
filterFn: any;
|
435
426
|
match: "full" | "fuzzy";
|
427
|
+
checked: any[] | (object & (() => any[]));
|
436
428
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
437
429
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
438
430
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -448,50 +440,41 @@ declare const BkTableColumn: {
|
|
448
440
|
queueStack: (_: any, fn: any) => any;
|
449
441
|
};
|
450
442
|
column: {
|
451
|
-
field:
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
443
|
+
field: any;
|
444
|
+
render: any;
|
445
|
+
fixed: boolean | "left" | "right";
|
446
|
+
sort: string | boolean | {
|
447
|
+
sortFn: any;
|
448
|
+
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
449
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
450
|
+
};
|
451
|
+
filter: string | boolean | {
|
452
|
+
list: any[] | (object & (() => any[]));
|
453
|
+
filterFn: any;
|
454
|
+
match: "full" | "fuzzy";
|
455
|
+
checked: any[] | (object & (() => any[]));
|
456
|
+
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
457
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
458
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
459
|
+
};
|
460
|
+
type: "none" | "selection" | "index" | "expand";
|
461
|
+
label: any;
|
462
|
+
width: string | number;
|
463
|
+
minWidth: string | number;
|
464
|
+
className: any;
|
465
|
+
align: "" | "left" | "center" | "right";
|
466
|
+
index: number;
|
467
|
+
columnKey: string;
|
468
|
+
showOverflowTooltip: boolean | {
|
458
469
|
content: string | Function;
|
459
470
|
disabled?: boolean;
|
460
471
|
watchCellResize?: boolean;
|
461
472
|
mode?: "auto" | "static";
|
462
473
|
};
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
sortFn?: Function;
|
468
|
-
sortScope?: string;
|
469
|
-
value?: string;
|
470
|
-
};
|
471
|
-
filter?: string | boolean | {
|
472
|
-
list?: any;
|
473
|
-
filterFn?: Function;
|
474
|
-
};
|
475
|
-
colspan?: Function | {
|
476
|
-
toString: (radix?: number) => string;
|
477
|
-
toFixed: (fractionDigits?: number) => string;
|
478
|
-
toExponential: (fractionDigits?: number) => string;
|
479
|
-
toPrecision: (precision?: number) => string;
|
480
|
-
valueOf: () => number;
|
481
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
482
|
-
};
|
483
|
-
rowspan?: Function | {
|
484
|
-
toString: (radix?: number) => string;
|
485
|
-
toFixed: (fractionDigits?: number) => string;
|
486
|
-
toExponential: (fractionDigits?: number) => string;
|
487
|
-
toPrecision: (precision?: number) => string;
|
488
|
-
valueOf: () => number;
|
489
|
-
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
490
|
-
};
|
491
|
-
className?: string | Function;
|
492
|
-
align?: string;
|
493
|
-
prop?: string | Function;
|
494
|
-
index?: number;
|
474
|
+
resizable: boolean;
|
475
|
+
colspan: any;
|
476
|
+
rowspan: any;
|
477
|
+
prop: any;
|
495
478
|
};
|
496
479
|
}, unknown, {}, {
|
497
480
|
updateColumnDefine(unmounted?: boolean): void;
|
@@ -508,6 +491,7 @@ declare const BkTableColumn: {
|
|
508
491
|
list: any[] | (object & (() => any[]));
|
509
492
|
filterFn: any;
|
510
493
|
match: "full" | "fuzzy";
|
494
|
+
checked: any[] | (object & (() => any[]));
|
511
495
|
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
512
496
|
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
513
497
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.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 t={};return(()=>{s.r(t),s.d(t,{default:()=>D});var e,o,p,r,n=s(4212),T=s(748);function f(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",e.HORIZONTAL="horizontal"}(p||(p={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var i,y,l=[r.AUTO,r.HIGHLIGHT];p.NONE,p.ROW,p.COL,p.OUTER,p.HORIZONTAL,function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(i||(i={})),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.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(y||(y={}));var u
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.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 t={};return(()=>{s.r(t),s.d(t,{default:()=>D});var e,o,p,r,n=s(4212),T=s(748);function f(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",e.HORIZONTAL="horizontal"}(p||(p={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var i,y,l=[r.AUTO,r.HIGHLIGHT];p.NONE,p.ROW,p.COL,p.OUTER,p.HORIZONTAL,function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(i||(i={})),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.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(y||(y={}));var d,u=function(){return!0};f(e={},y.COLUMN_PICK,u),f(e,y.COLUMN_FILTER,u),f(e,y.COLUMN_SORT,u),f(e,y.COLUMN_FILTER_SAVE,u),f(e,y.ROW_CLICK,u),f(e,y.ROW_DBL_CLICK,u),f(e,y.ROW_EXPAND_CLICK,u),f(e,y.ROW_SELECT,u),f(e,y.ROW_SELECT_ALL,u),f(e,y.ROW_SELECT_CHANGE,u),f(e,y.PAGE_LIMIT_CHANGE,u),f(e,y.PAGE_VALUE_CHANGE,u),f(e,y.SETTING_CHANGE,u),f(e,y.SCROLL_BOTTOM,u),f(e,y.CELL_CLICK,u),f(e,y.CELL_DBL_CLICK,u),f(o={},y.NATIVE_CLICK,u),f(o,y.NATIVE_DBL_CLICK,u),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={})),d.ASC,d.DESC,d.NULL,d.CUSTOM;var a,P,c=s(210);!function(e){e.CURRENT="current",e.ALL="all"}(a||(a={})),function(e){e.STATIC="static",e.AUTO="auto"}(P||(P={}));var O,C,L=(0,c.toType)("showOverflowTooltipMode",{default:P.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(O||(O={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(C||(C={}));var b,E=(0,c.toType)("columnType",{default:O.NONE}),_=(0,c.toType)("columnType",{default:C.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(b||(b={}));var h,m=(0,c.toType)("full",{default:b.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(h||(h={}));var g,v=(0,c.toType)("columnSize",{default:h.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(g||(g={}));var N,I,R=(0,c.string)(),S=(0,c.toType)("sortScope",{}).def(a.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(N||(N={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(I||(I={}));var A={label:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),field:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),render:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),width:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]),minWidth:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]).def(30),columnKey:n.PropTypes.string.def(""),showOverflowTooltip:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(void 0),type:E,resizable:n.PropTypes.bool.def(!0),fixed:n.PropTypes.oneOfType([n.PropTypes.bool,R]).def(!1),sort:n.PropTypes.oneOfType([n.PropTypes.shape({sortFn:n.PropTypes.func.def(void 0),sortScope:S,value:n.PropTypes.string.def(d.NULL)}),n.PropTypes.bool,n.PropTypes.string]).def(!1),filter:n.PropTypes.oneOfType([n.PropTypes.shape({list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterFn:n.PropTypes.func.def(void 0),match:m,checked:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterScope:S,btnSave:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("确定"),btnReset:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("重置")}),n.PropTypes.bool,n.PropTypes.string]).def(!1),colspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),rowspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),align:_,className:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func])};n.PropTypes.arrayOf(n.PropTypes.any).def([]),n.PropTypes.arrayOf(n.PropTypes.shape(A).loose).def([]),n.PropTypes.oneOfType([n.PropTypes.number.def(-1),n.PropTypes.arrayOf(n.PropTypes.number.def(-1))]),(0,c.toType)("columnPick",{}).def(N.DISABLED),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def(84),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.func]).def(42),n.PropTypes.number.def(42),n.PropTypes.bool.def(!0),n.PropTypes.shape({height:n.PropTypes.number.def(42),isShow:n.PropTypes.bool.def(!0),cellFn:n.PropTypes.func.def(void 0)}),n.PropTypes.bool.def(!1),n.PropTypes.oneOfType([n.PropTypes.arrayOf((0,c.toType)("boderType",{})),n.PropTypes.string]).def([p.ROW]),n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.object.def({})]).def(!1),n.PropTypes.number.def(60),n.PropTypes.bool.def(!1),n.PropTypes.string,n.PropTypes.oneOfType([n.PropTypes.shape({fields:n.PropTypes.arrayOf(n.PropTypes.shape({label:n.PropTypes.string,field:n.PropTypes.string,disabled:n.PropTypes.bool})),checked:n.PropTypes.arrayOf(n.PropTypes.string),limit:n.PropTypes.number.def(0),size:v,sizeList:n.PropTypes.shape([]),showLineHeight:n.PropTypes.bool.def(!0)}),n.PropTypes.bool]).def(!1),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.bool]).def(void 0),n.PropTypes.bool.def(!1),n.PropTypes.string.def(""),n.PropTypes.func.def(void 0),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func]).def("__$table_row_index"),n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(!1),n.PropTypes.bool.def(!1),n.PropTypes.oneOf(l).def(r.HIGHLIGHT),n.PropTypes.shape({}).def({}),n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return!0})),n.PropTypes.bool.def(!0)]).def(!0),(0,c.toType)("ResizerWay",{default:I.DEBOUNCE}),n.PropTypes.bool.def(!0);const U=(0,T.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},A),{prop:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),index:n.PropTypes.number.def(void 0)}),setup:function(e){return{initColumns:(0,T.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,T.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,T.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}))}},unmounted:function(){this.updateColumnDefine(!0)},mounted:function(){this.updateColumnDefine()},methods:{updateColumnDefine:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];void 0===this.$props.index||"number"!=typeof this.$props.index?this.updateColumnDefineByParent():this.updateColumnDefineByIndex(e)},updateColumnDefineByParent:function(){var e=this;"function"==typeof this.bkTableCache.queueStack&&this.bkTableCache.queueStack("Bk_COlumn_Update_Define",(function(){var o=e._.parent.vnode.children.default()||[],p=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var r,n,s,t=!0;if("TableColumn"===(null===(r=o.type)||void 0===r?void 0:r.name)){t=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(n=o.children)||void 0===n?void 0:n.default});p.push((0,T.unref)(f))}(null===(s=o.children)||void 0===s?void 0:s.length)&&t&&e(o.children)}))}(o),e.initColumns(p)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,T.unref)(o),e)}},render:function(){var e,o;return(0,T.createVNode)(T.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),D=(0,n.withInstall)(U)})(),t})()));
|