@shaonq/vue 1.1.16 → 1.1.18
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 +113 -107
- package/lib/index.js +2369 -2345
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
|
|
|
38
38
|
|
|
39
39
|
declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
|
|
40
40
|
|
|
41
|
+
declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
|
|
42
|
+
|
|
41
43
|
declare type __VLS_Prettify<T> = {
|
|
42
44
|
[K in keyof T]: T[K];
|
|
43
45
|
} & {};
|
|
@@ -58,6 +60,10 @@ declare type __VLS_Prettify_5<T> = {
|
|
|
58
60
|
[K in keyof T]: T[K];
|
|
59
61
|
} & {};
|
|
60
62
|
|
|
63
|
+
declare type __VLS_Prettify_6<T> = {
|
|
64
|
+
[K in keyof T]: T[K];
|
|
65
|
+
} & {};
|
|
66
|
+
|
|
61
67
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
68
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
69
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
@@ -103,6 +109,15 @@ declare type __VLS_TypePropsToRuntimeProps_5<T> = {
|
|
|
103
109
|
};
|
|
104
110
|
};
|
|
105
111
|
|
|
112
|
+
declare type __VLS_TypePropsToRuntimeProps_6<T> = {
|
|
113
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
114
|
+
type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
|
|
115
|
+
} : {
|
|
116
|
+
type: PropType<T[K]>;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
106
121
|
declare type __VLS_WithDefaults<P, D> = {
|
|
107
122
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
108
123
|
default: D[K];
|
|
@@ -133,6 +148,12 @@ declare type __VLS_WithDefaults_5<P, D> = {
|
|
|
133
148
|
}> : P[K];
|
|
134
149
|
};
|
|
135
150
|
|
|
151
|
+
declare type __VLS_WithDefaults_6<P, D> = {
|
|
152
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_6<P[K] & {
|
|
153
|
+
default: D[K];
|
|
154
|
+
}> : P[K];
|
|
155
|
+
};
|
|
156
|
+
|
|
136
157
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
137
158
|
new (): {
|
|
138
159
|
$slots: S;
|
|
@@ -184,7 +205,7 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
|
184
205
|
declare type ButtonInstance = InstanceType<typeof Button>;
|
|
185
206
|
|
|
186
207
|
/** 组件属性处理函数签名 */
|
|
187
|
-
declare type ComponentAttrHandler = (
|
|
208
|
+
declare type ComponentAttrHandler = (util: OrcFormUtilBind, index?: any) => unknown;
|
|
188
209
|
|
|
189
210
|
/** 组件属性允许的值类型 */
|
|
190
211
|
declare type ComponentAttrValue = null | boolean | number | string | RecordAny_3 | RecordAny_3[] | ComponentAttrHandler;
|
|
@@ -736,7 +757,7 @@ export declare const OrcDesignPrint: DefineComponent<{}, {
|
|
|
736
757
|
getHtml(): any;
|
|
737
758
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
738
759
|
|
|
739
|
-
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<
|
|
760
|
+
export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
740
761
|
config?: OrcFormItem[] | undefined;
|
|
741
762
|
labelWidth?: string | undefined;
|
|
742
763
|
labelAlign?: "left" | "right" | undefined;
|
|
@@ -771,7 +792,7 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
771
792
|
error: (...args: any[]) => void;
|
|
772
793
|
submit: (...args: any[]) => void;
|
|
773
794
|
"update:modelValue": (...args: any[]) => void;
|
|
774
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
795
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
775
796
|
config?: OrcFormItem[] | undefined;
|
|
776
797
|
labelWidth?: string | undefined;
|
|
777
798
|
labelAlign?: "left" | "right" | undefined;
|
|
@@ -804,9 +825,9 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
804
825
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
805
826
|
}>, {
|
|
806
827
|
grid: Record<string, any>;
|
|
828
|
+
modelValue: Record<string, any>;
|
|
807
829
|
loading: boolean;
|
|
808
830
|
disabled: boolean;
|
|
809
|
-
modelValue: Record<string, any>;
|
|
810
831
|
span: number;
|
|
811
832
|
config: OrcFormItem[];
|
|
812
833
|
labelWidth: string;
|
|
@@ -819,8 +840,11 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
819
840
|
value?: any;
|
|
820
841
|
setValue?: ((v: any) => void) | undefined;
|
|
821
842
|
options?: any;
|
|
822
|
-
utils: OrcFormUtil
|
|
823
|
-
|
|
843
|
+
utils: OrcFormUtil & {
|
|
844
|
+
model: string;
|
|
845
|
+
getFormItem: () => OrcFormItem;
|
|
846
|
+
} & Pick<OrcFormUtil, "onChange" | "onMounted">;
|
|
847
|
+
componentAttr: RecordAny_3;
|
|
824
848
|
}) => any>> & {
|
|
825
849
|
row?(_: {}): any;
|
|
826
850
|
default?(_: {
|
|
@@ -828,7 +852,7 @@ export declare const OrcForm: __VLS_WithTemplateSlots_5< DefineComponent<Extract
|
|
|
828
852
|
}): any;
|
|
829
853
|
}>;
|
|
830
854
|
|
|
831
|
-
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<
|
|
855
|
+
export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
832
856
|
title: string;
|
|
833
857
|
modelValue: undefined;
|
|
834
858
|
gutter: number;
|
|
@@ -837,7 +861,7 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
|
|
|
837
861
|
"update:modelValue": (data: RecordAny) => void;
|
|
838
862
|
submit: (data: OrcFormSubmit) => void;
|
|
839
863
|
error: (data: any) => void;
|
|
840
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
864
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<Props_3>, {
|
|
841
865
|
title: string;
|
|
842
866
|
modelValue: undefined;
|
|
843
867
|
gutter: number;
|
|
@@ -848,8 +872,8 @@ export declare const OrcFormButton: __VLS_WithTemplateSlots_6< DefineComponent<E
|
|
|
848
872
|
"onUpdate:modelValue"?: ((data: RecordAny) => any) | undefined;
|
|
849
873
|
}>, {
|
|
850
874
|
title: string;
|
|
851
|
-
size: "medium" | "small" | "mini" | "large";
|
|
852
875
|
modelValue: RecordAny;
|
|
876
|
+
size: "medium" | "small" | "mini" | "large";
|
|
853
877
|
gutter: number;
|
|
854
878
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
855
879
|
icon?(_: {}): any;
|
|
@@ -933,7 +957,7 @@ export declare type OrcFormItem = {
|
|
|
933
957
|
*/
|
|
934
958
|
rules?: RecordAny_3[] | ((val: OrcFormItem, util: OrcFormUtil) => RecordAny_3[]);
|
|
935
959
|
/** 表单事件处理器 */
|
|
936
|
-
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange'
|
|
960
|
+
events?: Pick<OrcFormUtil, 'onMounted' | 'onChange'>;
|
|
937
961
|
/** 扩展说明字段 */
|
|
938
962
|
note?: string;
|
|
939
963
|
};
|
|
@@ -975,6 +999,8 @@ declare type OrcFormUtil = {
|
|
|
975
999
|
* @returns 匹配的选项对象
|
|
976
1000
|
*/
|
|
977
1001
|
getModelOption(model: string, val: string): SelectOptionData;
|
|
1002
|
+
/** 读取所有内容 */
|
|
1003
|
+
getModels: () => any;
|
|
978
1004
|
/** 获取指定模型的值 */
|
|
979
1005
|
getModel: (model: string) => any;
|
|
980
1006
|
/** 检查指定模型是否可见 */
|
|
@@ -992,13 +1018,16 @@ declare type OrcFormUtil = {
|
|
|
992
1018
|
/** 用于双向数据绑定的模型属性 */
|
|
993
1019
|
model?: string;
|
|
994
1020
|
/** 组件挂载后执行 */
|
|
995
|
-
onMounted?: (util:
|
|
1021
|
+
onMounted?: (util: OrcFormUtilBind) => any | Promise<any>;
|
|
996
1022
|
/** 值改变时触发 */
|
|
997
|
-
onChange?: (val: any, util:
|
|
998
|
-
/** 响应式更新时触发 */
|
|
999
|
-
onUpdate?: (val: any, oldVal: any, util: OrcFormUtil) => void | Promise<void>;
|
|
1023
|
+
onChange?: (val: any, util: OrcFormUtilBind) => void | Promise<void>;
|
|
1000
1024
|
};
|
|
1001
1025
|
|
|
1026
|
+
declare type OrcFormUtilBind = OrcFormUtil & {
|
|
1027
|
+
model: string;
|
|
1028
|
+
getFormItem: () => OrcFormItem;
|
|
1029
|
+
} & OrcFormItem['events'];
|
|
1030
|
+
|
|
1002
1031
|
export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
1003
1032
|
isShow?: boolean | undefined;
|
|
1004
1033
|
isDirection?: boolean | undefined;
|
|
@@ -1011,7 +1040,7 @@ export declare const OrcHiddenView: __VLS_WithTemplateSlots_2< DefineComponent<E
|
|
|
1011
1040
|
default?(_: {}): any;
|
|
1012
1041
|
}>;
|
|
1013
1042
|
|
|
1014
|
-
export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<
|
|
1043
|
+
export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
|
|
1015
1044
|
template: undefined;
|
|
1016
1045
|
fields: undefined;
|
|
1017
1046
|
printData: undefined;
|
|
@@ -1098,7 +1127,7 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
|
|
|
1098
1127
|
} | undefined>;
|
|
1099
1128
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1100
1129
|
onSave: (...args: any[]) => void;
|
|
1101
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<
|
|
1130
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<Props_4>, {
|
|
1102
1131
|
template: undefined;
|
|
1103
1132
|
fields: undefined;
|
|
1104
1133
|
printData: undefined;
|
|
@@ -1335,9 +1364,9 @@ export declare const OrcSearch: __VLS_WithTemplateSlots_4< DefineComponent<Extra
|
|
|
1335
1364
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
1336
1365
|
onOnSearch?: ((...args: any[]) => any) | undefined;
|
|
1337
1366
|
}>, {
|
|
1367
|
+
modelValue: Record<string, any>;
|
|
1338
1368
|
loading: boolean;
|
|
1339
1369
|
size: string;
|
|
1340
|
-
modelValue: Record<string, any>;
|
|
1341
1370
|
labelWidth: string;
|
|
1342
1371
|
options: OrcSearchItem[];
|
|
1343
1372
|
readonly: boolean;
|
|
@@ -1380,45 +1409,15 @@ export declare interface OrcSearchItem extends RecordAny {
|
|
|
1380
1409
|
rules?: RecordAny | RecordAny[];
|
|
1381
1410
|
}
|
|
1382
1411
|
|
|
1383
|
-
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<{
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
hidePagination: BooleanConstructor;
|
|
1391
|
-
isHover: {
|
|
1392
|
-
type: BooleanConstructor;
|
|
1393
|
-
default: boolean;
|
|
1394
|
-
};
|
|
1395
|
-
size: {
|
|
1396
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
1397
|
-
default: string;
|
|
1398
|
-
};
|
|
1399
|
-
/** 用户选择列表 */
|
|
1400
|
-
selectedKeys: {
|
|
1401
|
-
type: ArrayConstructor;
|
|
1402
|
-
default: () => never[];
|
|
1403
|
-
};
|
|
1404
|
-
/** 与 loadData 行为一致 */
|
|
1405
|
-
data: {
|
|
1406
|
-
type: PropType<RecordAny_2[]>;
|
|
1407
|
-
default: () => never[];
|
|
1408
|
-
};
|
|
1409
|
-
/** 配置文件 */
|
|
1410
|
-
option: {
|
|
1411
|
-
type: PropType<OrcTableOption>;
|
|
1412
|
-
default: () => {
|
|
1413
|
-
columns: never[];
|
|
1414
|
-
};
|
|
1412
|
+
export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
1413
|
+
isHover: boolean;
|
|
1414
|
+
size: string;
|
|
1415
|
+
selectedKeys: () => never[];
|
|
1416
|
+
data: () => never[];
|
|
1417
|
+
option: () => {
|
|
1418
|
+
columns: never[];
|
|
1415
1419
|
};
|
|
1416
|
-
|
|
1417
|
-
hook: PropType<{
|
|
1418
|
-
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1419
|
-
setColumn: (list: RecordAny_2[]) => void;
|
|
1420
|
-
}>;
|
|
1421
|
-
}>, {
|
|
1420
|
+
}>>, {
|
|
1422
1421
|
getRowKey(): string;
|
|
1423
1422
|
getTableData(): RecordAny_2[];
|
|
1424
1423
|
getSelection(): RecordAny_2[];
|
|
@@ -1430,7 +1429,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1430
1429
|
rows: any;
|
|
1431
1430
|
}>;
|
|
1432
1431
|
removeRows(): void;
|
|
1433
|
-
|
|
1432
|
+
validate(list?: RecordAny_2[] | undefined): Promise<[string, RecordAny_2[]]>;
|
|
1434
1433
|
getRowSeq(row: any): string | number;
|
|
1435
1434
|
getRowIndex(row: any): number;
|
|
1436
1435
|
removerRowIndex(rowIndex: number): void;
|
|
@@ -1447,45 +1446,15 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1447
1446
|
onReset: (...args: any[]) => void;
|
|
1448
1447
|
confirm: (...args: any[]) => void;
|
|
1449
1448
|
cellDblclick: (...args: any[]) => void;
|
|
1450
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
hidePagination: BooleanConstructor;
|
|
1458
|
-
isHover: {
|
|
1459
|
-
type: BooleanConstructor;
|
|
1460
|
-
default: boolean;
|
|
1461
|
-
};
|
|
1462
|
-
size: {
|
|
1463
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
1464
|
-
default: string;
|
|
1465
|
-
};
|
|
1466
|
-
/** 用户选择列表 */
|
|
1467
|
-
selectedKeys: {
|
|
1468
|
-
type: ArrayConstructor;
|
|
1469
|
-
default: () => never[];
|
|
1470
|
-
};
|
|
1471
|
-
/** 与 loadData 行为一致 */
|
|
1472
|
-
data: {
|
|
1473
|
-
type: PropType<RecordAny_2[]>;
|
|
1474
|
-
default: () => never[];
|
|
1475
|
-
};
|
|
1476
|
-
/** 配置文件 */
|
|
1477
|
-
option: {
|
|
1478
|
-
type: PropType<OrcTableOption>;
|
|
1479
|
-
default: () => {
|
|
1480
|
-
columns: never[];
|
|
1481
|
-
};
|
|
1449
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
1450
|
+
isHover: boolean;
|
|
1451
|
+
size: string;
|
|
1452
|
+
selectedKeys: () => never[];
|
|
1453
|
+
data: () => never[];
|
|
1454
|
+
option: () => {
|
|
1455
|
+
columns: never[];
|
|
1482
1456
|
};
|
|
1483
|
-
|
|
1484
|
-
hook: PropType<{
|
|
1485
|
-
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1486
|
-
setColumn: (list: RecordAny_2[]) => void;
|
|
1487
|
-
}>;
|
|
1488
|
-
}>> & Readonly<{
|
|
1457
|
+
}>>> & Readonly<{
|
|
1489
1458
|
"onUpdate:selectedKeys"?: ((...args: any[]) => any) | undefined;
|
|
1490
1459
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1491
1460
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -1496,11 +1465,8 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1496
1465
|
data: RecordAny_2[];
|
|
1497
1466
|
option: OrcTableOption;
|
|
1498
1467
|
size: "medium" | "small" | "mini";
|
|
1499
|
-
hideToolbar: boolean;
|
|
1500
|
-
hideSetting: boolean;
|
|
1501
|
-
hidePagination: boolean;
|
|
1502
1468
|
isHover: boolean;
|
|
1503
|
-
selectedKeys:
|
|
1469
|
+
selectedKeys: string[];
|
|
1504
1470
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1505
1471
|
default?(_: {}): any;
|
|
1506
1472
|
tools?(_: {}): any;
|
|
@@ -1511,6 +1477,7 @@ export declare const OrcTable: __VLS_WithTemplateSlots_3< DefineComponent<Extrac
|
|
|
1511
1477
|
rowIndex: number;
|
|
1512
1478
|
columnIndex: number;
|
|
1513
1479
|
value: any;
|
|
1480
|
+
modelValue: any;
|
|
1514
1481
|
updateValue: (value: any) => void;
|
|
1515
1482
|
formatValue: any;
|
|
1516
1483
|
}): any;
|
|
@@ -1534,8 +1501,16 @@ declare interface OrcTableItem extends RecordAny_2 {
|
|
|
1534
1501
|
width?: number;
|
|
1535
1502
|
sort?: boolean;
|
|
1536
1503
|
/** 开启编辑 */
|
|
1537
|
-
cell?: boolean;
|
|
1538
|
-
/**
|
|
1504
|
+
cell?: boolean | Component;
|
|
1505
|
+
/** @example
|
|
1506
|
+
* <a-badge status="normal" text="Normal" />
|
|
1507
|
+
* status: normal|processing|success|warning|danger
|
|
1508
|
+
*/
|
|
1509
|
+
cellAttr?: {
|
|
1510
|
+
[key: string]: (v1: Record<'record' | 'dataIndex' | 'rowIndex' | 'columnIndex' | 'value' | 'modelValue' | 'updateValue' | 'formatValue', unknown>) => unknown;
|
|
1511
|
+
} | {
|
|
1512
|
+
[key: string]: unknown;
|
|
1513
|
+
};
|
|
1539
1514
|
div?: boolean;
|
|
1540
1515
|
/** 没内容时候得提示 */
|
|
1541
1516
|
placeholder?: string;
|
|
@@ -1548,7 +1523,6 @@ declare interface OrcTableItem extends RecordAny_2 {
|
|
|
1548
1523
|
style?: CssType | ((record: RecordAny_2) => CssType);
|
|
1549
1524
|
/** 同 :title-prefix "{ content: '必填', icon: 'vxe-cell--required-icon' }" */
|
|
1550
1525
|
help?: VxeColumnPropTypes.TitlePrefix;
|
|
1551
|
-
columnProps?: any;
|
|
1552
1526
|
}
|
|
1553
1527
|
|
|
1554
1528
|
/**
|
|
@@ -1647,7 +1621,39 @@ declare interface Props {
|
|
|
1647
1621
|
useErrData?: <T = Record<string, any>>(config: Record<string, any>) => Promise<[boolean, T]>;
|
|
1648
1622
|
}
|
|
1649
1623
|
|
|
1650
|
-
declare
|
|
1624
|
+
declare type Props_2 = {
|
|
1625
|
+
/** 表格标题 */
|
|
1626
|
+
title?: string;
|
|
1627
|
+
/** 高 */
|
|
1628
|
+
height?: number | string;
|
|
1629
|
+
/** 是否隐藏工具栏 */
|
|
1630
|
+
hideToolbar?: boolean;
|
|
1631
|
+
/** 是否隐藏设置按钮 */
|
|
1632
|
+
hideSetting?: boolean;
|
|
1633
|
+
/** 是否隐藏分页 */
|
|
1634
|
+
hidePagination?: boolean;
|
|
1635
|
+
/** 是否启用悬停效果,默认值为 true */
|
|
1636
|
+
isHover?: boolean;
|
|
1637
|
+
/** 表格尺寸,可选值为 'medium' | 'small' | 'mini',默认值为 'mini' */
|
|
1638
|
+
size?: 'medium' | 'small' | 'mini';
|
|
1639
|
+
/** 用户选择的列表,默认值为空数组 */
|
|
1640
|
+
selectedKeys?: string[];
|
|
1641
|
+
/** 数据源,默认值为空数组 */
|
|
1642
|
+
data?: RecordAny_2[];
|
|
1643
|
+
/** 配置文件,默认值为 { columns: [] } */
|
|
1644
|
+
option?: OrcTableOption;
|
|
1645
|
+
/**
|
|
1646
|
+
* 用户保存数据钩子函数
|
|
1647
|
+
* - getColumn: 异步获取列配置,返回一个包含布尔值和列数据的元组
|
|
1648
|
+
* - setColumn: 设置列配置
|
|
1649
|
+
*/
|
|
1650
|
+
hook?: {
|
|
1651
|
+
getColumn: () => Promise<[boolean, RecordAny_2[]]>;
|
|
1652
|
+
setColumn: (list: RecordAny_2[]) => void;
|
|
1653
|
+
};
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
declare interface Props_3 {
|
|
1651
1657
|
isView?: boolean;
|
|
1652
1658
|
disabled?: boolean;
|
|
1653
1659
|
title?: string;
|
|
@@ -1661,7 +1667,7 @@ declare interface Props_2 {
|
|
|
1661
1667
|
modalAttrs?: ModalInstance['$props'];
|
|
1662
1668
|
}
|
|
1663
1669
|
|
|
1664
|
-
declare type
|
|
1670
|
+
declare type Props_4 = {
|
|
1665
1671
|
/** 更新模板 hiprintTemplate.update */
|
|
1666
1672
|
template?: Record<string, any>;
|
|
1667
1673
|
/** 更新数据源 hiprintTemplate.setFields */
|
|
@@ -1714,7 +1720,7 @@ declare interface TableGridTwoType extends RecordAny_2 {
|
|
|
1714
1720
|
* 选中行数据校验
|
|
1715
1721
|
* @param list 默认 所有选择的数据
|
|
1716
1722
|
*/
|
|
1717
|
-
|
|
1723
|
+
validate(list?: RecordAny_2[]): Promise<[string, RecordAny_2[]]>;
|
|
1718
1724
|
/**
|
|
1719
1725
|
* 根据 row 获取行的序号
|
|
1720
1726
|
* @param row 行对象
|
|
@@ -1816,7 +1822,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1816
1822
|
rows: any;
|
|
1817
1823
|
}>;
|
|
1818
1824
|
removeRows: () => void;
|
|
1819
|
-
|
|
1825
|
+
validate: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
|
|
1820
1826
|
getRowSeq: (row: any) => string | number;
|
|
1821
1827
|
getRowIndex: (row: any) => number;
|
|
1822
1828
|
removerRowIndex: (rowIndex: number) => void;
|
|
@@ -1837,7 +1843,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1837
1843
|
rows: any;
|
|
1838
1844
|
}>;
|
|
1839
1845
|
removeRows: () => void;
|
|
1840
|
-
|
|
1846
|
+
validate: (list?: RecordAny_2[] | undefined) => Promise<[string, RecordAny_2[]]>;
|
|
1841
1847
|
getRowSeq: (row: any) => string | number;
|
|
1842
1848
|
getRowIndex: (row: any) => number;
|
|
1843
1849
|
removerRowIndex: (rowIndex: number) => void;
|
|
@@ -1900,7 +1906,7 @@ export declare const useOrcTable: (option: OrcTableOption) => {
|
|
|
1900
1906
|
rows: any;
|
|
1901
1907
|
}>;
|
|
1902
1908
|
removeRows(): void;
|
|
1903
|
-
|
|
1909
|
+
validate(list?: RecordAny_2[] | undefined): Promise<[string, RecordAny_2[]]>;
|
|
1904
1910
|
getRowSeq(row: any): string | number;
|
|
1905
1911
|
getRowIndex(row: any): number;
|
|
1906
1912
|
removerRowIndex(rowIndex: number): void;
|