bkui-vue 1.0.3-beta.68.dialog.1 → 1.0.3-beta.68.dialog.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Column, TablePropTypes } from '../props';
1
+ import { TablePropTypes } from '../props';
2
2
  /**
3
3
  * 处理Props中的ActiveColumn,解析为统一的数组格式
4
4
  * @param props
@@ -10,7 +10,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
10
10
  * @param props
11
11
  * @returns
12
12
  */
13
- declare const _default: (props: TablePropTypes, targetColumns: Column[]) => {
13
+ declare const _default: (props: TablePropTypes) => {
14
14
  activeColumns: any[];
15
15
  };
16
16
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { ComponentInternalInstance } from 'vue';
2
+ declare const _default: () => {
3
+ resolveColumns: (instance: ComponentInternalInstance) => any[];
4
+ setNodeInstanceId: (column: any, uniqueId: string) => void;
5
+ columns: any[];
6
+ };
7
+ export default _default;
@@ -1,13 +1,12 @@
1
- import { ITableColumn } from './components/table-column';
2
1
  import { SORT_OPTION } from './const';
3
- import { Column, TablePropTypes } from './props';
2
+ import { TablePropTypes } from './props';
4
3
  /**
5
4
  * 渲染column settings
6
5
  * @param props: TablePropTypes
7
6
  * @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
8
7
  */
9
- declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
10
- initColumns: (column: ITableColumn[], remove?: boolean) => void;
8
+ declare const _default: (props: TablePropTypes) => {
9
+ initColumns: (tableInstance: any) => void;
11
10
  getColumns: () => {
12
11
  label: import("./props").LabelFunctionString;
13
12
  field?: import("./props").LabelFunctionString;
@@ -17,8 +16,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
17
16
  minWidth?: string | number;
18
17
  columnKey?: string;
19
18
  showOverflowTooltip?: boolean | {
20
- content: string | ((col: Column, row: any) => string);
21
- disabled?: boolean | ((col: Column, row: any) => boolean);
19
+ content: string | ((col: import("./props").Column, row: any) => string);
20
+ disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
22
21
  watchCellResize?: boolean;
23
22
  mode?: "auto" | "static";
24
23
  popoverOption?: any;
@@ -105,8 +104,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
105
104
  minWidth?: string | number;
106
105
  columnKey?: string;
107
106
  showOverflowTooltip?: boolean | {
108
- content: string | ((col: Column, row: any) => string);
109
- disabled?: boolean | ((col: Column, row: any) => boolean);
107
+ content: string | ((col: import("./props").Column, row: any) => string);
108
+ disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
110
109
  watchCellResize?: boolean;
111
110
  mode?: "auto" | "static";
112
111
  popoverOption?: any;
@@ -193,8 +192,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
193
192
  minWidth?: string | number;
194
193
  columnKey?: string;
195
194
  showOverflowTooltip?: boolean | {
196
- content: string | ((col: Column, row: any) => string);
197
- disabled?: boolean | ((col: Column, row: any) => boolean);
195
+ content: string | ((col: import("./props").Column, row: any) => string);
196
+ disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
198
197
  watchCellResize?: boolean;
199
198
  mode?: "auto" | "static";
200
199
  popoverOption?: any;
@@ -9,7 +9,7 @@ import { ITableResponse } from './use-attributes';
9
9
  * @param TableSchema 组件内部定义的响应式对象
10
10
  * @param pageData 当前页数据
11
11
  */
12
- export declare const useClass: (props: TablePropTypes, targetColumns: ITableColumn[], root?: any, TableSchema?: ITableResponse, pageData?: any[]) => {
12
+ export declare const useClass: (props: TablePropTypes, _targetColumns: ITableColumn[], root?: any, TableSchema?: ITableResponse, pageData?: any[]) => {
13
13
  tableClass: import("vue").ComputedRef<string>;
14
14
  headClass: string;
15
15
  contentClass: {
@@ -48,24 +48,7 @@ declare const BkTableColumn: {
48
48
  } & {
49
49
  default: number;
50
50
  };
51
- uniqueId: import("vue-types").VueTypeValidableDef<{
52
- [key: string]: any;
53
- }> & {
54
- default: () => {
55
- [key: string]: any;
56
- };
57
- } & {
58
- default: () => {
59
- [key: string]: any;
60
- };
61
- };
62
51
  }>>, {
63
- isIndexPropChanged: import("vue").Ref<boolean>;
64
- setIsIndexChanged: (val: boolean) => void;
65
- initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
66
- bkTableCache: {
67
- queueStack: (_: any, fn: any) => any;
68
- };
69
52
  column: {
70
53
  fixed?: boolean | "right" | "left";
71
54
  resizable?: boolean;
@@ -104,9 +87,6 @@ declare const BkTableColumn: {
104
87
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
105
88
  };
106
89
  };
107
- uniqueId?: {
108
- [key: string]: any;
109
- };
110
90
  render?: import("../table/props").RenderFunctionString;
111
91
  sort?: string | boolean | {
112
92
  sortFn?: Function;
@@ -141,77 +121,7 @@ declare const BkTableColumn: {
141
121
  field: import("../table/props").LabelFunctionString;
142
122
  prop?: import("../table/props").LabelFunctionString;
143
123
  };
144
- }, unknown, {}, {
145
- updateColumnDefine(unmounted?: boolean): void;
146
- copyProps(props: Partial<import("vue").ExtractPropTypes<{
147
- label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
148
- field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
149
- render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
150
- width: import("vue-types").VueTypeDef<string | number>;
151
- minWidth: import("vue-types").VueTypeDef<string | number> & {
152
- default: string | number;
153
- };
154
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
155
- default: string;
156
- } & {
157
- default: string;
158
- };
159
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
160
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
161
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
162
- default: boolean;
163
- } & {
164
- default: boolean;
165
- };
166
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
167
- default: boolean | "right" | "left";
168
- };
169
- sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
170
- filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
171
- colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
172
- default: (({ column, colIndex, row, rowIndex }: {
173
- column: any;
174
- colIndex: any;
175
- row: any;
176
- rowIndex: any;
177
- }) => number) | (() => Number);
178
- };
179
- rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
180
- default: (({ column, colIndex, row, rowIndex }: {
181
- column: any;
182
- colIndex: any;
183
- row: any;
184
- rowIndex: any;
185
- }) => number) | (() => Number);
186
- };
187
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
188
- className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
189
- prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
190
- index: import("vue-types").VueTypeValidableDef<number> & {
191
- default: number;
192
- } & {
193
- default: number;
194
- };
195
- uniqueId: import("vue-types").VueTypeValidableDef<{
196
- [key: string]: any;
197
- }> & {
198
- default: () => {
199
- [key: string]: any;
200
- };
201
- } & {
202
- default: () => {
203
- [key: string]: any;
204
- };
205
- };
206
- }>> | {
207
- [key: string]: any;
208
- }): {};
209
- rsolveIndexedColumn(): boolean;
210
- setNodeUid(): void;
211
- getNodeCtxUid(ctx: any): any;
212
- updateColumnDefineByParent(): void;
213
- unmountColumn(): void;
214
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
124
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
215
125
  label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
216
126
  field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
217
127
  render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
@@ -260,17 +170,6 @@ declare const BkTableColumn: {
260
170
  } & {
261
171
  default: number;
262
172
  };
263
- uniqueId: import("vue-types").VueTypeValidableDef<{
264
- [key: string]: any;
265
- }> & {
266
- default: () => {
267
- [key: string]: any;
268
- };
269
- } & {
270
- default: () => {
271
- [key: string]: any;
272
- };
273
- };
274
173
  }>>, {
275
174
  fixed: boolean | "right" | "left";
276
175
  resizable: boolean;
@@ -279,9 +178,6 @@ declare const BkTableColumn: {
279
178
  columnKey: string;
280
179
  colspan: import("../table/props").SpanFunctionString;
281
180
  rowspan: import("../table/props").SpanFunctionString;
282
- uniqueId: {
283
- [key: string]: any;
284
- };
285
181
  }, true, {}, {}, {
286
182
  P: {};
287
183
  B: {};
@@ -338,24 +234,7 @@ declare const BkTableColumn: {
338
234
  } & {
339
235
  default: number;
340
236
  };
341
- uniqueId: import("vue-types").VueTypeValidableDef<{
342
- [key: string]: any;
343
- }> & {
344
- default: () => {
345
- [key: string]: any;
346
- };
347
- } & {
348
- default: () => {
349
- [key: string]: any;
350
- };
351
- };
352
237
  }>>, {
353
- isIndexPropChanged: import("vue").Ref<boolean>;
354
- setIsIndexChanged: (val: boolean) => void;
355
- initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
356
- bkTableCache: {
357
- queueStack: (_: any, fn: any) => any;
358
- };
359
238
  column: {
360
239
  fixed?: boolean | "right" | "left";
361
240
  resizable?: boolean;
@@ -394,9 +273,6 @@ declare const BkTableColumn: {
394
273
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
395
274
  };
396
275
  };
397
- uniqueId?: {
398
- [key: string]: any;
399
- };
400
276
  render?: import("../table/props").RenderFunctionString;
401
277
  sort?: string | boolean | {
402
278
  sortFn?: Function;
@@ -431,77 +307,7 @@ declare const BkTableColumn: {
431
307
  field: import("../table/props").LabelFunctionString;
432
308
  prop?: import("../table/props").LabelFunctionString;
433
309
  };
434
- }, {}, {}, {
435
- updateColumnDefine(unmounted?: boolean): void;
436
- copyProps(props: Partial<import("vue").ExtractPropTypes<{
437
- label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
438
- field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
439
- render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
440
- width: import("vue-types").VueTypeDef<string | number>;
441
- minWidth: import("vue-types").VueTypeDef<string | number> & {
442
- default: string | number;
443
- };
444
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
445
- default: string;
446
- } & {
447
- default: string;
448
- };
449
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
450
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
451
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
452
- default: boolean;
453
- } & {
454
- default: boolean;
455
- };
456
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
457
- default: boolean | "right" | "left";
458
- };
459
- sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
460
- filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
461
- colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
462
- default: (({ column, colIndex, row, rowIndex }: {
463
- column: any;
464
- colIndex: any;
465
- row: any;
466
- rowIndex: any;
467
- }) => number) | (() => Number);
468
- };
469
- rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
470
- default: (({ column, colIndex, row, rowIndex }: {
471
- column: any;
472
- colIndex: any;
473
- row: any;
474
- rowIndex: any;
475
- }) => number) | (() => Number);
476
- };
477
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
478
- className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
479
- prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
480
- index: import("vue-types").VueTypeValidableDef<number> & {
481
- default: number;
482
- } & {
483
- default: number;
484
- };
485
- uniqueId: import("vue-types").VueTypeValidableDef<{
486
- [key: string]: any;
487
- }> & {
488
- default: () => {
489
- [key: string]: any;
490
- };
491
- } & {
492
- default: () => {
493
- [key: string]: any;
494
- };
495
- };
496
- }>> | {
497
- [key: string]: any;
498
- }): {};
499
- rsolveIndexedColumn(): boolean;
500
- setNodeUid(): void;
501
- getNodeCtxUid(ctx: any): any;
502
- updateColumnDefineByParent(): void;
503
- unmountColumn(): void;
504
- }, {
310
+ }, {}, {}, {}, {
505
311
  fixed: boolean | "right" | "left";
506
312
  resizable: boolean;
507
313
  minWidth: string | number;
@@ -509,9 +315,6 @@ declare const BkTableColumn: {
509
315
  columnKey: string;
510
316
  colspan: import("../table/props").SpanFunctionString;
511
317
  rowspan: import("../table/props").SpanFunctionString;
512
- uniqueId: {
513
- [key: string]: any;
514
- };
515
318
  }>;
516
319
  __isFragment?: never;
517
320
  __isTeleport?: never;
@@ -565,24 +368,7 @@ declare const BkTableColumn: {
565
368
  } & {
566
369
  default: number;
567
370
  };
568
- uniqueId: import("vue-types").VueTypeValidableDef<{
569
- [key: string]: any;
570
- }> & {
571
- default: () => {
572
- [key: string]: any;
573
- };
574
- } & {
575
- default: () => {
576
- [key: string]: any;
577
- };
578
- };
579
371
  }>>, {
580
- isIndexPropChanged: import("vue").Ref<boolean>;
581
- setIsIndexChanged: (val: boolean) => void;
582
- initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
583
- bkTableCache: {
584
- queueStack: (_: any, fn: any) => any;
585
- };
586
372
  column: {
587
373
  fixed?: boolean | "right" | "left";
588
374
  resizable?: boolean;
@@ -621,9 +407,6 @@ declare const BkTableColumn: {
621
407
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
622
408
  };
623
409
  };
624
- uniqueId?: {
625
- [key: string]: any;
626
- };
627
410
  render?: import("../table/props").RenderFunctionString;
628
411
  sort?: string | boolean | {
629
412
  sortFn?: Function;
@@ -658,77 +441,7 @@ declare const BkTableColumn: {
658
441
  field: import("../table/props").LabelFunctionString;
659
442
  prop?: import("../table/props").LabelFunctionString;
660
443
  };
661
- }, unknown, {}, {
662
- updateColumnDefine(unmounted?: boolean): void;
663
- copyProps(props: Partial<import("vue").ExtractPropTypes<{
664
- label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
665
- field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
666
- render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
667
- width: import("vue-types").VueTypeDef<string | number>;
668
- minWidth: import("vue-types").VueTypeDef<string | number> & {
669
- default: string | number;
670
- };
671
- columnKey: import("vue-types").VueTypeValidableDef<string> & {
672
- default: string;
673
- } & {
674
- default: string;
675
- };
676
- showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
677
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
678
- resizable: import("vue-types").VueTypeValidableDef<boolean> & {
679
- default: boolean;
680
- } & {
681
- default: boolean;
682
- };
683
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
684
- default: boolean | "right" | "left";
685
- };
686
- sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
687
- filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
688
- colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
689
- default: (({ column, colIndex, row, rowIndex }: {
690
- column: any;
691
- colIndex: any;
692
- row: any;
693
- rowIndex: any;
694
- }) => number) | (() => Number);
695
- };
696
- rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
697
- default: (({ column, colIndex, row, rowIndex }: {
698
- column: any;
699
- colIndex: any;
700
- row: any;
701
- rowIndex: any;
702
- }) => number) | (() => Number);
703
- };
704
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
705
- className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
706
- prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
707
- index: import("vue-types").VueTypeValidableDef<number> & {
708
- default: number;
709
- } & {
710
- default: number;
711
- };
712
- uniqueId: import("vue-types").VueTypeValidableDef<{
713
- [key: string]: any;
714
- }> & {
715
- default: () => {
716
- [key: string]: any;
717
- };
718
- } & {
719
- default: () => {
720
- [key: string]: any;
721
- };
722
- };
723
- }>> | {
724
- [key: string]: any;
725
- }): {};
726
- rsolveIndexedColumn(): boolean;
727
- setNodeUid(): void;
728
- getNodeCtxUid(ctx: any): any;
729
- updateColumnDefineByParent(): void;
730
- unmountColumn(): void;
731
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
444
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
732
445
  fixed: boolean | "right" | "left";
733
446
  resizable: boolean;
734
447
  minWidth: string | number;
@@ -736,8 +449,5 @@ declare const BkTableColumn: {
736
449
  columnKey: string;
737
450
  colspan: import("../table/props").SpanFunctionString;
738
451
  rowspan: import("../table/props").SpanFunctionString;
739
- uniqueId: {
740
- [key: string]: any;
741
- };
742
452
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
743
453
  export default BkTableColumn;