bkui-vue 0.0.2-beta.13 → 0.0.2-beta.14

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.
@@ -8,9 +8,9 @@ import { TablePropTypes } from './props';
8
8
  declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
9
9
  initColumns: (column: ITableColumn | ITableColumn[], remove?: boolean) => void;
10
10
  getColumns: () => import("./props").Column[] | Partial<import("vue").ExtractPropTypes<{
11
- label: import("vue-types").VueTypeDef<any>;
12
- field: import("vue-types").VueTypeDef<any>;
13
- render: import("vue-types").VueTypeDef<any>;
11
+ label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
12
+ field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
13
+ render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
14
14
  width: import("vue-types").VueTypeDef<string | number>;
15
15
  minWidth: import("vue-types").VueTypeDef<string | number> & {
16
16
  default: string | number;
@@ -43,11 +43,15 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
43
43
  filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape> & {
44
44
  default: string | boolean | (() => import("./props").IFilterShape);
45
45
  };
46
- colspan: import("vue-types").VueTypeDef<any>;
47
- rowspan: import("vue-types").VueTypeDef<any>;
46
+ colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
47
+ default: import("./props").SpanFunctionString;
48
+ };
49
+ rowspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
50
+ default: import("./props").SpanFunctionString;
51
+ };
48
52
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
49
- className: import("vue-types").VueTypeDef<any>;
50
- prop: import("vue-types").VueTypeDef<any>;
53
+ className: import("vue-types").VueTypeDef<import("./props").RowClassFunctionString>;
54
+ prop: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
51
55
  index: import("vue-types").VueTypeValidableDef<number> & {
52
56
  default: number;
53
57
  } & {
@@ -11,10 +11,12 @@ declare const BkTableColumn: {
11
11
  columnKey?: string;
12
12
  showOverflowTooltip?: import("../../table/src/props").IOverflowTooltipProp;
13
13
  resizable?: boolean;
14
- readonly render?: any;
14
+ colspan?: import("../../table/src/props").SpanFunctionString;
15
+ rowspan?: import("../../table/src/props").SpanFunctionString;
16
+ readonly render?: import("../../table/src/props").RenderFunctionString;
15
17
  readonly type?: "none" | "selection" | "index" | "expand";
16
18
  class?: unknown;
17
- readonly label?: any;
19
+ readonly label?: import("../../table/src/props").LabelFunctionString;
18
20
  style?: unknown;
19
21
  readonly width?: string | number;
20
22
  key?: string | number | symbol;
@@ -59,12 +61,10 @@ declare const BkTableColumn: {
59
61
  }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
62
  [key: string]: any;
61
63
  }>) => void)[];
62
- readonly className?: any;
64
+ readonly className?: import("../../table/src/props").RowClassFunctionString;
63
65
  readonly align?: "" | "right" | "left" | "center";
64
- readonly field?: any;
65
- readonly colspan?: any;
66
- readonly rowspan?: any;
67
- readonly prop?: any;
66
+ readonly field?: import("../../table/src/props").LabelFunctionString;
67
+ readonly prop?: import("../../table/src/props").LabelFunctionString;
68
68
  };
69
69
  $attrs: {
70
70
  [x: string]: unknown;
@@ -80,9 +80,9 @@ declare const BkTableColumn: {
80
80
  $emit: (event: string, ...args: any[]) => void;
81
81
  $el: any;
82
82
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
83
- label: import("vue-types").VueTypeDef<any>;
84
- field: import("vue-types").VueTypeDef<any>;
85
- render: import("vue-types").VueTypeDef<any>;
83
+ label: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
84
+ field: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
85
+ render: import("vue-types").VueTypeDef<import("../../table/src/props").RenderFunctionString>;
86
86
  width: import("vue-types").VueTypeDef<string | number>;
87
87
  minWidth: import("vue-types").VueTypeDef<string | number> & {
88
88
  default: string | number;
@@ -115,115 +115,27 @@ declare const BkTableColumn: {
115
115
  filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
116
116
  default: string | boolean | (() => import("../../table/src/props").IFilterShape);
117
117
  };
118
- colspan: import("vue-types").VueTypeDef<any>;
119
- rowspan: import("vue-types").VueTypeDef<any>;
118
+ colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
119
+ default: import("../../table/src/props").SpanFunctionString;
120
+ };
121
+ rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
122
+ default: import("../../table/src/props").SpanFunctionString;
123
+ };
120
124
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
121
- className: import("vue-types").VueTypeDef<any>;
122
- prop: import("vue-types").VueTypeDef<any>;
125
+ className: import("vue-types").VueTypeDef<import("../../table/src/props").RowClassFunctionString>;
126
+ prop: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
123
127
  index: import("vue-types").VueTypeValidableDef<number> & {
124
128
  default: number;
125
129
  } & {
126
130
  default: number;
127
131
  };
128
132
  }>>, {
129
- initColumns: (_col: Partial<import("vue").ExtractPropTypes<{
130
- label: import("vue-types").VueTypeDef<any>;
131
- field: import("vue-types").VueTypeDef<any>;
132
- render: import("vue-types").VueTypeDef<any>;
133
- width: import("vue-types").VueTypeDef<string | number>;
134
- minWidth: import("vue-types").VueTypeDef<string | number> & {
135
- default: string | number;
136
- };
137
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
138
- default: string;
139
- } & {
140
- default: string;
141
- };
142
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
143
- default: boolean | (() => {
144
- content: string | Function;
145
- disabled?: boolean;
146
- watchCellResize?: boolean;
147
- mode?: "auto" | "static";
148
- });
149
- };
150
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
151
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
152
- default: boolean;
153
- } & {
154
- default: boolean;
155
- };
156
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
157
- default: boolean | "right" | "left";
158
- };
159
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
160
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
161
- };
162
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
163
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
164
- };
165
- colspan: import("vue-types").VueTypeDef<any>;
166
- rowspan: import("vue-types").VueTypeDef<any>;
167
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
168
- className: import("vue-types").VueTypeDef<any>;
169
- prop: import("vue-types").VueTypeDef<any>;
170
- index: import("vue-types").VueTypeValidableDef<number> & {
171
- default: number;
172
- } & {
173
- default: number;
174
- };
175
- }>> | Partial<import("vue").ExtractPropTypes<{
176
- label: import("vue-types").VueTypeDef<any>;
177
- field: import("vue-types").VueTypeDef<any>;
178
- render: import("vue-types").VueTypeDef<any>;
179
- width: import("vue-types").VueTypeDef<string | number>;
180
- minWidth: import("vue-types").VueTypeDef<string | number> & {
181
- default: string | number;
182
- };
183
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
184
- default: string;
185
- } & {
186
- default: string;
187
- };
188
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
189
- default: boolean | (() => {
190
- content: string | Function;
191
- disabled?: boolean;
192
- watchCellResize?: boolean;
193
- mode?: "auto" | "static";
194
- });
195
- };
196
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
197
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
198
- default: boolean;
199
- } & {
200
- default: boolean;
201
- };
202
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
203
- default: boolean | "right" | "left";
204
- };
205
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
206
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
207
- };
208
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
209
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
210
- };
211
- colspan: import("vue-types").VueTypeDef<any>;
212
- rowspan: import("vue-types").VueTypeDef<any>;
213
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
214
- className: import("vue-types").VueTypeDef<any>;
215
- prop: import("vue-types").VueTypeDef<any>;
216
- index: import("vue-types").VueTypeValidableDef<number> & {
217
- default: number;
218
- } & {
219
- default: number;
220
- };
221
- }>>[], _rm?: boolean) => void;
133
+ initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
222
134
  bkTableCache: {
223
135
  queueStack: (_: any, fn: any) => any;
224
136
  };
225
137
  column: {
226
- field: any;
138
+ field: import("../../table/src/props").LabelFunctionString;
227
139
  sort?: string | boolean | {
228
140
  sortFn?: Function;
229
141
  sortScope?: import("../../table/src/props").SortScope;
@@ -249,15 +161,15 @@ declare const BkTableColumn: {
249
161
  mode?: "auto" | "static";
250
162
  };
251
163
  resizable?: boolean;
252
- render?: any;
164
+ colspan?: import("../../table/src/props").SpanFunctionString;
165
+ rowspan?: import("../../table/src/props").SpanFunctionString;
166
+ render?: import("../../table/src/props").RenderFunctionString;
253
167
  type?: "none" | "selection" | "index" | "expand";
254
- label?: any;
168
+ label?: import("../../table/src/props").LabelFunctionString;
255
169
  width?: string | number;
256
- className?: any;
170
+ className?: import("../../table/src/props").RowClassFunctionString;
257
171
  align?: "" | "right" | "left" | "center";
258
- colspan?: any;
259
- rowspan?: any;
260
- prop?: any;
172
+ prop?: import("../../table/src/props").LabelFunctionString;
261
173
  };
262
174
  }, unknown, {}, {
263
175
  updateColumnDefine(unmounted?: boolean): void;
@@ -272,6 +184,8 @@ declare const BkTableColumn: {
272
184
  columnKey: string;
273
185
  showOverflowTooltip: import("../../table/src/props").IOverflowTooltipProp;
274
186
  resizable: boolean;
187
+ colspan: import("../../table/src/props").SpanFunctionString;
188
+ rowspan: import("../../table/src/props").SpanFunctionString;
275
189
  }, {}, string, {}> & {
276
190
  beforeCreate?: (() => void) | (() => void)[];
277
191
  created?: (() => void) | (() => void)[];
@@ -293,9 +207,9 @@ declare const BkTableColumn: {
293
207
  $nextTick: typeof import("vue").nextTick;
294
208
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
295
209
  } & Readonly<import("vue").ExtractPropTypes<{
296
- label: import("vue-types").VueTypeDef<any>;
297
- field: import("vue-types").VueTypeDef<any>;
298
- render: import("vue-types").VueTypeDef<any>;
210
+ label: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
211
+ field: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
212
+ render: import("vue-types").VueTypeDef<import("../../table/src/props").RenderFunctionString>;
299
213
  width: import("vue-types").VueTypeDef<string | number>;
300
214
  minWidth: import("vue-types").VueTypeDef<string | number> & {
301
215
  default: string | number;
@@ -328,115 +242,27 @@ declare const BkTableColumn: {
328
242
  filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
329
243
  default: string | boolean | (() => import("../../table/src/props").IFilterShape);
330
244
  };
331
- colspan: import("vue-types").VueTypeDef<any>;
332
- rowspan: import("vue-types").VueTypeDef<any>;
245
+ colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
246
+ default: import("../../table/src/props").SpanFunctionString;
247
+ };
248
+ rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
249
+ default: import("../../table/src/props").SpanFunctionString;
250
+ };
333
251
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
334
- className: import("vue-types").VueTypeDef<any>;
335
- prop: import("vue-types").VueTypeDef<any>;
252
+ className: import("vue-types").VueTypeDef<import("../../table/src/props").RowClassFunctionString>;
253
+ prop: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
336
254
  index: import("vue-types").VueTypeValidableDef<number> & {
337
255
  default: number;
338
256
  } & {
339
257
  default: number;
340
258
  };
341
259
  }>> & import("vue").ShallowUnwrapRef<{
342
- initColumns: (_col: Partial<import("vue").ExtractPropTypes<{
343
- label: import("vue-types").VueTypeDef<any>;
344
- field: import("vue-types").VueTypeDef<any>;
345
- render: import("vue-types").VueTypeDef<any>;
346
- width: import("vue-types").VueTypeDef<string | number>;
347
- minWidth: import("vue-types").VueTypeDef<string | number> & {
348
- default: string | number;
349
- };
350
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
351
- default: string;
352
- } & {
353
- default: string;
354
- };
355
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
356
- default: boolean | (() => {
357
- content: string | Function;
358
- disabled?: boolean;
359
- watchCellResize?: boolean;
360
- mode?: "auto" | "static";
361
- });
362
- };
363
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
364
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
365
- default: boolean;
366
- } & {
367
- default: boolean;
368
- };
369
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
370
- default: boolean | "right" | "left";
371
- };
372
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
373
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
374
- };
375
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
376
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
377
- };
378
- colspan: import("vue-types").VueTypeDef<any>;
379
- rowspan: import("vue-types").VueTypeDef<any>;
380
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
381
- className: import("vue-types").VueTypeDef<any>;
382
- prop: import("vue-types").VueTypeDef<any>;
383
- index: import("vue-types").VueTypeValidableDef<number> & {
384
- default: number;
385
- } & {
386
- default: number;
387
- };
388
- }>> | Partial<import("vue").ExtractPropTypes<{
389
- label: import("vue-types").VueTypeDef<any>;
390
- field: import("vue-types").VueTypeDef<any>;
391
- render: import("vue-types").VueTypeDef<any>;
392
- width: import("vue-types").VueTypeDef<string | number>;
393
- minWidth: import("vue-types").VueTypeDef<string | number> & {
394
- default: string | number;
395
- };
396
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
397
- default: string;
398
- } & {
399
- default: string;
400
- };
401
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
402
- default: boolean | (() => {
403
- content: string | Function;
404
- disabled?: boolean;
405
- watchCellResize?: boolean;
406
- mode?: "auto" | "static";
407
- });
408
- };
409
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
410
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
411
- default: boolean;
412
- } & {
413
- default: boolean;
414
- };
415
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
416
- default: boolean | "right" | "left";
417
- };
418
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
419
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
420
- };
421
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
422
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
423
- };
424
- colspan: import("vue-types").VueTypeDef<any>;
425
- rowspan: import("vue-types").VueTypeDef<any>;
426
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
427
- className: import("vue-types").VueTypeDef<any>;
428
- prop: import("vue-types").VueTypeDef<any>;
429
- index: import("vue-types").VueTypeValidableDef<number> & {
430
- default: number;
431
- } & {
432
- default: number;
433
- };
434
- }>>[], _rm?: boolean) => void;
260
+ initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
435
261
  bkTableCache: {
436
262
  queueStack: (_: any, fn: any) => any;
437
263
  };
438
264
  column: {
439
- field: any;
265
+ field: import("../../table/src/props").LabelFunctionString;
440
266
  sort?: string | boolean | {
441
267
  sortFn?: Function;
442
268
  sortScope?: import("../../table/src/props").SortScope;
@@ -462,15 +288,15 @@ declare const BkTableColumn: {
462
288
  mode?: "auto" | "static";
463
289
  };
464
290
  resizable?: boolean;
465
- render?: any;
291
+ colspan?: import("../../table/src/props").SpanFunctionString;
292
+ rowspan?: import("../../table/src/props").SpanFunctionString;
293
+ render?: import("../../table/src/props").RenderFunctionString;
466
294
  type?: "none" | "selection" | "index" | "expand";
467
- label?: any;
295
+ label?: import("../../table/src/props").LabelFunctionString;
468
296
  width?: string | number;
469
- className?: any;
297
+ className?: import("../../table/src/props").RowClassFunctionString;
470
298
  align?: "" | "right" | "left" | "center";
471
- colspan?: any;
472
- rowspan?: any;
473
- prop?: any;
299
+ prop?: import("../../table/src/props").LabelFunctionString;
474
300
  };
475
301
  }> & {} & {
476
302
  updateColumnDefine(unmounted?: boolean): void;
@@ -481,9 +307,9 @@ declare const BkTableColumn: {
481
307
  __isTeleport?: never;
482
308
  __isSuspense?: never;
483
309
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
484
- label: import("vue-types").VueTypeDef<any>;
485
- field: import("vue-types").VueTypeDef<any>;
486
- render: import("vue-types").VueTypeDef<any>;
310
+ label: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
311
+ field: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
312
+ render: import("vue-types").VueTypeDef<import("../../table/src/props").RenderFunctionString>;
487
313
  width: import("vue-types").VueTypeDef<string | number>;
488
314
  minWidth: import("vue-types").VueTypeDef<string | number> & {
489
315
  default: string | number;
@@ -516,115 +342,27 @@ declare const BkTableColumn: {
516
342
  filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
517
343
  default: string | boolean | (() => import("../../table/src/props").IFilterShape);
518
344
  };
519
- colspan: import("vue-types").VueTypeDef<any>;
520
- rowspan: import("vue-types").VueTypeDef<any>;
345
+ colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
346
+ default: import("../../table/src/props").SpanFunctionString;
347
+ };
348
+ rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
349
+ default: import("../../table/src/props").SpanFunctionString;
350
+ };
521
351
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
522
- className: import("vue-types").VueTypeDef<any>;
523
- prop: import("vue-types").VueTypeDef<any>;
352
+ className: import("vue-types").VueTypeDef<import("../../table/src/props").RowClassFunctionString>;
353
+ prop: import("vue-types").VueTypeDef<import("../../table/src/props").LabelFunctionString>;
524
354
  index: import("vue-types").VueTypeValidableDef<number> & {
525
355
  default: number;
526
356
  } & {
527
357
  default: number;
528
358
  };
529
359
  }>>, {
530
- initColumns: (_col: Partial<import("vue").ExtractPropTypes<{
531
- label: import("vue-types").VueTypeDef<any>;
532
- field: import("vue-types").VueTypeDef<any>;
533
- render: import("vue-types").VueTypeDef<any>;
534
- width: import("vue-types").VueTypeDef<string | number>;
535
- minWidth: import("vue-types").VueTypeDef<string | number> & {
536
- default: string | number;
537
- };
538
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
539
- default: string;
540
- } & {
541
- default: string;
542
- };
543
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
544
- default: boolean | (() => {
545
- content: string | Function;
546
- disabled?: boolean;
547
- watchCellResize?: boolean;
548
- mode?: "auto" | "static";
549
- });
550
- };
551
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
552
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
553
- default: boolean;
554
- } & {
555
- default: boolean;
556
- };
557
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
558
- default: boolean | "right" | "left";
559
- };
560
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
561
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
562
- };
563
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
564
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
565
- };
566
- colspan: import("vue-types").VueTypeDef<any>;
567
- rowspan: import("vue-types").VueTypeDef<any>;
568
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
569
- className: import("vue-types").VueTypeDef<any>;
570
- prop: import("vue-types").VueTypeDef<any>;
571
- index: import("vue-types").VueTypeValidableDef<number> & {
572
- default: number;
573
- } & {
574
- default: number;
575
- };
576
- }>> | Partial<import("vue").ExtractPropTypes<{
577
- label: import("vue-types").VueTypeDef<any>;
578
- field: import("vue-types").VueTypeDef<any>;
579
- render: import("vue-types").VueTypeDef<any>;
580
- width: import("vue-types").VueTypeDef<string | number>;
581
- minWidth: import("vue-types").VueTypeDef<string | number> & {
582
- default: string | number;
583
- };
584
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
585
- default: string;
586
- } & {
587
- default: string;
588
- };
589
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp> & {
590
- default: boolean | (() => {
591
- content: string | Function;
592
- disabled?: boolean;
593
- watchCellResize?: boolean;
594
- mode?: "auto" | "static";
595
- });
596
- };
597
- type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
598
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
599
- default: boolean;
600
- } & {
601
- default: boolean;
602
- };
603
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
604
- default: boolean | "right" | "left";
605
- };
606
- sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape> & {
607
- default: string | boolean | (() => import("../../table/src/props").ISortShape);
608
- };
609
- filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
610
- default: string | boolean | (() => import("../../table/src/props").IFilterShape);
611
- };
612
- colspan: import("vue-types").VueTypeDef<any>;
613
- rowspan: import("vue-types").VueTypeDef<any>;
614
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
615
- className: import("vue-types").VueTypeDef<any>;
616
- prop: import("vue-types").VueTypeDef<any>;
617
- index: import("vue-types").VueTypeValidableDef<number> & {
618
- default: number;
619
- } & {
620
- default: number;
621
- };
622
- }>>[], _rm?: boolean) => void;
360
+ initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
623
361
  bkTableCache: {
624
362
  queueStack: (_: any, fn: any) => any;
625
363
  };
626
364
  column: {
627
- field: any;
365
+ field: import("../../table/src/props").LabelFunctionString;
628
366
  sort?: string | boolean | {
629
367
  sortFn?: Function;
630
368
  sortScope?: import("../../table/src/props").SortScope;
@@ -650,15 +388,15 @@ declare const BkTableColumn: {
650
388
  mode?: "auto" | "static";
651
389
  };
652
390
  resizable?: boolean;
653
- render?: any;
391
+ colspan?: import("../../table/src/props").SpanFunctionString;
392
+ rowspan?: import("../../table/src/props").SpanFunctionString;
393
+ render?: import("../../table/src/props").RenderFunctionString;
654
394
  type?: "none" | "selection" | "index" | "expand";
655
- label?: any;
395
+ label?: import("../../table/src/props").LabelFunctionString;
656
396
  width?: string | number;
657
- className?: any;
397
+ className?: import("../../table/src/props").RowClassFunctionString;
658
398
  align?: "" | "right" | "left" | "center";
659
- colspan?: any;
660
- rowspan?: any;
661
- prop?: any;
399
+ prop?: import("../../table/src/props").LabelFunctionString;
662
400
  };
663
401
  }, unknown, {}, {
664
402
  updateColumnDefine(unmounted?: boolean): void;
@@ -673,5 +411,7 @@ declare const BkTableColumn: {
673
411
  columnKey: string;
674
412
  showOverflowTooltip: import("../../table/src/props").IOverflowTooltipProp;
675
413
  resizable: boolean;
414
+ colspan: import("../../table/src/props").SpanFunctionString;
415
+ rowspan: import("../../table/src/props").SpanFunctionString;
676
416
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
677
417
  export default BkTableColumn;
@@ -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 r="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var p in r)("object"==typeof exports?exports:e)[p]=r[p]}}(self,((e,o,r)=>(()=>{"use strict";var p={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=r}},n={};function t(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return p[e](r,r.exports,t),r.exports}t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return(()=>{t.r(f),t.d(f,{default:()=>A});var e,o,r,p=t(4212),n=t(748);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function i(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var p=r.call(e,"string");if("object"!==s(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var y,u,T=[r.AUTO,r.HIGHLIGHT];o.NONE,o.ROW,o.COL,o.OUTER,o.HORIZONTAL,function(e){e.DEF1="def1",e.DEF2="def2"}(y||(y={})),i(e={},y.DEF1,"#FAFBFD"),i(e,y.DEF2,"#F0F1F5"),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(u||(u={})),u.ASC,u.DESC,u.NULL,u.CUSTOM;var d,l,a,c,P=t(210);!function(e){e.CURRENT="current",e.ALL="all"}(d||(d={})),function(e){e.STATIC="static",e.AUTO="auto"}(l||(l={})),(0,P.toType)("showOverflowTooltipMode",{default:l.AUTO}),function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(a||(a={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(c||(c={}));var b,O,m,v=(0,P.toType)("columnType",{default:a.NONE}),h=(0,P.toType)("columnType",{default:c.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(b||(b={})),(0,P.toType)("full",{default:b.FULL}),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(O||(O={})),(0,P.toType)("columnSize",{default:O.SMALL}),function(e){e.LEFT="left",e.RIGHT="right"}(m||(m={}));var g,C,E=(0,P.string)(),S=(0,P.toType)("IOverflowTooltipPropType",{}).def(!1),I=((0,P.toType)("IOverflowTooltipType",{}).def({content:"",disabled:!1,watchCellResize:!0,mode:l.AUTO}),(0,P.toType)("ISortPropShape",{}).def(!1)),L=(0,P.toType)("IFilterPropShape",{}).def(!1);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(g||(g={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(C||(C={}));var j=(0,P.toType)("IColumnType",{}),N=((0,P.toType)("ITableSettingPropType",{}).def(!1),(0,P.toType)("IColumnPropType",{}).def({label:void 0,minWidth:80}),p.PropTypes.arrayOf(p.PropTypes.any).def([]),p.PropTypes.arrayOf(j).def([]),p.PropTypes.oneOfType([p.PropTypes.number.def(-1),p.PropTypes.arrayOf(p.PropTypes.number.def(-1))]),(0,P.toType)("columnPick",{}).def(g.DISABLED),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def("auto"),p.PropTypes.bool.def(!1),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),(0,P.toType)("ITheadType",{}).def({color:y.DEF1,height:42,isShow:!0}),p.PropTypes.bool.def(!1),p.PropTypes.oneOfType([p.PropTypes.arrayOf((0,P.toType)("boderType",{})),p.PropTypes.string]).def([o.ROW]),p.PropTypes.oneOfType([p.PropTypes.bool.def(!1),p.PropTypes.object.def({})]).def(!1),p.PropTypes.number.def(60),p.PropTypes.bool.def(!1),p.PropTypes.string,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.string.def(""),p.PropTypes.func.def(void 0),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.func]).def("__$table_row_index"),p.PropTypes.bool.def(!1),p.PropTypes.oneOf(T).def(r.HIGHLIGHT),p.PropTypes.shape({}).def({}),p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return!0})),p.PropTypes.bool.def(!0)]).def(!0),(0,P.toType)("ResizerWay",{default:C.DEBOUNCE}),p.PropTypes.bool.def(!0),p.PropTypes.style().def({}),{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(30),columnKey:p.PropTypes.string.def(""),showOverflowTooltip:S,type:v,resizable:p.PropTypes.bool.def(!0),fixed:p.PropTypes.oneOfType([p.PropTypes.bool,E]).def(!1),sort:I,filter:L,colspan:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return 1})),p.PropTypes.number.def(1)]),rowspan:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return 1})),p.PropTypes.number.def(1)]),align:h,className:p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.func]),prop:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),index:p.PropTypes.number.def(void 0)});const D=(0,n.defineComponent)({name:"TableColumn",props:N,setup:function(e){return{initColumns:(0,n.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,n.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,n.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()||[],r=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var p,t,f;if(Array.isArray(o))e(o);else{var s=!0;if("TableColumn"===(null===(p=o.type)||void 0===p?void 0:p.name)){s=Object.hasOwnProperty.call(o.props||{},"key");var i=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(t=o.children)||void 0===t?void 0:t.default});r.push((0,n.unref)(i))}(null===(f=o.children)||void 0===f?void 0:f.length)&&s&&e(o.children)}}))}(o),e.initColumns(r)}))},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,n.unref)(o),e)}},render:function(){var e,o;return(0,n.createVNode)(n.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),A=(0,p.withInstall)(D)})(),f})()));
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 r="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o,r)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=r}},n={};function p(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,p),r.exports}p.d=(e,o)=>{for(var r in o)p.o(o,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},p.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{p.r(i),p.d(i,{default:()=>H});var e,o,r,t=p(4212),n=p(748);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function u(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==f(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var s,y,l=[r.AUTO,r.HIGHLIGHT];o.NONE,o.ROW,o.COL,o.OUTER,o.HORIZONTAL,function(e){e.DEF1="def1",e.DEF2="def2"}(s||(s={})),u(e={},s.DEF1,"#FAFBFD"),u(e,s.DEF2,"#F0F1F5"),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(y||(y={})),y.ASC,y.DESC,y.NULL,y.CUSTOM;var d,T,a,c,b=p(210);!function(e){e.CURRENT="current",e.ALL="all"}(d||(d={})),function(e){e.STATIC="static",e.AUTO="auto"}(T||(T={})),(0,b.toType)("showOverflowTooltipMode",{default:T.AUTO}),function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(a||(a={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(c||(c={}));var P,m,O,v=(0,b.toType)("columnType",{default:a.NONE}),h=(0,b.toType)("columnType",{default:c.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(P||(P={})),(0,b.toType)("full",{default:P.FULL}),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(m||(m={})),(0,b.toType)("columnSize",{default:m.SMALL}),function(e){e.LEFT="left",e.RIGHT="right"}(O||(O={}));var g,S,C=(0,b.string)(),E=(0,b.toType)("IOverflowTooltipPropType",{}).def(!1),L=((0,b.toType)("IOverflowTooltipType",{}).def({content:"",disabled:!1,watchCellResize:!0,mode:T.AUTO}),(0,b.toType)("ISortPropShape",{}).def(!1)),I=(0,b.toType)("IFilterPropShape",{}).def(!1);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(g||(g={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(S||(S={}));var N=(0,b.toType)("IColumnType",{}).def({width:"100%",label:function(){return""}}),j=((0,b.toType)("ITableSettingPropType",{}).def(!1),(0,b.toType)("LabelFunctionStringType",{})),D=(0,b.toType)("RenderFunctionStringType",{}),F=(0,b.toType)("SpanFunctionStringType",{}),w=(0,b.toType)("RowClassFunctionStringType",{}),A=(0,b.toType)("RowHeightFunctionNumberType",{}),x=((0,b.toType)("FunctionNumberType",{}),(0,b.toType)("StringNumberType",{})),U=((0,b.toType)("IColumnPropType",{}).def({label:void 0,minWidth:30}),t.PropTypes.arrayOf(t.PropTypes.any).def([]),t.PropTypes.arrayOf(N).def([]),t.PropTypes.oneOfType([t.PropTypes.number.def(-1),t.PropTypes.arrayOf(t.PropTypes.number.def(-1))]),(0,b.toType)("columnPick",{}).def(g.DISABLED),x.def("auto"),t.PropTypes.bool.def(!1),x.def(84),x.def("auto"),A.def((function(){return 42})),t.PropTypes.number.def(42),t.PropTypes.bool.def(!0),(0,b.toType)("ITheadType",{}).def({color:s.DEF1,height:42,isShow:!0}),t.PropTypes.bool.def(!1),t.PropTypes.oneOfType([t.PropTypes.arrayOf((0,b.toType)("boderType",{})),t.PropTypes.string]).def([o.ROW]),t.PropTypes.oneOfType([t.PropTypes.bool.def(!1),t.PropTypes.object.def({})]).def(!1),t.PropTypes.number.def(60),t.PropTypes.bool.def(!1),t.PropTypes.string,t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.object,t.PropTypes.func]).def({}),t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.object,t.PropTypes.func]).def({}),t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.object,t.PropTypes.func]).def({}),t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.object,t.PropTypes.func]).def({}),t.PropTypes.oneOfType([t.PropTypes.object,t.PropTypes.bool]).def(void 0),t.PropTypes.bool.def(!1),t.PropTypes.string.def(""),t.PropTypes.func.def(void 0),t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.func]).def("__$table_row_index"),t.PropTypes.bool.def(!1),t.PropTypes.oneOf(l).def(r.HIGHLIGHT),t.PropTypes.shape({}).def({}),t.PropTypes.oneOfType([t.PropTypes.func.def((function(){return!0})),t.PropTypes.bool.def(!0)]).def(!0),(0,b.toType)("ResizerWay",{default:S.DEBOUNCE}),t.PropTypes.bool.def(!0),t.PropTypes.style().def({}),{label:j,field:j,render:D,width:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),minWidth:x.def(30),columnKey:t.PropTypes.string.def(""),showOverflowTooltip:E,type:v,resizable:t.PropTypes.bool.def(!0),fixed:t.PropTypes.oneOfType([t.PropTypes.bool,C]).def(!1),sort:L,filter:I,colspan:F.def((function(){return 1})),rowspan:F.def((function(){return 1})),align:h,className:w,prop:j,index:t.PropTypes.number.def(void 0)});const R=(0,n.defineComponent)({name:"TableColumn",props:U,setup:function(e){return{initColumns:(0,n.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,n.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,n.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()||[],r=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var t,p,i;if(Array.isArray(o))e(o);else{var f=!0;if("TableColumn"===(null===(t=o.type)||void 0===t?void 0:t.name)){f=Object.hasOwnProperty.call(o.props||{},"key");var u=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(p=o.children)||void 0===p?void 0:p.default});r.push((0,n.unref)(u))}(null===(i=o.children)||void 0===i?void 0:i.length)&&f&&e(o.children)}}))}(o),e.initColumns(r)}))},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,n.unref)(o),e)}},render:function(){var e,o;return(0,n.createVNode)(n.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),H=(0,t.withInstall)(R)})(),i})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.13",
3
+ "version": "0.0.2-beta.14",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",