view-ui-plus-derive 0.1.3 → 0.2.1

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.d.ts CHANGED
@@ -1,30 +1,14 @@
1
- import { AllowedComponentProps } from 'vue';
2
1
  import { App } from 'vue';
3
- import { ComponentCustomProperties } from 'vue';
4
- import { ComponentCustomProps } from 'vue';
5
- import { ComponentInternalInstance } from 'vue';
6
- import { ComponentOptionsBase } from 'vue';
7
2
  import { ComponentOptionsMixin } from 'vue';
8
3
  import { ComponentProvideOptions } from 'vue';
9
- import { ComponentPublicInstance } from 'vue';
10
- import { DebuggerEvent } from 'vue';
11
4
  import { DefineComponent } from 'vue';
12
5
  import { Directive } from 'vue';
13
6
  import { ExtractPropTypes } from 'vue';
14
- import { GlobalComponents } from 'vue';
15
- import { GlobalDirectives } from 'vue';
16
7
  import { JSX } from 'vue/jsx-runtime';
17
- import { nextTick } from 'vue';
18
- import { OnCleanup } from '@vue/reactivity';
19
8
  import { PropType } from 'vue';
20
9
  import { PublicProps } from 'vue';
21
10
  import { Ref } from 'vue';
22
11
  import { ShallowReactive } from 'vue';
23
- import { ShallowUnwrapRef } from 'vue';
24
- import { Slot } from 'vue';
25
- import { VNodeProps } from 'vue';
26
- import { WatchOptions } from 'vue';
27
- import { WatchStopHandle } from 'vue';
28
12
 
29
13
  declare type __VLS_WithTemplateSlots<T, S> = T & {
30
14
  new (): {
@@ -286,6 +270,10 @@ falseValue: string | number | boolean;
286
270
  close(): any;
287
271
  }>;
288
272
 
273
+ declare type BtnSize = '' | 'default' | 'small' | 'large' | undefined;
274
+
275
+ declare type BtnType = '' | 'default' | 'primary' | 'dashed' | 'text' | 'info' | 'success' | 'warning' | 'error' | undefined;
276
+
289
277
  export declare const CacheSelect: __VLS_WithTemplateSlots_4<DefineComponent<ExtractPropTypes< {
290
278
  modelValue: PropType<SelectValue>;
291
279
  /**
@@ -311,276 +299,7 @@ default: string;
311
299
  }>, {
312
300
  cacheId: string;
313
301
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
314
- sel: ({
315
- $: ComponentInternalInstance;
316
- $data: {};
317
- $props: Partial<{
318
- all: boolean;
319
- multiple: boolean;
320
- valueKey: string;
321
- labelKey: string;
322
- keyMap: Record<string, any>;
323
- valueAsKey: boolean;
324
- autoGet: boolean;
325
- textMode: boolean;
326
- cache: boolean;
327
- strict: boolean;
328
- getSelected: Function;
329
- }> & Omit<{
330
- readonly all: boolean;
331
- readonly multiple: boolean;
332
- readonly valueKey: string;
333
- readonly labelKey: string;
334
- readonly keyMap: Record<string, any>;
335
- readonly valueAsKey: boolean;
336
- readonly autoGet: boolean;
337
- readonly textMode: boolean;
338
- readonly cache: boolean;
339
- readonly strict: boolean;
340
- readonly getSelected: Function;
341
- readonly list?: Obj[] | undefined;
342
- readonly modelValue?: SelectValue | undefined;
343
- readonly param?: string | Function | Record<string, any> | undefined;
344
- readonly method?: Function | undefined;
345
- readonly refresh?: Function | undefined;
346
- readonly process?: Function | undefined;
347
- readonly textFormat?: Function | undefined;
348
- readonly optionDisabled?: Function | undefined;
349
- readonly optionTag?: Function | undefined;
350
- readonly loader?: Function | undefined;
351
- readonly chosen?: Record<string, any> | unknown[] | undefined;
352
- readonly formatLabel?: Function | undefined;
353
- readonly check?: Function | undefined;
354
- readonly parentCode?: string | number | unknown[] | undefined;
355
- readonly "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
356
- readonly "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
357
- readonly "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
358
- readonly "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
359
- readonly onLoad?: ((val: any) => any) | undefined;
360
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "getSelected">;
361
- $attrs: {
362
- [x: string]: unknown;
363
- };
364
- $refs: {
365
- [x: string]: unknown;
366
- };
367
- $slots: Readonly<{
368
- [name: string]: Slot<any> | undefined;
369
- }>;
370
- $root: ComponentPublicInstance | null;
371
- $parent: ComponentPublicInstance | null;
372
- $host: Element | null;
373
- $emit: ((event: "update:modelValue", val: SelectValue) => void) & ((event: "update:chosen", item: Obj) => void) & ((event: "update:list", list: Obj[]) => void) & ((event: "update:refresh", handle: () => Promise<void>) => void) & ((event: "load", val: any) => void);
374
- $el: any;
375
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
376
- modelValue: PropType<SelectValue>;
377
- list: PropType<Obj[]>;
378
- multiple: BooleanConstructor;
379
- valueAsKey: BooleanConstructor;
380
- valueKey: {
381
- type: StringConstructor;
382
- default: string;
383
- };
384
- labelKey: {
385
- type: StringConstructor;
386
- default: string;
387
- };
388
- keyMap: {
389
- type: ObjectConstructor;
390
- default(props: Obj): {
391
- value: any;
392
- label: any;
393
- };
394
- };
395
- method: FunctionConstructor;
396
- refresh: FunctionConstructor;
397
- process: FunctionConstructor;
398
- param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
399
- chosen: (ArrayConstructor | ObjectConstructor)[];
400
- autoGet: BooleanConstructor;
401
- formatLabel: {
402
- type: FunctionConstructor;
403
- };
404
- check: {
405
- type: FunctionConstructor;
406
- };
407
- textMode: BooleanConstructor;
408
- textFormat: FunctionConstructor;
409
- parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
410
- optionDisabled: FunctionConstructor;
411
- optionTag: FunctionConstructor;
412
- getSelected: {
413
- type: FunctionConstructor;
414
- default({ multiple, keyMap, list, value }: {
415
- multiple: boolean;
416
- keyMap: {
417
- value: string;
418
- };
419
- list: Obj[];
420
- value: SelectValue;
421
- }): Obj | Obj[];
422
- };
423
- cache: BooleanConstructor;
424
- loader: FunctionConstructor;
425
- strict: BooleanConstructor;
426
- all: {
427
- type: BooleanConstructor;
428
- default: boolean;
429
- };
430
- }>> & Readonly<{
431
- "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
432
- "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
433
- "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
434
- "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
435
- onLoad?: ((val: any) => any) | undefined;
436
- }>, {
437
- code: Ref<SelectValue, SelectValue>;
438
- changeCode: (val: SelectValue) => void;
439
- loaded: Ref<boolean, boolean>;
440
- codes: Ref<Obj[], Obj[]>;
441
- search: () => Promise<void>;
442
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
443
- "update:modelValue": (val: SelectValue) => any;
444
- "update:chosen": (item: Obj) => any;
445
- "update:list": (list: Obj[]) => any;
446
- "update:refresh": (handle: () => Promise<void>) => any;
447
- load: (val: any) => any;
448
- }, string, {
449
- all: boolean;
450
- multiple: boolean;
451
- valueKey: string;
452
- labelKey: string;
453
- keyMap: Record<string, any>;
454
- valueAsKey: boolean;
455
- autoGet: boolean;
456
- textMode: boolean;
457
- cache: boolean;
458
- strict: boolean;
459
- getSelected: Function;
460
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
461
- beforeCreate?: (() => void) | (() => void)[];
462
- created?: (() => void) | (() => void)[];
463
- beforeMount?: (() => void) | (() => void)[];
464
- mounted?: (() => void) | (() => void)[];
465
- beforeUpdate?: (() => void) | (() => void)[];
466
- updated?: (() => void) | (() => void)[];
467
- activated?: (() => void) | (() => void)[];
468
- deactivated?: (() => void) | (() => void)[];
469
- beforeDestroy?: (() => void) | (() => void)[];
470
- beforeUnmount?: (() => void) | (() => void)[];
471
- destroyed?: (() => void) | (() => void)[];
472
- unmounted?: (() => void) | (() => void)[];
473
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
474
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
475
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
476
- };
477
- $forceUpdate: () => void;
478
- $nextTick: typeof nextTick;
479
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
480
- } & Readonly<{
481
- all: boolean;
482
- multiple: boolean;
483
- valueKey: string;
484
- labelKey: string;
485
- keyMap: Record<string, any>;
486
- valueAsKey: boolean;
487
- autoGet: boolean;
488
- textMode: boolean;
489
- cache: boolean;
490
- strict: boolean;
491
- getSelected: Function;
492
- }> & Omit<Readonly<ExtractPropTypes< {
493
- modelValue: PropType<SelectValue>;
494
- list: PropType<Obj[]>;
495
- multiple: BooleanConstructor;
496
- valueAsKey: BooleanConstructor;
497
- valueKey: {
498
- type: StringConstructor;
499
- default: string;
500
- };
501
- labelKey: {
502
- type: StringConstructor;
503
- default: string;
504
- };
505
- keyMap: {
506
- type: ObjectConstructor;
507
- default(props: Obj): {
508
- value: any;
509
- label: any;
510
- };
511
- };
512
- method: FunctionConstructor;
513
- refresh: FunctionConstructor;
514
- process: FunctionConstructor;
515
- param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
516
- chosen: (ArrayConstructor | ObjectConstructor)[];
517
- autoGet: BooleanConstructor;
518
- formatLabel: {
519
- type: FunctionConstructor;
520
- };
521
- check: {
522
- type: FunctionConstructor;
523
- };
524
- textMode: BooleanConstructor;
525
- textFormat: FunctionConstructor;
526
- parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
527
- optionDisabled: FunctionConstructor;
528
- optionTag: FunctionConstructor;
529
- getSelected: {
530
- type: FunctionConstructor;
531
- default({ multiple, keyMap, list, value }: {
532
- multiple: boolean;
533
- keyMap: {
534
- value: string;
535
- };
536
- list: Obj[];
537
- value: SelectValue;
538
- }): Obj | Obj[];
539
- };
540
- cache: BooleanConstructor;
541
- loader: FunctionConstructor;
542
- strict: BooleanConstructor;
543
- all: {
544
- type: BooleanConstructor;
545
- default: boolean;
546
- };
547
- }>> & Readonly<{
548
- "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
549
- "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
550
- "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
551
- "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
552
- onLoad?: ((val: any) => any) | undefined;
553
- }>, "code" | "search" | "changeCode" | "loaded" | "codes" | ("all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "getSelected")> & ShallowUnwrapRef< {
554
- code: Ref<SelectValue, SelectValue>;
555
- changeCode: (val: SelectValue) => void;
556
- loaded: Ref<boolean, boolean>;
557
- codes: Ref<Obj[], Obj[]>;
558
- search: () => Promise<void>;
559
- }> & {} & ComponentCustomProperties & {} & {
560
- $slots: Readonly<{
561
- default(_: {
562
- item: Obj;
563
- index: number;
564
- }): any;
565
- dropdown(_: {
566
- list: Obj[];
567
- }): any;
568
- text(_: {
569
- text: string;
570
- }): any;
571
- }> & {
572
- default(_: {
573
- item: Obj;
574
- index: number;
575
- }): any;
576
- dropdown(_: {
577
- list: Obj[];
578
- }): any;
579
- text(_: {
580
- text: string;
581
- }): any;
582
- };
583
- }) | null;
302
+ sel: any
584
303
  }, any>, {
585
304
  default?(_: {
586
305
  item: Obj;
@@ -680,11 +399,11 @@ maxDisabled: BooleanConstructor;
680
399
  /**
681
400
  * 最小值组件class
682
401
  */
683
- minClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
402
+ minClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
684
403
  /**
685
404
  * 最大值组件class
686
405
  */
687
- maxClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
406
+ maxClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
688
407
  /**
689
408
  * 最小值占位文本
690
409
  */
@@ -718,7 +437,7 @@ maxAttr: ObjectConstructor;
718
437
  /**
719
438
  * 中间连接部分class
720
439
  */
721
- joinerClass: (StringConstructor | ObjectConstructor)[];
440
+ joinerClass: (ObjectConstructor | StringConstructor)[];
722
441
  /**
723
442
  * 是否隐藏连接部分
724
443
  */
@@ -773,11 +492,11 @@ maxDisabled: BooleanConstructor;
773
492
  /**
774
493
  * 最小值组件class
775
494
  */
776
- minClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
495
+ minClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
777
496
  /**
778
497
  * 最大值组件class
779
498
  */
780
- maxClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
499
+ maxClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
781
500
  /**
782
501
  * 最小值占位文本
783
502
  */
@@ -811,7 +530,7 @@ maxAttr: ObjectConstructor;
811
530
  /**
812
531
  * 中间连接部分class
813
532
  */
814
- joinerClass: (StringConstructor | ObjectConstructor)[];
533
+ joinerClass: (ObjectConstructor | StringConstructor)[];
815
534
  /**
816
535
  * 是否隐藏连接部分
817
536
  */
@@ -890,6 +609,7 @@ actionText: StringConstructor;
890
609
  actionCol: {
891
610
  type: ObjectConstructor;
892
611
  default(props: Obj): {
612
+ key: string;
893
613
  slot: string;
894
614
  width: any;
895
615
  align: any;
@@ -914,10 +634,10 @@ beforeAdd: FunctionConstructor;
914
634
  */
915
635
  beforeRemove: FunctionConstructor;
916
636
  addBtnType: {
917
- type: StringConstructor;
637
+ type: PropType<BtnType>;
918
638
  default: string;
919
639
  };
920
- addBtnSize: StringConstructor;
640
+ addBtnSize: PropType<BtnSize>;
921
641
  addBtnGhost: {
922
642
  type: BooleanConstructor;
923
643
  default: boolean;
@@ -931,11 +651,11 @@ type: ObjectConstructor;
931
651
  default: () => {};
932
652
  };
933
653
  delBtnType: {
934
- type: StringConstructor;
654
+ type: PropType<BtnType>;
935
655
  default: string;
936
656
  };
937
657
  delBtnSize: {
938
- type: StringConstructor;
658
+ type: PropType<BtnSize>;
939
659
  default: string;
940
660
  };
941
661
  delBtnGhost: {
@@ -1014,6 +734,7 @@ actionText: StringConstructor;
1014
734
  actionCol: {
1015
735
  type: ObjectConstructor;
1016
736
  default(props: Obj): {
737
+ key: string;
1017
738
  slot: string;
1018
739
  width: any;
1019
740
  align: any;
@@ -1038,10 +759,10 @@ beforeAdd: FunctionConstructor;
1038
759
  */
1039
760
  beforeRemove: FunctionConstructor;
1040
761
  addBtnType: {
1041
- type: StringConstructor;
762
+ type: PropType<BtnType>;
1042
763
  default: string;
1043
764
  };
1044
- addBtnSize: StringConstructor;
765
+ addBtnSize: PropType<BtnSize>;
1045
766
  addBtnGhost: {
1046
767
  type: BooleanConstructor;
1047
768
  default: boolean;
@@ -1055,11 +776,11 @@ type: ObjectConstructor;
1055
776
  default: () => {};
1056
777
  };
1057
778
  delBtnType: {
1058
- type: StringConstructor;
779
+ type: PropType<BtnType>;
1059
780
  default: string;
1060
781
  };
1061
782
  delBtnSize: {
1062
- type: StringConstructor;
783
+ type: PropType<BtnSize>;
1063
784
  default: string;
1064
785
  };
1065
786
  delBtnGhost: {
@@ -1089,20 +810,20 @@ onAdd?: ((row: Obj) => any) | undefined;
1089
810
  onRemove?: ((row: Obj) => any) | undefined;
1090
811
  }>, {
1091
812
  disabled: boolean;
1092
- modelValue: Obj[];
1093
- border: boolean;
1094
813
  columns: Obj[];
814
+ border: boolean;
815
+ modelValue: Obj[];
1095
816
  addable: boolean;
1096
817
  actionWidth: number;
1097
818
  actionAlign: string;
1098
819
  actionCol: Record<string, any>;
1099
820
  addRow: Function;
1100
- addBtnType: string;
821
+ addBtnType: BtnType;
1101
822
  addBtnGhost: boolean;
1102
823
  addBtnDisabled: boolean;
1103
824
  addBtn: Record<string, any>;
1104
- delBtnType: string;
1105
- delBtnSize: string;
825
+ delBtnType: BtnType;
826
+ delBtnSize: BtnSize;
1106
827
  delBtnGhost: boolean;
1107
828
  delBtn: Record<string, any>;
1108
829
  delBtnDisabled: Function;
@@ -1160,8 +881,8 @@ limitBegin: {
1160
881
  type: BooleanConstructor;
1161
882
  default: boolean;
1162
883
  };
1163
- beginClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1164
- endClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
884
+ beginClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
885
+ endClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
1165
886
  /**
1166
887
  * 开始时间placeholder
1167
888
  */
@@ -1181,7 +902,7 @@ endAttr: ObjectConstructor;
1181
902
  /**
1182
903
  * 中间连接符的class
1183
904
  */
1184
- joinerClass: (StringConstructor | ObjectConstructor)[];
905
+ joinerClass: (ObjectConstructor | StringConstructor)[];
1185
906
  /**
1186
907
  * 是否禁止选择今天
1187
908
  */
@@ -1247,8 +968,8 @@ limitBegin: {
1247
968
  type: BooleanConstructor;
1248
969
  default: boolean;
1249
970
  };
1250
- beginClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1251
- endClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
971
+ beginClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
972
+ endClass: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
1252
973
  /**
1253
974
  * 开始时间placeholder
1254
975
  */
@@ -1268,7 +989,7 @@ endAttr: ObjectConstructor;
1268
989
  /**
1269
990
  * 中间连接符的class
1270
991
  */
1271
- joinerClass: (StringConstructor | ObjectConstructor)[];
992
+ joinerClass: (ObjectConstructor | StringConstructor)[];
1272
993
  /**
1273
994
  * 是否禁止选择今天
1274
995
  */
@@ -1345,7 +1066,7 @@ disableToday: BooleanConstructor;
1345
1066
  transfer: BooleanConstructor;
1346
1067
  placeholder: StringConstructor;
1347
1068
  disabled: BooleanConstructor;
1348
- placement: StringConstructor;
1069
+ placement: PropType<"top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | undefined>;
1349
1070
  /**
1350
1071
  * 用于格式化绑定时间,默认 YYYY-MM-DD
1351
1072
  */
@@ -1400,7 +1121,7 @@ disableToday: BooleanConstructor;
1400
1121
  transfer: BooleanConstructor;
1401
1122
  placeholder: StringConstructor;
1402
1123
  disabled: BooleanConstructor;
1403
- placement: StringConstructor;
1124
+ placement: PropType<"top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | undefined>;
1404
1125
  /**
1405
1126
  * 用于格式化绑定时间,默认 YYYY-MM-DD
1406
1127
  */
@@ -1720,7 +1441,7 @@ cancelDisabled: BooleanConstructor;
1720
1441
  * 取消按钮type,默认 text
1721
1442
  */
1722
1443
  cancelType: {
1723
- type: StringConstructor;
1444
+ type: PropType<BtnType>;
1724
1445
  default: string;
1725
1446
  };
1726
1447
  /**
@@ -1776,7 +1497,7 @@ cancelDisabled: BooleanConstructor;
1776
1497
  * 取消按钮type,默认 text
1777
1498
  */
1778
1499
  cancelType: {
1779
- type: StringConstructor;
1500
+ type: PropType<BtnType>;
1780
1501
  default: string;
1781
1502
  };
1782
1503
  /**
@@ -1801,7 +1522,7 @@ okDisabled: boolean;
1801
1522
  cancelLoading: boolean;
1802
1523
  cancelDisabled: boolean;
1803
1524
  rightCancel: boolean;
1804
- cancelType: string;
1525
+ cancelType: BtnType;
1805
1526
  hasOk: boolean;
1806
1527
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
1807
1528
  other?(_: {}): any;
@@ -2191,9 +1912,9 @@ onReload?: (() => any) | undefined;
2191
1912
  "onMaximize-change"?: ((val: boolean) => any) | undefined;
2192
1913
  }>, {
2193
1914
  transfer: boolean;
2194
- modelValue: Obj[];
2195
- border: boolean;
2196
1915
  columns: Obj[];
1916
+ border: boolean;
1917
+ modelValue: Obj[];
2197
1918
  isLocal: boolean;
2198
1919
  autoRemain: boolean;
2199
1920
  usePageNum: boolean;
@@ -2210,8 +1931,8 @@ autoMaxHeight: boolean;
2210
1931
  maximizeHeightType: "height" | "maxHeight";
2211
1932
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
2212
1933
  elRef: HTMLDivElement;
2213
- tableRef: unknown;
2214
- pageRef: unknown;
1934
+ tableRef: any;
1935
+ pageRef: any;
2215
1936
  }, HTMLDivElement>, Partial<Record<any, (_: any) => any>> & {
2216
1937
  title?(_: {}): any;
2217
1938
  headerAction?(_: {}): any;
@@ -2251,8 +1972,8 @@ label: any;
2251
1972
  method: FunctionConstructor;
2252
1973
  refresh: FunctionConstructor;
2253
1974
  process: FunctionConstructor;
2254
- param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
2255
- chosen: (ArrayConstructor | ObjectConstructor)[];
1975
+ param: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
1976
+ chosen: (ObjectConstructor | ArrayConstructor)[];
2256
1977
  autoGet: BooleanConstructor;
2257
1978
  formatLabel: {
2258
1979
  type: FunctionConstructor;
@@ -2343,8 +2064,8 @@ label: any;
2343
2064
  method: FunctionConstructor;
2344
2065
  refresh: FunctionConstructor;
2345
2066
  process: FunctionConstructor;
2346
- param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
2347
- chosen: (ArrayConstructor | ObjectConstructor)[];
2067
+ param: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
2068
+ chosen: (ObjectConstructor | ArrayConstructor)[];
2348
2069
  autoGet: BooleanConstructor;
2349
2070
  formatLabel: {
2350
2071
  type: FunctionConstructor;
@@ -2464,8 +2185,33 @@ transfer: BooleanConstructor;
2464
2185
  * @example
2465
2186
  * // 组件会尝试将显示状态读写至 localStorage.app.main.cols
2466
2187
  * storeAt='app.main.cols'
2188
+ *
2189
+ * 特殊情况:如读写至 localStorage.app.page1['part1.list'].cols
2190
+ * storeAt='app.page1.[part1.list].cols'
2467
2191
  */
2468
2192
  storeAt: StringConstructor;
2193
+ /**
2194
+ * 最小可见列数
2195
+ */
2196
+ minVisible: {
2197
+ type: NumberConstructor;
2198
+ default: number;
2199
+ };
2200
+ /**
2201
+ * 切换列时是否实时读取本地存储
2202
+ *
2203
+ * 在启用storeAt时,默认只在初始化时从本地读取一次之前保存的状态 \
2204
+ * 若需要每次切换列时都实时从本地获取最新的数据,则可以开启此项 \
2205
+ * 一般在搭配其它逻辑共享同一数据结构时适用,如拖拽列宽后需要将列宽存至同一对象中以节省存储空间 \
2206
+ * 当在循环中使用(即存在cacheId)时,建议开启此项,否则可能会出现列显示异常的情况
2207
+ *
2208
+ * @default
2209
+ * !!props.storeAt && !!props.cacheId
2210
+ */
2211
+ realtime: {
2212
+ type: BooleanConstructor;
2213
+ default: (props: Obj) => boolean;
2214
+ };
2469
2215
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2470
2216
  "update:modelValue": (val: Obj[]) => any;
2471
2217
  change: (val: Obj | Obj[]) => any;
@@ -2496,14 +2242,41 @@ transfer: BooleanConstructor;
2496
2242
  * @example
2497
2243
  * // 组件会尝试将显示状态读写至 localStorage.app.main.cols
2498
2244
  * storeAt='app.main.cols'
2245
+ *
2246
+ * 特殊情况:如读写至 localStorage.app.page1['part1.list'].cols
2247
+ * storeAt='app.page1.[part1.list].cols'
2499
2248
  */
2500
2249
  storeAt: StringConstructor;
2250
+ /**
2251
+ * 最小可见列数
2252
+ */
2253
+ minVisible: {
2254
+ type: NumberConstructor;
2255
+ default: number;
2256
+ };
2257
+ /**
2258
+ * 切换列时是否实时读取本地存储
2259
+ *
2260
+ * 在启用storeAt时,默认只在初始化时从本地读取一次之前保存的状态 \
2261
+ * 若需要每次切换列时都实时从本地获取最新的数据,则可以开启此项 \
2262
+ * 一般在搭配其它逻辑共享同一数据结构时适用,如拖拽列宽后需要将列宽存至同一对象中以节省存储空间 \
2263
+ * 当在循环中使用(即存在cacheId)时,建议开启此项,否则可能会出现列显示异常的情况
2264
+ *
2265
+ * @default
2266
+ * !!props.storeAt && !!props.cacheId
2267
+ */
2268
+ realtime: {
2269
+ type: BooleanConstructor;
2270
+ default: (props: Obj) => boolean;
2271
+ };
2501
2272
  }>> & Readonly<{
2502
2273
  "onUpdate:modelValue"?: ((val: Obj[]) => any) | undefined;
2503
2274
  onChange?: ((val: Obj | Obj[]) => any) | undefined;
2504
2275
  }>, {
2505
2276
  all: boolean;
2506
2277
  transfer: boolean;
2278
+ minVisible: number;
2279
+ realtime: boolean;
2507
2280
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
2508
2281
  default?(_: {}): any;
2509
2282
  }>;