@shaonq/vue 1.1.7 → 1.1.9

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/lib/index.d.ts CHANGED
@@ -5,13 +5,38 @@ import { ExtractPropTypes } from 'vue';
5
5
  import { PropType } from 'vue';
6
6
  import { PublicProps } from 'vue';
7
7
  import { Ref } from 'vue';
8
+ import { TablePublicMethods } from 'vxe-table';
8
9
  import { VxeColumnPropTypes } from 'vxe-table';
10
+ import { VxeTable } from 'vxe-table';
9
11
  import { VxeTableDataRow } from 'vxe-table';
10
12
  import { VxeTableDefines } from 'vxe-table';
13
+ import { VxeTableEventProps } from 'vxe-table';
14
+ import { VxeTableProps } from 'vxe-table';
11
15
  import { VxeTablePropTypes } from 'vxe-table';
12
16
  import { VxeToolbarConstructor } from 'vxe-table';
13
17
  import { VxeToolbarInstance } from 'vxe-table';
14
18
 
19
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+
21
+ declare type __VLS_Prettify<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
24
+
25
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+
34
+ declare type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+
15
40
  declare type __VLS_WithTemplateSlots<T, S> = T & {
16
41
  new (): {
17
42
  $slots: S;
@@ -24,6 +49,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
24
49
  };
25
50
  };
26
51
 
52
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
57
+
27
58
  declare interface CssType extends Partial<CSSStyleDeclaration>, RecordAny_2 {
28
59
  }
29
60
 
@@ -44,7 +75,24 @@ export declare const download: (url: string, fileName?: string) => boolean;
44
75
  * @param {string} option.className 例 class = 'one-page-pdf' ,大量打印必填
45
76
  * @param {string} option.success successCallback worker:any => void
46
77
  */
47
- export declare function downLoadPdf(name: string, element: HTMLElement, option?: RecordAny): Promise<void>;
78
+ export declare function downLoadPdf(name: string, element: HTMLElement, option?: {
79
+ /** `pdf page margin`: `[top, left, bottom, right]` */
80
+ margin?: number[];
81
+ /** 启用 `worker` */
82
+ className?: string;
83
+ /** 缩放比例 */
84
+ scale?: number;
85
+ /** 横向 `landscape` ,竖向 `portrait` */
86
+ letterRendering?: 'landscape' | 'portrait';
87
+ pagebreak?: {
88
+ mode?: any;
89
+ before?: any;
90
+ after?: any;
91
+ avoid?: any;
92
+ };
93
+ html2canvas?: any;
94
+ jsPDF?: any;
95
+ } & RecordAny): Promise<void>;
48
96
 
49
97
  export declare function findObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
50
98
 
@@ -123,6 +171,7 @@ export declare const locale: {
123
171
  showAlpha: string;
124
172
  showLabel: string;
125
173
  option: string;
174
+ options: string;
126
175
  staticData: string;
127
176
  remoteData: string;
128
177
  remoteFunc: string;
@@ -195,6 +244,13 @@ export declare const locale: {
195
244
  validatorPattern: string;
196
245
  showWordLimit: string;
197
246
  maxLength: string;
247
+ textAlign: string;
248
+ fontSize: string;
249
+ fontFamily: string;
250
+ rowspan: string;
251
+ colspan: string;
252
+ borderTop: string;
253
+ borderLeft: string;
198
254
  };
199
255
  side: {
200
256
  fields: {
@@ -306,6 +362,7 @@ export declare const locale: {
306
362
  showAlpha: string;
307
363
  showLabel: string;
308
364
  option: string;
365
+ options: string;
309
366
  staticData: string;
310
367
  remoteData: string;
311
368
  remoteFunc: string;
@@ -378,6 +435,13 @@ export declare const locale: {
378
435
  validatorPattern: string;
379
436
  showWordLimit: string;
380
437
  maxLength: string;
438
+ textAlign: string;
439
+ fontSize: string;
440
+ fontFamily: string;
441
+ rowspan: string;
442
+ colspan: string;
443
+ borderTop: string;
444
+ borderLeft: string;
381
445
  };
382
446
  side: {
383
447
  fields: {
@@ -467,17 +531,83 @@ export declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, i
467
531
  /** omit object */
468
532
  export declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
469
533
 
470
- export declare const OrchiskyPrint: DefineComponent<{
534
+ export declare const OrcDesign: DefineComponent<{
535
+ readonly: BooleanConstructor;
471
536
  data: {
472
537
  type: ObjectConstructor;
538
+ default(): {};
539
+ };
540
+ models: {
541
+ type: ObjectConstructor;
542
+ default(): {};
543
+ };
544
+ remoteFuncs: {
545
+ type: ObjectConstructor;
546
+ default(): {};
473
547
  };
474
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
548
+ moduleConfig: ArrayConstructor;
549
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
550
+ save: (...args: any[]) => void;
551
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
552
+ readonly: BooleanConstructor;
475
553
  data: {
476
554
  type: ObjectConstructor;
555
+ default(): {};
477
556
  };
478
- }>>, {}, {}>;
557
+ models: {
558
+ type: ObjectConstructor;
559
+ default(): {};
560
+ };
561
+ remoteFuncs: {
562
+ type: ObjectConstructor;
563
+ default(): {};
564
+ };
565
+ moduleConfig: ArrayConstructor;
566
+ }>> & {
567
+ onSave?: ((...args: any[]) => any) | undefined;
568
+ }, {
569
+ data: Record<string, any>;
570
+ readonly: boolean;
571
+ models: Record<string, any>;
572
+ remoteFuncs: Record<string, any>;
573
+ }, {}>;
574
+
575
+ export declare const OrcDesignPrint: DefineComponent<{}, {
576
+ getHtml(): any;
577
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
578
+
579
+ export declare const OrcProvider: __VLS_WithTemplateSlots_3< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}, {}>, {
580
+ default?(_: {}): any;
581
+ }>;
479
582
 
480
- export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<{
583
+ export declare const OrcQuill: DefineComponent<{
584
+ modelValue: {
585
+ type: StringConstructor;
586
+ default: string;
587
+ };
588
+ toolbar: {
589
+ type: (StringConstructor | ArrayConstructor)[];
590
+ default: string;
591
+ };
592
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
593
+ "update:modelValue": (...args: any[]) => void;
594
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
595
+ modelValue: {
596
+ type: StringConstructor;
597
+ default: string;
598
+ };
599
+ toolbar: {
600
+ type: (StringConstructor | ArrayConstructor)[];
601
+ default: string;
602
+ };
603
+ }>> & {
604
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
605
+ }, {
606
+ modelValue: string;
607
+ toolbar: string | unknown[];
608
+ }, {}>;
609
+
610
+ export declare const OrcSearch: __VLS_WithTemplateSlots_2< DefineComponent<{
481
611
  loading: BooleanConstructor;
482
612
  readonly: BooleanConstructor;
483
613
  options: {
@@ -501,8 +631,8 @@ export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<
501
631
  default: string;
502
632
  };
503
633
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
504
- "update:model-value": (...args: any[]) => void;
505
634
  onSearch: (...args: any[]) => void;
635
+ "update:model-value": (...args: any[]) => void;
506
636
  }, string, PublicProps, Readonly< ExtractPropTypes<{
507
637
  loading: BooleanConstructor;
508
638
  readonly: BooleanConstructor;
@@ -530,19 +660,19 @@ export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<
530
660
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
531
661
  onOnSearch?: ((...args: any[]) => any) | undefined;
532
662
  }, {
533
- options: TypeSearchItem[];
534
- labelWidth: string;
663
+ loading: boolean;
535
664
  size: string;
536
665
  modelValue: Record<string, any>;
537
- loading: boolean;
666
+ options: TypeSearchItem[];
538
667
  readonly: boolean;
668
+ labelWidth: string;
539
669
  inputWidth: string;
540
670
  }, {}>, {
541
671
  head?(_: {}): any;
542
672
  default?(_: {}): any;
543
673
  }>;
544
674
 
545
- export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
675
+ export declare const OrcTable: __VLS_WithTemplateSlots< DefineComponent<{
546
676
  title: StringConstructor;
547
677
  /** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
548
678
  height: (StringConstructor | NumberConstructor)[];
@@ -550,7 +680,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
550
680
  hideToolbar: BooleanConstructor;
551
681
  hidePagination: BooleanConstructor;
552
682
  size: {
553
- type: PropType<"small" | "mini" | "medium">;
683
+ type: PropType<"medium" | "small" | "mini">;
554
684
  default: string;
555
685
  };
556
686
  /** 用户选择列表 */
@@ -565,7 +695,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
565
695
  };
566
696
  /** 配置文件 */
567
697
  option: {
568
- type: PropType<TableOptionType>;
698
+ type: PropType<OrcTableOption>;
569
699
  default: () => {
570
700
  columns: never[];
571
701
  };
@@ -590,18 +720,18 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
590
720
  checkRows(list?: RecordAny_2[] | undefined): Promise<[string, RecordAny_2[]]>;
591
721
  getRowSeq(row: any): string | number;
592
722
  getRowIndex(row: any): number;
593
- removerRowIndex(rowIndex: number): void; /** 未修改之前的数据 */
594
- loading: Ref<boolean>;
723
+ removerRowIndex(rowIndex: number): void;
724
+ loading: Ref<boolean, boolean>;
595
725
  setLoading: typeof setLoading;
596
726
  /** 执行搜索 ,是否返回第一页 */
597
727
  dataInit(isFirst?: boolean | undefined): Promise<void>;
598
728
  /** 加载数据 */
599
729
  loadData(list: any[]): void;
600
730
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
601
- onReset: (...args: any[]) => void;
602
- change: (...args: any[]) => void;
603
731
  "update:selectedKeys": (...args: any[]) => void;
604
732
  cellClick: (...args: any[]) => void;
733
+ onReset: (...args: any[]) => void;
734
+ change: (...args: any[]) => void;
605
735
  confirm: (...args: any[]) => void;
606
736
  }, string, PublicProps, Readonly< ExtractPropTypes<{
607
737
  title: StringConstructor;
@@ -611,7 +741,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
611
741
  hideToolbar: BooleanConstructor;
612
742
  hidePagination: BooleanConstructor;
613
743
  size: {
614
- type: PropType<"small" | "mini" | "medium">;
744
+ type: PropType<"medium" | "small" | "mini">;
615
745
  default: string;
616
746
  };
617
747
  /** 用户选择列表 */
@@ -626,7 +756,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
626
756
  };
627
757
  /** 配置文件 */
628
758
  option: {
629
- type: PropType<TableOptionType>;
759
+ type: PropType<OrcTableOption>;
630
760
  default: () => {
631
761
  columns: never[];
632
762
  };
@@ -637,15 +767,15 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
637
767
  setColumn: (list: RecordAny_2[]) => void;
638
768
  }>;
639
769
  }>> & {
640
- onChange?: ((...args: any[]) => any) | undefined;
641
- onOnReset?: ((...args: any[]) => any) | undefined;
642
770
  "onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
643
771
  onCellClick?: ((...args: any[]) => any) | undefined;
772
+ onOnReset?: ((...args: any[]) => any) | undefined;
773
+ onChange?: ((...args: any[]) => any) | undefined;
644
774
  onConfirm?: ((...args: any[]) => any) | undefined;
645
775
  }, {
646
776
  data: unknown[];
647
- option: TableOptionType;
648
- size: "small" | "mini" | "medium";
777
+ option: OrcTableOption;
778
+ size: "medium" | "small" | "mini";
649
779
  hideToolbar: boolean;
650
780
  hidePagination: boolean;
651
781
  selectedKeys: unknown[];
@@ -664,50 +794,6 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
664
794
  footer?(_: {}): any;
665
795
  }>;
666
796
 
667
- export declare type RecordAny = Record<string, any>;
668
-
669
- declare type RecordAny_2 = Record<string, any>;
670
-
671
- /**
672
- * set path object
673
- * @example
674
- * ```
675
- * var b = {a:{b:1}}
676
- * setData(b,'a.b',2)
677
- * // {a:{b:2}}
678
- * ```
679
- */
680
- export declare function setData(object: RecordAny, path: string, defaultValue?: any): RecordAny;
681
-
682
- declare function setLoading(val?: boolean): void;
683
-
684
- /** column type */
685
- declare interface TableColumnType extends RecordAny_2 {
686
- show?: boolean;
687
- dataIndex: string;
688
- title?: string;
689
- width?: number;
690
- sort?: boolean;
691
- /** 开启编辑 */
692
- cell?: boolean;
693
- /** 影响性能 cell = true 有效 只显示编辑内容 */
694
- div?: boolean;
695
- /** 没内容时候得提示 */
696
- placeholder?: string;
697
- tooltip?: boolean;
698
- ellipsis?: boolean;
699
- align?: VxeColumnPropTypes.Align;
700
- headerAlign?: VxeColumnPropTypes.HeaderAlign;
701
- footerAlign?: VxeColumnPropTypes.FooterAlign;
702
- format?: (val: any, record?: RecordAny_2) => string;
703
- style?: CssType | ((record: RecordAny_2) => CssType);
704
- /** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
705
- help?: VxeColumnPropTypes.TitlePrefix;
706
- filters?: VxeColumnPropTypes.Filter[];
707
- filterMultiple?: VxeColumnPropTypes.FilterMultiple;
708
- filterMethod?: VxeColumnPropTypes.FilterMethod;
709
- }
710
-
711
797
  /**
712
798
  * table option type
713
799
  * @example
@@ -721,9 +807,10 @@ declare interface TableColumnType extends RecordAny_2 {
721
807
  * }
722
808
  * ```
723
809
  */
724
- export declare interface TableOptionType extends RecordAny_2 {
725
- /** 请求地址 */
810
+ export declare interface OrcTableOption extends RecordAny_2 {
811
+ /** 可使用 `orc-provider` 全局注入 */
726
812
  useErrData?: <T = RecordAny_2>(config: RecordAny_2) => Promise<[boolean, T]>;
813
+ /** 请求地址 */
727
814
  url?: string;
728
815
  /** 请求类型 */
729
816
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
@@ -789,14 +876,112 @@ export declare interface TableOptionType extends RecordAny_2 {
789
876
  skinRowText?: string;
790
877
  /** 同 edit-rules , demo : { sex: [ { required: true, message: '性别必须填写' } ] } */
791
878
  rules?: VxeTablePropTypes.EditRules;
792
- /** 数据筛选 {remote:服务器筛选 ,filterMethod :({ options, values, cellValue, row, column }) => boolean } */
793
- filterConfig?: VxeTablePropTypes.FilterConfig;
794
879
  /** 横向虚拟滚动配置 { enabled, gt } */
795
880
  scrollX?: VxeTablePropTypes.ScrollX;
796
881
  /** 纵向虚拟滚动配置 { enabled, gt } */
797
882
  scrollY?: VxeTablePropTypes.ScrollY;
883
+ selectedProps?: any;
884
+ tableProps?: TableInstance['$props'];
885
+ }
886
+
887
+ declare interface Props {
888
+ useErrData?: <T = Record<string, any>>(config: Record<string, any>) => Promise<[boolean, T]>;
889
+ }
890
+
891
+ export declare type RecordAny = Record<string, any>;
892
+
893
+ declare type RecordAny_2 = Record<string, any>;
894
+
895
+ /**
896
+ * set path object
897
+ * @example
898
+ * ```
899
+ * var b = {a:{b:1}}
900
+ * setData(b,'a.b',2)
901
+ * // {a:{b:2}}
902
+ * ```
903
+ */
904
+ export declare function setData(object: RecordAny, path: string, defaultValue?: any): RecordAny;
905
+
906
+ declare function setLoading(val?: boolean): void;
907
+
908
+ /** column type */
909
+ declare interface TableColumnType extends RecordAny_2 {
910
+ show?: boolean;
911
+ dataIndex: string;
912
+ title?: string;
913
+ width?: number;
914
+ sort?: boolean;
915
+ /** 开启编辑 */
916
+ cell?: boolean;
917
+ /** 影响性能 cell = true 有效 只显示编辑内容 */
918
+ div?: boolean;
919
+ /** 没内容时候得提示 */
920
+ placeholder?: string;
921
+ tooltip?: boolean;
922
+ ellipsis?: boolean;
923
+ align?: VxeColumnPropTypes.Align;
924
+ headerAlign?: VxeColumnPropTypes.HeaderAlign;
925
+ footerAlign?: VxeColumnPropTypes.FooterAlign;
926
+ format?: (val: any, record?: RecordAny_2) => string;
927
+ style?: CssType | ((record: RecordAny_2) => CssType);
928
+ /** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
929
+ help?: VxeColumnPropTypes.TitlePrefix;
930
+ columnProps?: any;
931
+ }
932
+
933
+ declare interface TableExposeType extends TableGridTwoType {
934
+ loading: boolean;
935
+ setLoading: (loading?: boolean) => void;
936
+ /** 请求数据 */
937
+ dataInit: () => Promise<void>;
938
+ /** 重置表单数据 */
939
+ loadData: (list: RecordAny_2[]) => void;
940
+ }
941
+
942
+ declare interface TableGridTwoType extends RecordAny_2 {
943
+ /** 读取配置的rowKey 默认 _X_ROW_KEY */
944
+ getRowKey(): string;
945
+ /** 读取当前页数据 */
946
+ getTableData(): RecordAny_2[];
947
+ /** 读取选中行 */
948
+ getSelection(): RecordAny_2[];
949
+ /** 不支持夸行选择,可读取rowKey重复的数据 */
950
+ getCheckboxKeySelection(keys?: string[]): RecordAny_2[];
951
+ /** option.reserve = true 读取所有跨页选中数据 */
952
+ getReserveSelection(): RecordAny_2[];
953
+ /** 清空选中行 */
954
+ clearSelection(): void;
955
+ /** 原insertAt 往表格插入临时数据,从指定位置插入一行或多行;第二个参数:row 指定( isNext +1 )位置、null从第一行插入、-1 从最后插入 */
956
+ insertRow(record: RecordAny_2, row?: RecordAny_2 | number, isNext?: boolean): Promise<{
957
+ row: any;
958
+ rows: any;
959
+ }>;
960
+ /** 删除复选框选中的行数据 */
961
+ removeRows(): void;
962
+ /**
963
+ * 选中行数据校验
964
+ * @param list 默认 所有选择的数据
965
+ */
966
+ checkRows(list?: RecordAny_2[]): Promise<[string, RecordAny_2[]]>;
967
+ /**
968
+ * 根据 row 获取行的序号
969
+ * @param row 行对象
970
+ */
971
+ getRowSeq(row: any): string | number;
972
+ /**
973
+ * 根据 row 获取相对于 data 中的索引
974
+ * @param row 行对象
975
+ */
976
+ getRowIndex(row: any): number;
977
+ /**
978
+ * 删除RowIndex这一行
979
+ */
980
+ removerRowIndex(rowIndex: number): void;
798
981
  }
799
982
 
983
+ declare type TableInstance = InstanceType<typeof VxeTable>;
984
+
800
985
  /** array */
801
986
  export declare function toArray<T>(target: T | T[]): T[];
802
987
 
@@ -855,7 +1040,26 @@ declare interface TypeSearchItem extends RecordAny {
855
1040
  * { type: 'date', name: 'd2', label: '日期范围', multiple: true, defaultValue: '2024-07-01,2024-08-07' },
856
1041
  * ```
857
1042
  */
858
- export declare function useOrchiskySearch(list: TypeSearchItem[]): readonly [ Ref<{
1043
+ export declare function useOrcSearch(list: TypeSearchItem[]): readonly [ Ref<{
1044
+ [x: string]: any;
1045
+ type?: string | undefined;
1046
+ name: string;
1047
+ label: string;
1048
+ defaultValue?: string | number | boolean | string[] | undefined;
1049
+ show?: boolean | undefined;
1050
+ min?: number | undefined;
1051
+ max?: number | undefined;
1052
+ multiple?: boolean | undefined;
1053
+ options?: {
1054
+ label: string;
1055
+ value: string;
1056
+ disabled?: boolean | undefined;
1057
+ }[] | undefined;
1058
+ format?: string | undefined;
1059
+ showTime?: boolean | undefined;
1060
+ required?: boolean | undefined;
1061
+ rules?: RecordAny | RecordAny[] | undefined;
1062
+ }[], {
859
1063
  [x: string]: any;
860
1064
  type?: string | undefined;
861
1065
  name: string;
@@ -874,9 +1078,9 @@ export declare function useOrchiskySearch(list: TypeSearchItem[]): readonly [ Re
874
1078
  showTime?: boolean | undefined;
875
1079
  required?: boolean | undefined;
876
1080
  rules?: RecordAny | RecordAny[] | undefined;
877
- }[]>, Ref<RecordAny>];
1081
+ }[]>, Ref<RecordAny, RecordAny>];
878
1082
 
879
- export declare const useOrchiskyVxe: (option: TableOptionType) => {
1083
+ export declare const useOrcTable: (option: OrcTableOption) => {
880
1084
  tableRef: Ref<{
881
1085
  [x: string]: any;
882
1086
  loading: boolean;
@@ -898,6 +1102,27 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
898
1102
  getRowSeq: (row: any) => string | number;
899
1103
  getRowIndex: (row: any) => number;
900
1104
  removerRowIndex: (rowIndex: number) => void;
1105
+ }, TableExposeType | {
1106
+ [x: string]: any;
1107
+ loading: boolean;
1108
+ setLoading: (loading?: boolean | undefined) => void;
1109
+ dataInit: () => Promise<void>;
1110
+ loadData: (list: RecordAny_2[]) => void;
1111
+ getRowKey: () => string;
1112
+ getTableData: () => RecordAny_2[];
1113
+ getSelection: () => RecordAny_2[];
1114
+ getCheckboxKeySelection: (keys?: string[] | undefined) => RecordAny_2[];
1115
+ getReserveSelection: () => RecordAny_2[];
1116
+ clearSelection: () => void;
1117
+ insertRow: (record: RecordAny_2, row?: number | RecordAny_2 | undefined, isNext?: boolean | undefined) => Promise<{
1118
+ row: any;
1119
+ rows: any;
1120
+ }>;
1121
+ removeRows: () => void;
1122
+ checkRows: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
1123
+ getRowSeq: (row: any) => string | number;
1124
+ getRowIndex: (row: any) => number;
1125
+ removerRowIndex: (rowIndex: number) => void;
901
1126
  }>;
902
1127
  tableOptions: {
903
1128
  ref: (el: any) => void;
@@ -911,7 +1136,7 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
911
1136
  columns: TableColumnType[];
912
1137
  pageSize?: number | undefined;
913
1138
  pageSizeOptions?: number[] | undefined;
914
- selectedType?: "radio" | "checkbox" | undefined;
1139
+ selectedType?: "checkbox" | "radio" | undefined;
915
1140
  requiredKeys?: string[] | undefined;
916
1141
  firstLoad?: boolean | undefined;
917
1142
  tooltip?: boolean | "title" | "tooltip" | "ellipsis" | undefined;
@@ -939,9 +1164,10 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
939
1164
  skinRowStyle?: CssType | undefined;
940
1165
  skinRowText?: string | undefined;
941
1166
  rules?: VxeTablePropTypes<VxeTableDataRow> | undefined;
942
- filterConfig?: VxeTablePropTypes<VxeTableDataRow> | undefined;
943
1167
  scrollX?: VxeTablePropTypes | undefined;
944
1168
  scrollY?: VxeTablePropTypes | undefined;
1169
+ selectedProps?: any;
1170
+ tableProps?: ( VxeTableProps<any> & VxeTableEventProps<any>) | undefined;
945
1171
  };
946
1172
  tableUtils: {
947
1173
  getRowKey(): string;
@@ -1139,8 +1365,183 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
1139
1365
  connect: (toolbar: VxeToolbarConstructor | VxeToolbarInstance) => Promise<void>;
1140
1366
  focus: () => Promise<void>;
1141
1367
  blur: () => Promise<void>;
1368
+ }, ( TablePublicMethods<VxeTableDataRow> & RecordAny_2) | {
1369
+ [x: string]: any;
1370
+ clearAll: () => Promise<void>;
1371
+ syncData: () => Promise<void>;
1372
+ updateData: () => Promise<void>;
1373
+ loadData: (data: any[]) => Promise<any>;
1374
+ reloadData: (data: any[]) => Promise<void>;
1375
+ reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
1376
+ loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
1377
+ loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
1378
+ reloadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
1379
+ getRowNode: (trElem: HTMLElement) => {
1380
+ rowid: string;
1381
+ item: any;
1382
+ items: any[];
1383
+ index: number;
1384
+ parent?: any;
1385
+ } | null;
1386
+ getColumnNode: (cellElem: HTMLElement) => {
1387
+ colid: string;
1388
+ item: VxeTableDefines.ColumnInfo<VxeTableDataRow>;
1389
+ items: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1390
+ index: number;
1391
+ parent?: VxeTableDefines.ColumnInfo<VxeTableDataRow> | undefined;
1392
+ } | null;
1393
+ getRowSeq: (row: any) => string | number;
1394
+ getRowIndex: (row: any) => number;
1395
+ getVTRowIndex: (row: any) => number;
1396
+ getVMRowIndex: (row: any) => number;
1397
+ getColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
1398
+ getVTColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
1399
+ getVMColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
1400
+ createData: (records: any[]) => Promise<any[]>;
1401
+ createRow: (records: any) => Promise<any>;
1402
+ revertData: (rows?: any, field?: string | undefined) => Promise<any>;
1403
+ clearData: (rows?: any, field?: string | undefined) => Promise<any>;
1404
+ isInsertByRow: (row: any) => boolean;
1405
+ removeInsertRow: () => Promise<{
1406
+ row: any;
1407
+ rows: any[];
1408
+ }>;
1409
+ isUpdateByRow: (row: any, field?: string | null | undefined) => boolean;
1410
+ getColumns: {
1411
+ (): VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1412
+ (columnIndex?: number | undefined): VxeTableDefines.ColumnInfo<VxeTableDataRow>;
1413
+ };
1414
+ getColumnById: (colid: string | null) => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
1415
+ getColumnByField: (field: string | null) => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
1416
+ getTableColumn: () => {
1417
+ collectColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1418
+ fullColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1419
+ visibleColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1420
+ tableColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
1421
+ };
1422
+ getData: {
1423
+ (): VxeTableDataRow[];
1424
+ (rowIndex: number): VxeTableDataRow;
1425
+ };
1426
+ getCheckboxRecords: (isFull?: boolean | undefined) => VxeTableDataRow[];
1427
+ getParentRow: (rowOrRowid: any) => VxeTableDataRow | null;
1428
+ getRowById: (rowid: string | number | null) => VxeTableDataRow | null;
1429
+ getRowid: (row: any) => string;
1430
+ getTableData: () => {
1431
+ fullData: VxeTableDataRow[];
1432
+ visibleData: VxeTableDataRow[];
1433
+ tableData: VxeTableDataRow[];
1434
+ footerData: VxeTableDataRow[][];
1435
+ };
1436
+ setColumnFixed: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>, fixed: VxeColumnPropTypes) => Promise<void>;
1437
+ clearColumnFixed: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
1438
+ hideColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
1439
+ showColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
1440
+ setColumnWidth: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>, width: string | number) => Promise<void>;
1441
+ getColumnWidth: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => number;
1442
+ resetColumn: (options?: boolean | {
1443
+ visible?: boolean | undefined;
1444
+ resizable?: boolean | undefined;
1445
+ fixed?: boolean | undefined;
1446
+ order?: boolean | undefined;
1447
+ } | undefined) => Promise<void>;
1448
+ refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
1449
+ refreshScroll: () => Promise<void>;
1450
+ recalculate: (refull?: boolean | undefined) => Promise<void>;
1451
+ openTooltip: (target: HTMLElement, content: string | number) => Promise<any>;
1452
+ closeTooltip: () => Promise<any>;
1453
+ setCheckboxRow: (rows: any, checked: boolean) => Promise<any>;
1454
+ isAllCheckboxChecked: () => boolean;
1455
+ isAllCheckboxIndeterminate: () => boolean;
1456
+ isCheckedByCheckboxRow: (row: any) => boolean;
1457
+ isIndeterminateByCheckboxRow: (row: any) => boolean;
1458
+ toggleCheckboxRow: (row: any) => Promise<any>;
1459
+ setAllCheckboxRow: (checked: boolean) => Promise<any>;
1460
+ getRadioReserveRecord: (isFull?: boolean | undefined) => any[];
1461
+ clearRadioReserve: () => Promise<any>;
1462
+ getCheckboxReserveRecords: (isFull?: boolean | undefined) => any[];
1463
+ getCheckboxIndeterminateRecords: (isFull?: boolean | undefined) => any[];
1464
+ clearCheckboxReserve: () => Promise<any>;
1465
+ toggleAllCheckboxRow: () => Promise<any>;
1466
+ clearCheckboxRow: () => Promise<any>;
1467
+ setCurrentRow: (row: any) => Promise<any>;
1468
+ isCheckedByRadioRow: (row: any) => boolean;
1469
+ setRadioRow: (row: any) => Promise<any>;
1470
+ setPendingRow: (rows: any, status: boolean) => Promise<any>;
1471
+ togglePendingRow: (rows: any) => Promise<any>;
1472
+ getPendingRecords: () => VxeTableDataRow[];
1473
+ hasPendingByRow: (row: any) => boolean;
1474
+ clearPendingRow: () => Promise<any>;
1475
+ clearMergeCells: () => Promise<any>;
1476
+ clearMergeFooterItems: () => Promise<any>;
1477
+ clearCurrentRow: () => Promise<any>;
1478
+ clearRadioRow: () => Promise<any>;
1479
+ getMergeCells: () => VxeTableDefines.MergeInfo[];
1480
+ getMergeFooterItems: () => VxeTableDefines.MergeInfo[];
1481
+ getCurrentColumn: () => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
1482
+ getCurrentRecord: () => VxeTableDataRow | null;
1483
+ getRadioRecord: (isFull?: boolean | undefined) => VxeTableDataRow | null;
1484
+ setCurrentColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
1485
+ clearCurrentColumn: () => Promise<void>;
1486
+ sort: {
1487
+ (field: string, order?: VxeTablePropTypes | undefined): Promise<void>;
1488
+ (sortConfs: VxeTableDefines.SortConfs, order?: VxeTablePropTypes | undefined): Promise<void>;
1489
+ (sortConfs: VxeTableDefines.SortConfs[], order?: VxeTablePropTypes | undefined): Promise<void>;
1490
+ };
1491
+ clearSort: (fieldOrColumn?: string | VxeTableDefines.ColumnInfo<any> | null | undefined) => Promise<void>;
1492
+ isSort: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => boolean;
1493
+ getSortColumns: () => VxeTableDefines.SortCheckedParams<VxeTableDataRow>[];
1494
+ closeFilter: () => Promise<any>;
1495
+ isFilter: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any> | null) => boolean;
1496
+ isActiveFilterByColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any> | null) => boolean;
1497
+ isRowExpandLoaded: (row: any) => boolean;
1498
+ clearRowExpandLoaded: (row: any) => Promise<void>;
1499
+ reloadRowExpand: (row: any) => Promise<void>;
1500
+ reloadExpandContent: (row: any) => Promise<void>;
1501
+ toggleRowExpand: (row: any) => Promise<void>;
1502
+ setAllRowExpand: (checked: boolean) => Promise<void>;
1503
+ setRowExpand: (rows: any, checked: boolean) => Promise<void>;
1504
+ isRowExpandByRow: (row: any) => boolean;
1505
+ isExpandByRow: (row: any) => boolean;
1506
+ clearRowExpand: () => Promise<void>;
1507
+ clearRowExpandReserve: () => Promise<void>;
1508
+ getRowExpandRecords: () => VxeTableDataRow[];
1509
+ getTreeExpandRecords: () => VxeTableDataRow[];
1510
+ isTreeExpandLoaded: (row: any) => boolean;
1511
+ clearTreeExpandLoaded: (row: any) => Promise<any>;
1512
+ reloadTreeExpand: (row: any) => Promise<any>;
1513
+ reloadTreeChilds: (row: any) => Promise<any>;
1514
+ toggleTreeExpand: (row: any) => Promise<any>;
1515
+ setAllTreeExpand: (checked: boolean) => Promise<void>;
1516
+ setTreeExpand: (rows: any, checked: boolean) => Promise<void>;
1517
+ isTreeExpandByRow: (row: any) => boolean;
1518
+ clearTreeExpand: () => Promise<void>;
1519
+ clearTreeExpandReserve: () => Promise<void>;
1520
+ getScroll: () => {
1521
+ virtualX: boolean;
1522
+ virtualY: boolean;
1523
+ scrollTop: number;
1524
+ scrollLeft: number;
1525
+ };
1526
+ scrollTo: (scrollLeft: number | null, scrollTop?: number | null | undefined) => Promise<void>;
1527
+ scrollToRow: (row: any, fieldOrColumn?: string | VxeTableDefines.ColumnInfo<any> | undefined) => Promise<any>;
1528
+ scrollToColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<any>;
1529
+ clearScroll: () => Promise<any>;
1530
+ updateFooter: () => Promise<any>;
1531
+ updateStatus: (params: {
1532
+ row: VxeTableDataRow;
1533
+ column: VxeTableDefines.ColumnInfo<VxeTableDataRow>;
1534
+ }, cellValue?: any) => Promise<any>;
1535
+ removeMergeCells: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<VxeTableDefines.MergeInfo[]>;
1536
+ removeMergeFooterItems: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<VxeTableDefines.MergeInfo[]>;
1537
+ setMergeCells: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<any>;
1538
+ setMergeFooterItems: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<any>;
1539
+ updateCellAreas: () => Promise<void>;
1540
+ connect: (toolbar: VxeToolbarConstructor | VxeToolbarInstance) => Promise<void>;
1541
+ focus: () => Promise<void>;
1542
+ blur: () => Promise<void>;
1142
1543
  }>;
1143
- selectedKeys: Ref<string[]>;
1544
+ selectedKeys: Ref<string[], string[]>;
1144
1545
  };
1145
1546
 
1146
1547
  export { }