z-ui-pc 0.1.1 → 0.2.0
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.css +1076 -1
- package/dist/index.d.ts +95 -73
- package/dist/index.js +4511 -2922
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,28 +20,28 @@ import { DefineComponent } from 'vue';
|
|
|
20
20
|
import { ElForm } from 'element-plus';
|
|
21
21
|
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
22
22
|
import { ExtractPropTypes } from 'vue';
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
import { FormItemProp } from 'element-plus/es/components/form/src/form-item';
|
|
25
25
|
import { FormItemProps } from 'element-plus';
|
|
26
26
|
import { FormProps } from 'element-plus';
|
|
27
27
|
import { GlobalComponents } from 'vue';
|
|
28
28
|
import { GlobalDirectives } from 'vue';
|
|
29
29
|
import { h } from 'vue';
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
40
|
import { InputEmits } from 'element-plus';
|
|
41
41
|
import { InputProps } from 'element-plus';
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
45
|
import { JSX } from 'vue/jsx-runtime';
|
|
46
46
|
import { ManipulateType } from 'dayjs';
|
|
47
47
|
import { PaginationProps } from 'element-plus';
|
|
@@ -56,15 +56,30 @@ import { ShallowRef } from 'vue';
|
|
|
56
56
|
import { SwitchProps } from 'element-plus';
|
|
57
57
|
import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
58
58
|
import { TableProps } from 'element-plus';
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
62
|
import { VNode } from 'vue';
|
|
63
63
|
import { VNodeProps } from 'vue';
|
|
64
64
|
|
|
65
|
-
declare const __VLS_component: DefineComponent<
|
|
65
|
+
declare const __VLS_component: DefineComponent<IBaseCascaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
66
|
+
"update:modelValue": (value: any) => any;
|
|
67
|
+
change: (value?: CascaderValue | undefined) => any;
|
|
68
|
+
}, string, PublicProps, Readonly<IBaseCascaderProps> & Readonly<{
|
|
69
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
70
|
+
onChange?: ((value?: CascaderValue | undefined) => any) | undefined;
|
|
71
|
+
}>, {
|
|
72
|
+
props: CascaderProps;
|
|
73
|
+
persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
74
|
+
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
|
+
options: TOptionsReturn;
|
|
76
|
+
on: Partial<CascaderEmits>;
|
|
77
|
+
showAllLevels: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
78
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
79
|
+
|
|
80
|
+
declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
66
81
|
|
|
67
|
-
declare const
|
|
82
|
+
declare const __VLS_component_3: DefineComponent<Partial<IBaseNumberInputProps>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
68
83
|
"update:modelValue": (value: any) => any;
|
|
69
84
|
change: (value: string | number) => any;
|
|
70
85
|
}, string, PublicProps, Readonly<Partial<IBaseNumberInputProps>> & Readonly<{
|
|
@@ -97,12 +112,24 @@ declare type __VLS_PublicProps_2 = {
|
|
|
97
112
|
|
|
98
113
|
declare function __VLS_template(): {
|
|
99
114
|
attrs: Partial<{}>;
|
|
100
|
-
slots:
|
|
115
|
+
slots: {
|
|
116
|
+
default?(_: {
|
|
117
|
+
node: any;
|
|
118
|
+
data: any;
|
|
119
|
+
}): any;
|
|
120
|
+
};
|
|
101
121
|
refs: {};
|
|
102
122
|
rootEl: any;
|
|
103
123
|
};
|
|
104
124
|
|
|
105
125
|
declare function __VLS_template_2(): {
|
|
126
|
+
attrs: Partial<{}>;
|
|
127
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
128
|
+
refs: {};
|
|
129
|
+
rootEl: any;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare function __VLS_template_3(): {
|
|
106
133
|
attrs: Partial<{}>;
|
|
107
134
|
slots: {
|
|
108
135
|
suffix?(_: {}): any;
|
|
@@ -115,6 +142,8 @@ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
115
142
|
|
|
116
143
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
117
144
|
|
|
145
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
146
|
+
|
|
118
147
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
119
148
|
new (): {
|
|
120
149
|
$slots: S;
|
|
@@ -127,6 +156,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
127
156
|
};
|
|
128
157
|
};
|
|
129
158
|
|
|
159
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
160
|
+
new (): {
|
|
161
|
+
$slots: S;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
|
|
130
165
|
declare namespace allComponents {
|
|
131
166
|
export {
|
|
132
167
|
installer_2 as ZAutoTooltip,
|
|
@@ -138,20 +173,7 @@ declare namespace allComponents {
|
|
|
138
173
|
}
|
|
139
174
|
}
|
|
140
175
|
|
|
141
|
-
export declare const BaseCascader:
|
|
142
|
-
"update:modelValue": (value: any) => any;
|
|
143
|
-
change: (value?: CascaderValue | undefined) => any;
|
|
144
|
-
}, string, PublicProps, Readonly<IBaseCascaderProps> & Readonly<{
|
|
145
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
146
|
-
onChange?: ((value?: CascaderValue | undefined) => any) | undefined;
|
|
147
|
-
}>, {
|
|
148
|
-
props: CascaderProps;
|
|
149
|
-
persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
150
|
-
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
151
|
-
on: Partial<CascaderEmits>;
|
|
152
|
-
showAllLevels: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
153
|
-
options: TOptionsReturn_2;
|
|
154
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
176
|
+
export declare const BaseCascader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
155
177
|
|
|
156
178
|
export declare const BaseDate: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
157
179
|
"update:dynamicExpression": (value: TUndefinable<IDynamicExpression>) => any;
|
|
@@ -508,9 +530,9 @@ declare class BaseFormItemsManagement<T extends TObj> {
|
|
|
508
530
|
destroy(): void;
|
|
509
531
|
}
|
|
510
532
|
|
|
511
|
-
export declare const BaseInput:
|
|
533
|
+
export declare const BaseInput: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
512
534
|
|
|
513
|
-
export declare const BaseNumberInput:
|
|
535
|
+
export declare const BaseNumberInput: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
514
536
|
|
|
515
537
|
export declare const BaseNumberRange: DefineComponent<IBaseNumberRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
516
538
|
"update:modelValue": (value: any) => any;
|
|
@@ -548,8 +570,8 @@ teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
|
548
570
|
persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
549
571
|
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
550
572
|
showArrow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
573
|
+
options: TOptionsReturn;
|
|
551
574
|
on: TEvent;
|
|
552
|
-
options: TOptionsReturn_2;
|
|
553
575
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
554
576
|
|
|
555
577
|
/**
|
|
@@ -846,7 +868,7 @@ export declare class FormBuilder<T extends TObj = TObj> {
|
|
|
846
868
|
/**
|
|
847
869
|
* 所有的分组
|
|
848
870
|
*/
|
|
849
|
-
get groups():
|
|
871
|
+
get groups(): IAdvancedFilterFormItemGroup[];
|
|
850
872
|
/**
|
|
851
873
|
* 当前激活的分组信息
|
|
852
874
|
*/
|
|
@@ -1860,7 +1882,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1860
1882
|
* @param params
|
|
1861
1883
|
* @param formBuilder
|
|
1862
1884
|
*/
|
|
1863
|
-
loadViewConfig<T extends TObj>(params: IViewConfig, formBuilder?: FormBuilder<T>):
|
|
1885
|
+
loadViewConfig<T extends TObj>(params: IViewConfig, formBuilder?: FormBuilder<T>): IViewConfigResult[] | Promise<IViewConfigResult[]> | undefined;
|
|
1864
1886
|
/**
|
|
1865
1887
|
* 保存配置
|
|
1866
1888
|
* @param params
|
|
@@ -1919,7 +1941,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1919
1941
|
openDialog: (groupInfo: {
|
|
1920
1942
|
groupName: string;
|
|
1921
1943
|
groupData: TConfigGroup;
|
|
1922
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1944
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1923
1945
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1924
1946
|
P: {};
|
|
1925
1947
|
B: {};
|
|
@@ -1933,14 +1955,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1933
1955
|
openDialog: (groupInfo: {
|
|
1934
1956
|
groupName: string;
|
|
1935
1957
|
groupData: TConfigGroup;
|
|
1936
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1958
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1937
1959
|
}, {}, {}, {}, {}> | undefined, CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1938
1960
|
columnConfig?: IColumnConfig;
|
|
1939
1961
|
}> & Readonly<{}>, {
|
|
1940
1962
|
openDialog: (groupInfo: {
|
|
1941
1963
|
groupName: string;
|
|
1942
1964
|
groupData: TConfigGroup;
|
|
1943
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1965
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1944
1966
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1945
1967
|
P: {};
|
|
1946
1968
|
B: {};
|
|
@@ -1954,7 +1976,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1954
1976
|
openDialog: (groupInfo: {
|
|
1955
1977
|
groupName: string;
|
|
1956
1978
|
groupData: TConfigGroup;
|
|
1957
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1979
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1958
1980
|
}, {}, {}, {}, {}> | undefined>;
|
|
1959
1981
|
getParseOperationBtnList: ComputedRef<IOperationBtn[]>;
|
|
1960
1982
|
loadingConfigColumns: Ref<boolean, boolean>;
|
|
@@ -2161,11 +2183,11 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2161
2183
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2162
2184
|
|
|
2163
2185
|
export declare const ZForm: DefineComponent< {
|
|
2164
|
-
formBuilder:
|
|
2186
|
+
formBuilder: FormBuilder<any>;
|
|
2165
2187
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2166
2188
|
change: ((...args: unknown[]) => any) | (() => any);
|
|
2167
2189
|
}, string, PublicProps, Readonly<{
|
|
2168
|
-
formBuilder:
|
|
2190
|
+
formBuilder: FormBuilder<any>;
|
|
2169
2191
|
}> & Readonly<{
|
|
2170
2192
|
onChange?: ((...args: unknown[] & []) => any) | undefined;
|
|
2171
2193
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -2176,7 +2198,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2176
2198
|
export declare const ZTable: {
|
|
2177
2199
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2178
2200
|
selectList?: TAllType[];
|
|
2179
|
-
} &
|
|
2201
|
+
} & IBaseTableProps> & Readonly<{
|
|
2180
2202
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2181
2203
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2182
2204
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2204,13 +2226,13 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2204
2226
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2205
2227
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2206
2228
|
}>, {
|
|
2207
|
-
loadData: (currentPagination?:
|
|
2229
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2208
2230
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2209
2231
|
openConfigColumnDialog: (id: string) => void;
|
|
2210
|
-
getPagination: () =>
|
|
2232
|
+
getPagination: () => IPagination;
|
|
2211
2233
|
clearSort: () => void;
|
|
2212
2234
|
getExportColumnsProps: () => string[];
|
|
2213
|
-
elTable: Ref<
|
|
2235
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2214
2236
|
getTableData: () => TObj<string, any>[];
|
|
2215
2237
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2216
2238
|
select: (...args: any[]) => void;
|
|
@@ -2241,14 +2263,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2241
2263
|
"update:selectList": (value: TAllType<string | number | boolean | object | null | undefined>[]) => void;
|
|
2242
2264
|
}, PublicProps, {
|
|
2243
2265
|
border: boolean;
|
|
2244
|
-
columns:
|
|
2266
|
+
columns: IBaseTableColumn<any>[];
|
|
2245
2267
|
fit: boolean;
|
|
2246
2268
|
showHeader: boolean;
|
|
2247
2269
|
scrollbarAlwaysOn: boolean;
|
|
2248
2270
|
tableData: TObj[];
|
|
2249
2271
|
autoLoad: boolean;
|
|
2250
2272
|
hasDefaultOperation: boolean;
|
|
2251
|
-
operationBtnList:
|
|
2273
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2252
2274
|
hasPagination: boolean;
|
|
2253
2275
|
paginationPosition: "left" | "right";
|
|
2254
2276
|
fixedPagination: boolean;
|
|
@@ -2259,12 +2281,12 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2259
2281
|
baseTableOperationElement: HTMLDivElement;
|
|
2260
2282
|
baseTableRef: unknown;
|
|
2261
2283
|
configColumnsDialogRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2262
|
-
columnConfig?:
|
|
2284
|
+
columnConfig?: IColumnConfig;
|
|
2263
2285
|
}> & Readonly<{}>, {
|
|
2264
2286
|
openDialog: (groupInfo: {
|
|
2265
2287
|
groupName: string;
|
|
2266
|
-
groupData:
|
|
2267
|
-
}, saveData:
|
|
2288
|
+
groupData: TConfigGroup;
|
|
2289
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
2268
2290
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2269
2291
|
P: {};
|
|
2270
2292
|
B: {};
|
|
@@ -2273,12 +2295,12 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2273
2295
|
M: {};
|
|
2274
2296
|
Defaults: {};
|
|
2275
2297
|
}, Readonly<{
|
|
2276
|
-
columnConfig?:
|
|
2298
|
+
columnConfig?: IColumnConfig;
|
|
2277
2299
|
}> & Readonly<{}>, {
|
|
2278
2300
|
openDialog: (groupInfo: {
|
|
2279
2301
|
groupName: string;
|
|
2280
|
-
groupData:
|
|
2281
|
-
}, saveData:
|
|
2302
|
+
groupData: TConfigGroup;
|
|
2303
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
2282
2304
|
}, {}, {}, {}, {}> | null;
|
|
2283
2305
|
}, any, ComponentProvideOptions, {
|
|
2284
2306
|
P: {};
|
|
@@ -2289,7 +2311,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2289
2311
|
Defaults: {};
|
|
2290
2312
|
}, Readonly<{
|
|
2291
2313
|
selectList?: TAllType[];
|
|
2292
|
-
} &
|
|
2314
|
+
} & IBaseTableProps> & Readonly<{
|
|
2293
2315
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2294
2316
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2295
2317
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2317,24 +2339,24 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2317
2339
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2318
2340
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2319
2341
|
}>, {
|
|
2320
|
-
loadData: (currentPagination?:
|
|
2342
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2321
2343
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2322
2344
|
openConfigColumnDialog: (id: string) => void;
|
|
2323
|
-
getPagination: () =>
|
|
2345
|
+
getPagination: () => IPagination;
|
|
2324
2346
|
clearSort: () => void;
|
|
2325
2347
|
getExportColumnsProps: () => string[];
|
|
2326
|
-
elTable: Ref<
|
|
2348
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2327
2349
|
getTableData: () => TObj<string, any>[];
|
|
2328
2350
|
}, {}, {}, {}, {
|
|
2329
2351
|
border: boolean;
|
|
2330
|
-
columns:
|
|
2352
|
+
columns: IBaseTableColumn<any>[];
|
|
2331
2353
|
fit: boolean;
|
|
2332
2354
|
showHeader: boolean;
|
|
2333
2355
|
scrollbarAlwaysOn: boolean;
|
|
2334
2356
|
tableData: TObj[];
|
|
2335
2357
|
autoLoad: boolean;
|
|
2336
2358
|
hasDefaultOperation: boolean;
|
|
2337
|
-
operationBtnList:
|
|
2359
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2338
2360
|
hasPagination: boolean;
|
|
2339
2361
|
paginationPosition: "left" | "right";
|
|
2340
2362
|
fixedPagination: boolean;
|
|
@@ -2346,7 +2368,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2346
2368
|
__isSuspense?: never;
|
|
2347
2369
|
} & ComponentOptionsBase<Readonly<{
|
|
2348
2370
|
selectList?: TAllType[];
|
|
2349
|
-
} &
|
|
2371
|
+
} & IBaseTableProps> & Readonly<{
|
|
2350
2372
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2351
2373
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2352
2374
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2374,13 +2396,13 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2374
2396
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2375
2397
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2376
2398
|
}>, {
|
|
2377
|
-
loadData: (currentPagination?:
|
|
2399
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2378
2400
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2379
2401
|
openConfigColumnDialog: (id: string) => void;
|
|
2380
|
-
getPagination: () =>
|
|
2402
|
+
getPagination: () => IPagination;
|
|
2381
2403
|
clearSort: () => void;
|
|
2382
2404
|
getExportColumnsProps: () => string[];
|
|
2383
|
-
elTable: Ref<
|
|
2405
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2384
2406
|
getTableData: () => TObj<string, any>[];
|
|
2385
2407
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2386
2408
|
select: (...args: any[]) => void;
|
|
@@ -2411,14 +2433,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2411
2433
|
"update:selectList": (value: TAllType<string | number | boolean | object | null | undefined>[]) => void;
|
|
2412
2434
|
}, string, {
|
|
2413
2435
|
border: boolean;
|
|
2414
|
-
columns:
|
|
2436
|
+
columns: IBaseTableColumn<any>[];
|
|
2415
2437
|
fit: boolean;
|
|
2416
2438
|
showHeader: boolean;
|
|
2417
2439
|
scrollbarAlwaysOn: boolean;
|
|
2418
2440
|
tableData: TObj[];
|
|
2419
2441
|
autoLoad: boolean;
|
|
2420
2442
|
hasDefaultOperation: boolean;
|
|
2421
|
-
operationBtnList:
|
|
2443
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2422
2444
|
hasPagination: boolean;
|
|
2423
2445
|
paginationPosition: "left" | "right";
|
|
2424
2446
|
fixedPagination: boolean;
|
|
@@ -2427,19 +2449,19 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2427
2449
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2428
2450
|
$slots: Readonly<{
|
|
2429
2451
|
header: (_props: {
|
|
2430
|
-
pagination:
|
|
2452
|
+
pagination: IPagination;
|
|
2431
2453
|
}) => void;
|
|
2432
2454
|
operation: (_props: {
|
|
2433
|
-
pagination:
|
|
2455
|
+
pagination: IPagination;
|
|
2434
2456
|
}) => void;
|
|
2435
2457
|
selectSlot: () => void;
|
|
2436
2458
|
empty: () => void;
|
|
2437
2459
|
}> & {
|
|
2438
2460
|
header: (_props: {
|
|
2439
|
-
pagination:
|
|
2461
|
+
pagination: IPagination;
|
|
2440
2462
|
}) => void;
|
|
2441
2463
|
operation: (_props: {
|
|
2442
|
-
pagination:
|
|
2464
|
+
pagination: IPagination;
|
|
2443
2465
|
}) => void;
|
|
2444
2466
|
selectSlot: () => void;
|
|
2445
2467
|
empty: () => void;
|