@shaonq/vue 1.1.4 → 1.1.8
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 +373 -70
- package/lib/index.js +2011 -1903
- package/lib/style.css +1 -1
- package/package.json +3 -1
package/lib/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ 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';
|
|
9
10
|
import { VxeTableDataRow } from 'vxe-table';
|
|
10
11
|
import { VxeTableDefines } from 'vxe-table';
|
|
@@ -123,6 +124,7 @@ export declare const locale: {
|
|
|
123
124
|
showAlpha: string;
|
|
124
125
|
showLabel: string;
|
|
125
126
|
option: string;
|
|
127
|
+
options: string;
|
|
126
128
|
staticData: string;
|
|
127
129
|
remoteData: string;
|
|
128
130
|
remoteFunc: string;
|
|
@@ -195,6 +197,13 @@ export declare const locale: {
|
|
|
195
197
|
validatorPattern: string;
|
|
196
198
|
showWordLimit: string;
|
|
197
199
|
maxLength: string;
|
|
200
|
+
textAlign: string;
|
|
201
|
+
fontSize: string;
|
|
202
|
+
fontFamily: string;
|
|
203
|
+
rowspan: string;
|
|
204
|
+
colspan: string;
|
|
205
|
+
borderTop: string;
|
|
206
|
+
borderLeft: string;
|
|
198
207
|
};
|
|
199
208
|
side: {
|
|
200
209
|
fields: {
|
|
@@ -306,6 +315,7 @@ export declare const locale: {
|
|
|
306
315
|
showAlpha: string;
|
|
307
316
|
showLabel: string;
|
|
308
317
|
option: string;
|
|
318
|
+
options: string;
|
|
309
319
|
staticData: string;
|
|
310
320
|
remoteData: string;
|
|
311
321
|
remoteFunc: string;
|
|
@@ -378,6 +388,13 @@ export declare const locale: {
|
|
|
378
388
|
validatorPattern: string;
|
|
379
389
|
showWordLimit: string;
|
|
380
390
|
maxLength: string;
|
|
391
|
+
textAlign: string;
|
|
392
|
+
fontSize: string;
|
|
393
|
+
fontFamily: string;
|
|
394
|
+
rowspan: string;
|
|
395
|
+
colspan: string;
|
|
396
|
+
borderTop: string;
|
|
397
|
+
borderLeft: string;
|
|
381
398
|
};
|
|
382
399
|
side: {
|
|
383
400
|
fields: {
|
|
@@ -467,15 +484,9 @@ export declare function mergeConfig(defaults: RecordAny, overrides: RecordAny, i
|
|
|
467
484
|
/** omit object */
|
|
468
485
|
export declare function omitObject<T extends RecordAny>(obj: T, keys?: string | string[]): T;
|
|
469
486
|
|
|
470
|
-
export declare const OrchiskyPrint: DefineComponent<{
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
};
|
|
474
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
475
|
-
data: {
|
|
476
|
-
type: ObjectConstructor;
|
|
477
|
-
};
|
|
478
|
-
}>>, {}, {}>;
|
|
487
|
+
export declare const OrchiskyPrint: DefineComponent<{}, {
|
|
488
|
+
getHtml(): any;
|
|
489
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
479
490
|
|
|
480
491
|
export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<{
|
|
481
492
|
loading: BooleanConstructor;
|
|
@@ -501,8 +512,8 @@ export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<
|
|
|
501
512
|
default: string;
|
|
502
513
|
};
|
|
503
514
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
504
|
-
"update:model-value": (...args: any[]) => void;
|
|
505
515
|
onSearch: (...args: any[]) => void;
|
|
516
|
+
"update:model-value": (...args: any[]) => void;
|
|
506
517
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
507
518
|
loading: BooleanConstructor;
|
|
508
519
|
readonly: BooleanConstructor;
|
|
@@ -531,11 +542,11 @@ export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<
|
|
|
531
542
|
onOnSearch?: ((...args: any[]) => any) | undefined;
|
|
532
543
|
}, {
|
|
533
544
|
options: TypeSearchItem[];
|
|
534
|
-
|
|
545
|
+
readonly: boolean;
|
|
535
546
|
size: string;
|
|
547
|
+
labelWidth: string;
|
|
536
548
|
modelValue: Record<string, any>;
|
|
537
549
|
loading: boolean;
|
|
538
|
-
readonly: boolean;
|
|
539
550
|
inputWidth: string;
|
|
540
551
|
}, {}>, {
|
|
541
552
|
head?(_: {}): any;
|
|
@@ -545,7 +556,7 @@ export declare const OrchiskySearch: __VLS_WithTemplateSlots_2< DefineComponent<
|
|
|
545
556
|
export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
546
557
|
title: StringConstructor;
|
|
547
558
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
548
|
-
height: (
|
|
559
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
549
560
|
/** 隐藏工具栏 */
|
|
550
561
|
hideToolbar: BooleanConstructor;
|
|
551
562
|
hidePagination: BooleanConstructor;
|
|
@@ -565,7 +576,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
565
576
|
};
|
|
566
577
|
/** 配置文件 */
|
|
567
578
|
option: {
|
|
568
|
-
type: PropType<
|
|
579
|
+
type: PropType<OrchiskyTableOptionType>;
|
|
569
580
|
default: () => {
|
|
570
581
|
columns: never[];
|
|
571
582
|
};
|
|
@@ -591,22 +602,22 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
591
602
|
getRowSeq(row: any): string | number;
|
|
592
603
|
getRowIndex(row: any): number;
|
|
593
604
|
removerRowIndex(rowIndex: number): void; /** 未修改之前的数据 */
|
|
594
|
-
loading: Ref<boolean>;
|
|
605
|
+
loading: Ref<boolean, boolean>;
|
|
595
606
|
setLoading: typeof setLoading;
|
|
596
607
|
/** 执行搜索 ,是否返回第一页 */
|
|
597
608
|
dataInit(isFirst?: boolean | undefined): Promise<void>;
|
|
598
609
|
/** 加载数据 */
|
|
599
610
|
loadData(list: any[]): void;
|
|
600
611
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
601
|
-
onReset: (...args: any[]) => void;
|
|
602
612
|
change: (...args: any[]) => void;
|
|
613
|
+
onReset: (...args: any[]) => void;
|
|
603
614
|
"update:selectedKeys": (...args: any[]) => void;
|
|
604
615
|
cellClick: (...args: any[]) => void;
|
|
605
616
|
confirm: (...args: any[]) => void;
|
|
606
617
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
607
618
|
title: StringConstructor;
|
|
608
619
|
/** auto(铺满父容器,必须确保存在父节点且不允许存在相邻元素 ,), %, px */
|
|
609
|
-
height: (
|
|
620
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
610
621
|
/** 隐藏工具栏 */
|
|
611
622
|
hideToolbar: BooleanConstructor;
|
|
612
623
|
hidePagination: BooleanConstructor;
|
|
@@ -626,7 +637,7 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
626
637
|
};
|
|
627
638
|
/** 配置文件 */
|
|
628
639
|
option: {
|
|
629
|
-
type: PropType<
|
|
640
|
+
type: PropType<OrchiskyTableOptionType>;
|
|
630
641
|
default: () => {
|
|
631
642
|
columns: never[];
|
|
632
643
|
};
|
|
@@ -643,9 +654,9 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
643
654
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
|
644
655
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
645
656
|
}, {
|
|
646
|
-
data: unknown[];
|
|
647
|
-
option: TableOptionType;
|
|
648
657
|
size: "small" | "mini" | "medium";
|
|
658
|
+
data: unknown[];
|
|
659
|
+
option: OrchiskyTableOptionType;
|
|
649
660
|
hideToolbar: boolean;
|
|
650
661
|
hidePagination: boolean;
|
|
651
662
|
selectedKeys: unknown[];
|
|
@@ -664,50 +675,6 @@ export declare const OrchiskyTable: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
664
675
|
footer?(_: {}): any;
|
|
665
676
|
}>;
|
|
666
677
|
|
|
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
678
|
/**
|
|
712
679
|
* table option type
|
|
713
680
|
* @example
|
|
@@ -721,7 +688,7 @@ declare interface TableColumnType extends RecordAny_2 {
|
|
|
721
688
|
* }
|
|
722
689
|
* ```
|
|
723
690
|
*/
|
|
724
|
-
export declare interface
|
|
691
|
+
export declare interface OrchiskyTableOptionType extends RecordAny_2 {
|
|
725
692
|
/** 请求地址 */
|
|
726
693
|
useErrData?: <T = RecordAny_2>(config: RecordAny_2) => Promise<[boolean, T]>;
|
|
727
694
|
url?: string;
|
|
@@ -797,6 +764,127 @@ export declare interface TableOptionType extends RecordAny_2 {
|
|
|
797
764
|
scrollY?: VxeTablePropTypes.ScrollY;
|
|
798
765
|
}
|
|
799
766
|
|
|
767
|
+
export declare const OrchiskyTextarea: DefineComponent<{
|
|
768
|
+
modelValue: {
|
|
769
|
+
type: StringConstructor;
|
|
770
|
+
default: string;
|
|
771
|
+
};
|
|
772
|
+
toolbar: {
|
|
773
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
774
|
+
default: string;
|
|
775
|
+
};
|
|
776
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
777
|
+
"update:modelValue": (...args: any[]) => void;
|
|
778
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
779
|
+
modelValue: {
|
|
780
|
+
type: StringConstructor;
|
|
781
|
+
default: string;
|
|
782
|
+
};
|
|
783
|
+
toolbar: {
|
|
784
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
785
|
+
default: string;
|
|
786
|
+
};
|
|
787
|
+
}>> & {
|
|
788
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
modelValue: string;
|
|
791
|
+
toolbar: string | unknown[];
|
|
792
|
+
}, {}>;
|
|
793
|
+
|
|
794
|
+
export declare type RecordAny = Record<string, any>;
|
|
795
|
+
|
|
796
|
+
declare type RecordAny_2 = Record<string, any>;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* set path object
|
|
800
|
+
* @example
|
|
801
|
+
* ```
|
|
802
|
+
* var b = {a:{b:1}}
|
|
803
|
+
* setData(b,'a.b',2)
|
|
804
|
+
* // {a:{b:2}}
|
|
805
|
+
* ```
|
|
806
|
+
*/
|
|
807
|
+
export declare function setData(object: RecordAny, path: string, defaultValue?: any): RecordAny;
|
|
808
|
+
|
|
809
|
+
declare function setLoading(val?: boolean): void;
|
|
810
|
+
|
|
811
|
+
/** column type */
|
|
812
|
+
declare interface TableColumnType extends RecordAny_2 {
|
|
813
|
+
show?: boolean;
|
|
814
|
+
dataIndex: string;
|
|
815
|
+
title?: string;
|
|
816
|
+
width?: number;
|
|
817
|
+
sort?: boolean;
|
|
818
|
+
/** 开启编辑 */
|
|
819
|
+
cell?: boolean;
|
|
820
|
+
/** 影响性能 cell = true 有效 只显示编辑内容 */
|
|
821
|
+
div?: boolean;
|
|
822
|
+
/** 没内容时候得提示 */
|
|
823
|
+
placeholder?: string;
|
|
824
|
+
tooltip?: boolean;
|
|
825
|
+
ellipsis?: boolean;
|
|
826
|
+
align?: VxeColumnPropTypes.Align;
|
|
827
|
+
headerAlign?: VxeColumnPropTypes.HeaderAlign;
|
|
828
|
+
footerAlign?: VxeColumnPropTypes.FooterAlign;
|
|
829
|
+
format?: (val: any, record?: RecordAny_2) => string;
|
|
830
|
+
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
831
|
+
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
832
|
+
help?: VxeColumnPropTypes.TitlePrefix;
|
|
833
|
+
filters?: VxeColumnPropTypes.Filter[];
|
|
834
|
+
filterMultiple?: VxeColumnPropTypes.FilterMultiple;
|
|
835
|
+
filterMethod?: VxeColumnPropTypes.FilterMethod;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
declare interface TableExposeType extends TableGridTwoType {
|
|
839
|
+
loading: boolean;
|
|
840
|
+
setLoading: (loading?: boolean) => void;
|
|
841
|
+
/** 请求数据 */
|
|
842
|
+
dataInit: () => Promise<void>;
|
|
843
|
+
/** 重置表单数据 */
|
|
844
|
+
loadData: (list: RecordAny_2[]) => void;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
declare interface TableGridTwoType extends RecordAny_2 {
|
|
848
|
+
/** 读取配置的rowKey 默认 _X_ROW_KEY */
|
|
849
|
+
getRowKey(): string;
|
|
850
|
+
/** 读取当前页数据 */
|
|
851
|
+
getTableData(): RecordAny_2[];
|
|
852
|
+
/** 读取选中行 */
|
|
853
|
+
getSelection(): RecordAny_2[];
|
|
854
|
+
/** 不支持夸行选择,可读取rowKey重复的数据 */
|
|
855
|
+
getCheckboxKeySelection(keys?: string[]): RecordAny_2[];
|
|
856
|
+
/** option.reserve = true 读取所有跨页选中数据 */
|
|
857
|
+
getReserveSelection(): RecordAny_2[];
|
|
858
|
+
/** 清空选中行 */
|
|
859
|
+
clearSelection(): void;
|
|
860
|
+
/** 原insertAt 往表格插入临时数据,从指定位置插入一行或多行;第二个参数:row 指定( isNext +1 )位置、null从第一行插入、-1 从最后插入 */
|
|
861
|
+
insertRow(record: RecordAny_2, row?: RecordAny_2 | number, isNext?: boolean): Promise<{
|
|
862
|
+
row: any;
|
|
863
|
+
rows: any;
|
|
864
|
+
}>;
|
|
865
|
+
/** 删除复选框选中的行数据 */
|
|
866
|
+
removeRows(): void;
|
|
867
|
+
/**
|
|
868
|
+
* 选中行数据校验
|
|
869
|
+
* @param list 默认 所有选择的数据
|
|
870
|
+
*/
|
|
871
|
+
checkRows(list?: RecordAny_2[]): Promise<[string, RecordAny_2[]]>;
|
|
872
|
+
/**
|
|
873
|
+
* 根据 row 获取行的序号
|
|
874
|
+
* @param row 行对象
|
|
875
|
+
*/
|
|
876
|
+
getRowSeq(row: any): string | number;
|
|
877
|
+
/**
|
|
878
|
+
* 根据 row 获取相对于 data 中的索引
|
|
879
|
+
* @param row 行对象
|
|
880
|
+
*/
|
|
881
|
+
getRowIndex(row: any): number;
|
|
882
|
+
/**
|
|
883
|
+
* 删除RowIndex这一行
|
|
884
|
+
*/
|
|
885
|
+
removerRowIndex(rowIndex: number): void;
|
|
886
|
+
}
|
|
887
|
+
|
|
800
888
|
/** array */
|
|
801
889
|
export declare function toArray<T>(target: T | T[]): T[];
|
|
802
890
|
|
|
@@ -874,9 +962,28 @@ export declare function useOrchiskySearch(list: TypeSearchItem[]): readonly [ Re
|
|
|
874
962
|
showTime?: boolean | undefined;
|
|
875
963
|
required?: boolean | undefined;
|
|
876
964
|
rules?: RecordAny | RecordAny[] | undefined;
|
|
877
|
-
}[]
|
|
965
|
+
}[], {
|
|
966
|
+
[x: string]: any;
|
|
967
|
+
type?: string | undefined;
|
|
968
|
+
name: string;
|
|
969
|
+
label: string;
|
|
970
|
+
defaultValue?: string | number | boolean | string[] | undefined;
|
|
971
|
+
show?: boolean | undefined;
|
|
972
|
+
min?: number | undefined;
|
|
973
|
+
max?: number | undefined;
|
|
974
|
+
multiple?: boolean | undefined;
|
|
975
|
+
options?: {
|
|
976
|
+
label: string;
|
|
977
|
+
value: string;
|
|
978
|
+
disabled?: boolean | undefined;
|
|
979
|
+
}[] | undefined;
|
|
980
|
+
format?: string | undefined;
|
|
981
|
+
showTime?: boolean | undefined;
|
|
982
|
+
required?: boolean | undefined;
|
|
983
|
+
rules?: RecordAny | RecordAny[] | undefined;
|
|
984
|
+
}[]>, Ref<RecordAny, RecordAny>];
|
|
878
985
|
|
|
879
|
-
export declare const useOrchiskyVxe: (option:
|
|
986
|
+
export declare const useOrchiskyVxe: (option: OrchiskyTableOptionType) => {
|
|
880
987
|
tableRef: Ref<{
|
|
881
988
|
[x: string]: any;
|
|
882
989
|
loading: boolean;
|
|
@@ -898,6 +1005,27 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
|
|
|
898
1005
|
getRowSeq: (row: any) => string | number;
|
|
899
1006
|
getRowIndex: (row: any) => number;
|
|
900
1007
|
removerRowIndex: (rowIndex: number) => void;
|
|
1008
|
+
}, TableExposeType | {
|
|
1009
|
+
[x: string]: any;
|
|
1010
|
+
loading: boolean;
|
|
1011
|
+
setLoading: (loading?: boolean | undefined) => void;
|
|
1012
|
+
dataInit: () => Promise<void>;
|
|
1013
|
+
loadData: (list: RecordAny_2[]) => void;
|
|
1014
|
+
getRowKey: () => string;
|
|
1015
|
+
getTableData: () => RecordAny_2[];
|
|
1016
|
+
getSelection: () => RecordAny_2[];
|
|
1017
|
+
getCheckboxKeySelection: (keys?: string[] | undefined) => RecordAny_2[];
|
|
1018
|
+
getReserveSelection: () => RecordAny_2[];
|
|
1019
|
+
clearSelection: () => void;
|
|
1020
|
+
insertRow: (record: RecordAny_2, row?: number | RecordAny_2 | undefined, isNext?: boolean | undefined) => Promise<{
|
|
1021
|
+
row: any;
|
|
1022
|
+
rows: any;
|
|
1023
|
+
}>;
|
|
1024
|
+
removeRows: () => void;
|
|
1025
|
+
checkRows: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
|
|
1026
|
+
getRowSeq: (row: any) => string | number;
|
|
1027
|
+
getRowIndex: (row: any) => number;
|
|
1028
|
+
removerRowIndex: (rowIndex: number) => void;
|
|
901
1029
|
}>;
|
|
902
1030
|
tableOptions: {
|
|
903
1031
|
ref: (el: any) => void;
|
|
@@ -914,8 +1042,8 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
|
|
|
914
1042
|
selectedType?: "radio" | "checkbox" | undefined;
|
|
915
1043
|
requiredKeys?: string[] | undefined;
|
|
916
1044
|
firstLoad?: boolean | undefined;
|
|
917
|
-
tooltip?: boolean | "
|
|
918
|
-
footerTooltip?: boolean | "
|
|
1045
|
+
tooltip?: boolean | "tooltip" | "title" | "ellipsis" | undefined;
|
|
1046
|
+
footerTooltip?: boolean | "tooltip" | "title" | "ellipsis" | undefined;
|
|
919
1047
|
headerStyle?: ((record: RecordAny_2 & {
|
|
920
1048
|
column: {
|
|
921
1049
|
property: string;
|
|
@@ -1139,8 +1267,183 @@ export declare const useOrchiskyVxe: (option: TableOptionType) => {
|
|
|
1139
1267
|
connect: (toolbar: VxeToolbarConstructor | VxeToolbarInstance) => Promise<void>;
|
|
1140
1268
|
focus: () => Promise<void>;
|
|
1141
1269
|
blur: () => Promise<void>;
|
|
1270
|
+
}, ( TablePublicMethods<VxeTableDataRow> & RecordAny_2) | {
|
|
1271
|
+
[x: string]: any;
|
|
1272
|
+
clearAll: () => Promise<void>;
|
|
1273
|
+
syncData: () => Promise<void>;
|
|
1274
|
+
updateData: () => Promise<void>;
|
|
1275
|
+
loadData: (data: any[]) => Promise<any>;
|
|
1276
|
+
reloadData: (data: any[]) => Promise<void>;
|
|
1277
|
+
reloadRow: (rows: any, record?: any, field?: string | undefined) => Promise<void>;
|
|
1278
|
+
loadTreeChildren: (row: any, children: any[]) => Promise<any[]>;
|
|
1279
|
+
loadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
|
|
1280
|
+
reloadColumn: (columns: (VxeTableDefines.ColumnInfo<any> | VxeTableDefines.ColumnOptions<any>)[]) => Promise<any>;
|
|
1281
|
+
getRowNode: (trElem: HTMLElement) => {
|
|
1282
|
+
rowid: string;
|
|
1283
|
+
item: any;
|
|
1284
|
+
items: any[];
|
|
1285
|
+
index: number;
|
|
1286
|
+
parent?: any;
|
|
1287
|
+
} | null;
|
|
1288
|
+
getColumnNode: (cellElem: HTMLElement) => {
|
|
1289
|
+
colid: string;
|
|
1290
|
+
item: VxeTableDefines.ColumnInfo<VxeTableDataRow>;
|
|
1291
|
+
items: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1292
|
+
index: number;
|
|
1293
|
+
parent?: VxeTableDefines.ColumnInfo<VxeTableDataRow> | undefined;
|
|
1294
|
+
} | null;
|
|
1295
|
+
getRowSeq: (row: any) => string | number;
|
|
1296
|
+
getRowIndex: (row: any) => number;
|
|
1297
|
+
getVTRowIndex: (row: any) => number;
|
|
1298
|
+
getVMRowIndex: (row: any) => number;
|
|
1299
|
+
getColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
|
|
1300
|
+
getVTColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
|
|
1301
|
+
getVMColumnIndex: (column: VxeTableDefines.ColumnInfo<any>) => number;
|
|
1302
|
+
createData: (records: any[]) => Promise<any[]>;
|
|
1303
|
+
createRow: (records: any) => Promise<any>;
|
|
1304
|
+
revertData: (rows?: any, field?: string | undefined) => Promise<any>;
|
|
1305
|
+
clearData: (rows?: any, field?: string | undefined) => Promise<any>;
|
|
1306
|
+
isInsertByRow: (row: any) => boolean;
|
|
1307
|
+
removeInsertRow: () => Promise<{
|
|
1308
|
+
row: any;
|
|
1309
|
+
rows: any[];
|
|
1310
|
+
}>;
|
|
1311
|
+
isUpdateByRow: (row: any, field?: string | null | undefined) => boolean;
|
|
1312
|
+
getColumns: {
|
|
1313
|
+
(): VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1314
|
+
(columnIndex?: number | undefined): VxeTableDefines.ColumnInfo<VxeTableDataRow>;
|
|
1315
|
+
};
|
|
1316
|
+
getColumnById: (colid: string | null) => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
|
|
1317
|
+
getColumnByField: (field: string | null) => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
|
|
1318
|
+
getTableColumn: () => {
|
|
1319
|
+
collectColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1320
|
+
fullColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1321
|
+
visibleColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1322
|
+
tableColumn: VxeTableDefines.ColumnInfo<VxeTableDataRow>[];
|
|
1323
|
+
};
|
|
1324
|
+
getData: {
|
|
1325
|
+
(): VxeTableDataRow[];
|
|
1326
|
+
(rowIndex: number): VxeTableDataRow;
|
|
1327
|
+
};
|
|
1328
|
+
getCheckboxRecords: (isFull?: boolean | undefined) => VxeTableDataRow[];
|
|
1329
|
+
getParentRow: (rowOrRowid: any) => VxeTableDataRow | null;
|
|
1330
|
+
getRowById: (rowid: string | number | null) => VxeTableDataRow | null;
|
|
1331
|
+
getRowid: (row: any) => string;
|
|
1332
|
+
getTableData: () => {
|
|
1333
|
+
fullData: VxeTableDataRow[];
|
|
1334
|
+
visibleData: VxeTableDataRow[];
|
|
1335
|
+
tableData: VxeTableDataRow[];
|
|
1336
|
+
footerData: VxeTableDataRow[][];
|
|
1337
|
+
};
|
|
1338
|
+
setColumnFixed: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>, fixed: VxeColumnPropTypes) => Promise<void>;
|
|
1339
|
+
clearColumnFixed: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
|
|
1340
|
+
hideColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
|
|
1341
|
+
showColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
|
|
1342
|
+
setColumnWidth: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>, width: string | number) => Promise<void>;
|
|
1343
|
+
getColumnWidth: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => number;
|
|
1344
|
+
resetColumn: (options?: boolean | {
|
|
1345
|
+
visible?: boolean | undefined;
|
|
1346
|
+
resizable?: boolean | undefined;
|
|
1347
|
+
fixed?: boolean | undefined;
|
|
1348
|
+
order?: boolean | undefined;
|
|
1349
|
+
} | undefined) => Promise<void>;
|
|
1350
|
+
refreshColumn: (resiveOrder?: boolean | undefined) => Promise<void>;
|
|
1351
|
+
refreshScroll: () => Promise<void>;
|
|
1352
|
+
recalculate: (refull?: boolean | undefined) => Promise<void>;
|
|
1353
|
+
openTooltip: (target: HTMLElement, content: string | number) => Promise<any>;
|
|
1354
|
+
closeTooltip: () => Promise<any>;
|
|
1355
|
+
setCheckboxRow: (rows: any, checked: boolean) => Promise<any>;
|
|
1356
|
+
isAllCheckboxChecked: () => boolean;
|
|
1357
|
+
isAllCheckboxIndeterminate: () => boolean;
|
|
1358
|
+
isCheckedByCheckboxRow: (row: any) => boolean;
|
|
1359
|
+
isIndeterminateByCheckboxRow: (row: any) => boolean;
|
|
1360
|
+
toggleCheckboxRow: (row: any) => Promise<any>;
|
|
1361
|
+
setAllCheckboxRow: (checked: boolean) => Promise<any>;
|
|
1362
|
+
getRadioReserveRecord: (isFull?: boolean | undefined) => any[];
|
|
1363
|
+
clearRadioReserve: () => Promise<any>;
|
|
1364
|
+
getCheckboxReserveRecords: (isFull?: boolean | undefined) => any[];
|
|
1365
|
+
getCheckboxIndeterminateRecords: (isFull?: boolean | undefined) => any[];
|
|
1366
|
+
clearCheckboxReserve: () => Promise<any>;
|
|
1367
|
+
toggleAllCheckboxRow: () => Promise<any>;
|
|
1368
|
+
clearCheckboxRow: () => Promise<any>;
|
|
1369
|
+
setCurrentRow: (row: any) => Promise<any>;
|
|
1370
|
+
isCheckedByRadioRow: (row: any) => boolean;
|
|
1371
|
+
setRadioRow: (row: any) => Promise<any>;
|
|
1372
|
+
setPendingRow: (rows: any, status: boolean) => Promise<any>;
|
|
1373
|
+
togglePendingRow: (rows: any) => Promise<any>;
|
|
1374
|
+
getPendingRecords: () => VxeTableDataRow[];
|
|
1375
|
+
hasPendingByRow: (row: any) => boolean;
|
|
1376
|
+
clearPendingRow: () => Promise<any>;
|
|
1377
|
+
clearMergeCells: () => Promise<any>;
|
|
1378
|
+
clearMergeFooterItems: () => Promise<any>;
|
|
1379
|
+
clearCurrentRow: () => Promise<any>;
|
|
1380
|
+
clearRadioRow: () => Promise<any>;
|
|
1381
|
+
getMergeCells: () => VxeTableDefines.MergeInfo[];
|
|
1382
|
+
getMergeFooterItems: () => VxeTableDefines.MergeInfo[];
|
|
1383
|
+
getCurrentColumn: () => VxeTableDefines.ColumnInfo<VxeTableDataRow> | null;
|
|
1384
|
+
getCurrentRecord: () => VxeTableDataRow | null;
|
|
1385
|
+
getRadioRecord: (isFull?: boolean | undefined) => VxeTableDataRow | null;
|
|
1386
|
+
setCurrentColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<void>;
|
|
1387
|
+
clearCurrentColumn: () => Promise<void>;
|
|
1388
|
+
sort: {
|
|
1389
|
+
(field: string, order?: VxeTablePropTypes | undefined): Promise<void>;
|
|
1390
|
+
(sortConfs: VxeTableDefines.SortConfs, order?: VxeTablePropTypes | undefined): Promise<void>;
|
|
1391
|
+
(sortConfs: VxeTableDefines.SortConfs[], order?: VxeTablePropTypes | undefined): Promise<void>;
|
|
1392
|
+
};
|
|
1393
|
+
clearSort: (fieldOrColumn?: string | VxeTableDefines.ColumnInfo<any> | null | undefined) => Promise<void>;
|
|
1394
|
+
isSort: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => boolean;
|
|
1395
|
+
getSortColumns: () => VxeTableDefines.SortCheckedParams<VxeTableDataRow>[];
|
|
1396
|
+
closeFilter: () => Promise<any>;
|
|
1397
|
+
isFilter: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any> | null) => boolean;
|
|
1398
|
+
isActiveFilterByColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any> | null) => boolean;
|
|
1399
|
+
isRowExpandLoaded: (row: any) => boolean;
|
|
1400
|
+
clearRowExpandLoaded: (row: any) => Promise<void>;
|
|
1401
|
+
reloadRowExpand: (row: any) => Promise<void>;
|
|
1402
|
+
reloadExpandContent: (row: any) => Promise<void>;
|
|
1403
|
+
toggleRowExpand: (row: any) => Promise<void>;
|
|
1404
|
+
setAllRowExpand: (checked: boolean) => Promise<void>;
|
|
1405
|
+
setRowExpand: (rows: any, checked: boolean) => Promise<void>;
|
|
1406
|
+
isRowExpandByRow: (row: any) => boolean;
|
|
1407
|
+
isExpandByRow: (row: any) => boolean;
|
|
1408
|
+
clearRowExpand: () => Promise<void>;
|
|
1409
|
+
clearRowExpandReserve: () => Promise<void>;
|
|
1410
|
+
getRowExpandRecords: () => VxeTableDataRow[];
|
|
1411
|
+
getTreeExpandRecords: () => VxeTableDataRow[];
|
|
1412
|
+
isTreeExpandLoaded: (row: any) => boolean;
|
|
1413
|
+
clearTreeExpandLoaded: (row: any) => Promise<any>;
|
|
1414
|
+
reloadTreeExpand: (row: any) => Promise<any>;
|
|
1415
|
+
reloadTreeChilds: (row: any) => Promise<any>;
|
|
1416
|
+
toggleTreeExpand: (row: any) => Promise<any>;
|
|
1417
|
+
setAllTreeExpand: (checked: boolean) => Promise<void>;
|
|
1418
|
+
setTreeExpand: (rows: any, checked: boolean) => Promise<void>;
|
|
1419
|
+
isTreeExpandByRow: (row: any) => boolean;
|
|
1420
|
+
clearTreeExpand: () => Promise<void>;
|
|
1421
|
+
clearTreeExpandReserve: () => Promise<void>;
|
|
1422
|
+
getScroll: () => {
|
|
1423
|
+
virtualX: boolean;
|
|
1424
|
+
virtualY: boolean;
|
|
1425
|
+
scrollTop: number;
|
|
1426
|
+
scrollLeft: number;
|
|
1427
|
+
};
|
|
1428
|
+
scrollTo: (scrollLeft: number | null, scrollTop?: number | null | undefined) => Promise<void>;
|
|
1429
|
+
scrollToRow: (row: any, fieldOrColumn?: string | VxeTableDefines.ColumnInfo<any> | undefined) => Promise<any>;
|
|
1430
|
+
scrollToColumn: (fieldOrColumn: string | VxeTableDefines.ColumnInfo<any>) => Promise<any>;
|
|
1431
|
+
clearScroll: () => Promise<any>;
|
|
1432
|
+
updateFooter: () => Promise<any>;
|
|
1433
|
+
updateStatus: (params: {
|
|
1434
|
+
row: VxeTableDataRow;
|
|
1435
|
+
column: VxeTableDefines.ColumnInfo<VxeTableDataRow>;
|
|
1436
|
+
}, cellValue?: any) => Promise<any>;
|
|
1437
|
+
removeMergeCells: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<VxeTableDefines.MergeInfo[]>;
|
|
1438
|
+
removeMergeFooterItems: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<VxeTableDefines.MergeInfo[]>;
|
|
1439
|
+
setMergeCells: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<any>;
|
|
1440
|
+
setMergeFooterItems: (merges: VxeTableDefines.MergeOptions<any> | VxeTableDefines.MergeOptions<any>[]) => Promise<any>;
|
|
1441
|
+
updateCellAreas: () => Promise<void>;
|
|
1442
|
+
connect: (toolbar: VxeToolbarConstructor | VxeToolbarInstance) => Promise<void>;
|
|
1443
|
+
focus: () => Promise<void>;
|
|
1444
|
+
blur: () => Promise<void>;
|
|
1142
1445
|
}>;
|
|
1143
|
-
selectedKeys: Ref<string[]>;
|
|
1446
|
+
selectedKeys: Ref<string[], string[]>;
|
|
1144
1447
|
};
|
|
1145
1448
|
|
|
1146
1449
|
export { }
|