z-ui-pc 0.1.1 → 0.3.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 +1090 -1
- package/dist/index.d.ts +145 -74
- package/dist/index.js +4589 -2922
- package/package.json +3 -3
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,
|
|
@@ -134,24 +169,12 @@ declare namespace allComponents {
|
|
|
134
169
|
installer_4 as ZEmpty,
|
|
135
170
|
installer_5 as ZForm,
|
|
136
171
|
installer_6 as ZTable,
|
|
137
|
-
installer_7 as ZTableLinkButton
|
|
172
|
+
installer_7 as ZTableLinkButton,
|
|
173
|
+
installer_8 as ZTipsFormItem
|
|
138
174
|
}
|
|
139
175
|
}
|
|
140
176
|
|
|
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>;
|
|
177
|
+
export declare const BaseCascader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
155
178
|
|
|
156
179
|
export declare const BaseDate: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
157
180
|
"update:dynamicExpression": (value: TUndefinable<IDynamicExpression>) => any;
|
|
@@ -508,9 +531,9 @@ declare class BaseFormItemsManagement<T extends TObj> {
|
|
|
508
531
|
destroy(): void;
|
|
509
532
|
}
|
|
510
533
|
|
|
511
|
-
export declare const BaseInput:
|
|
534
|
+
export declare const BaseInput: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
512
535
|
|
|
513
|
-
export declare const BaseNumberInput:
|
|
536
|
+
export declare const BaseNumberInput: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
514
537
|
|
|
515
538
|
export declare const BaseNumberRange: DefineComponent<IBaseNumberRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
516
539
|
"update:modelValue": (value: any) => any;
|
|
@@ -548,8 +571,8 @@ teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
|
548
571
|
persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
549
572
|
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
550
573
|
showArrow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
574
|
+
options: TOptionsReturn;
|
|
551
575
|
on: TEvent;
|
|
552
|
-
options: TOptionsReturn_2;
|
|
553
576
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
554
577
|
|
|
555
578
|
/**
|
|
@@ -846,7 +869,7 @@ export declare class FormBuilder<T extends TObj = TObj> {
|
|
|
846
869
|
/**
|
|
847
870
|
* 所有的分组
|
|
848
871
|
*/
|
|
849
|
-
get groups():
|
|
872
|
+
get groups(): IAdvancedFilterFormItemGroup[];
|
|
850
873
|
/**
|
|
851
874
|
* 当前激活的分组信息
|
|
852
875
|
*/
|
|
@@ -1580,6 +1603,8 @@ declare const installer_6 = withInstallComponent(ZTable, "ZTable");
|
|
|
1580
1603
|
|
|
1581
1604
|
declare const installer_7 = withInstallComponent(ZTableLinkButton, "ZTableLinkButton");
|
|
1582
1605
|
|
|
1606
|
+
declare const installer_8 = withInstallComponent(ZTipsFormItem, "ZTipsFormItem");
|
|
1607
|
+
|
|
1583
1608
|
/**
|
|
1584
1609
|
* 操作列配置
|
|
1585
1610
|
*/
|
|
@@ -1860,7 +1885,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1860
1885
|
* @param params
|
|
1861
1886
|
* @param formBuilder
|
|
1862
1887
|
*/
|
|
1863
|
-
loadViewConfig<T extends TObj>(params: IViewConfig, formBuilder?: FormBuilder<T>):
|
|
1888
|
+
loadViewConfig<T extends TObj>(params: IViewConfig, formBuilder?: FormBuilder<T>): IViewConfigResult[] | Promise<IViewConfigResult[]> | undefined;
|
|
1864
1889
|
/**
|
|
1865
1890
|
* 保存配置
|
|
1866
1891
|
* @param params
|
|
@@ -1919,7 +1944,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1919
1944
|
openDialog: (groupInfo: {
|
|
1920
1945
|
groupName: string;
|
|
1921
1946
|
groupData: TConfigGroup;
|
|
1922
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1947
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1923
1948
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1924
1949
|
P: {};
|
|
1925
1950
|
B: {};
|
|
@@ -1933,14 +1958,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1933
1958
|
openDialog: (groupInfo: {
|
|
1934
1959
|
groupName: string;
|
|
1935
1960
|
groupData: TConfigGroup;
|
|
1936
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1961
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1937
1962
|
}, {}, {}, {}, {}> | undefined, CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1938
1963
|
columnConfig?: IColumnConfig;
|
|
1939
1964
|
}> & Readonly<{}>, {
|
|
1940
1965
|
openDialog: (groupInfo: {
|
|
1941
1966
|
groupName: string;
|
|
1942
1967
|
groupData: TConfigGroup;
|
|
1943
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1968
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1944
1969
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1945
1970
|
P: {};
|
|
1946
1971
|
B: {};
|
|
@@ -1954,7 +1979,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
1954
1979
|
openDialog: (groupInfo: {
|
|
1955
1980
|
groupName: string;
|
|
1956
1981
|
groupData: TConfigGroup;
|
|
1957
|
-
}, saveData: IBaseTableColumnStoreItem[]) => Promise<
|
|
1982
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
1958
1983
|
}, {}, {}, {}, {}> | undefined>;
|
|
1959
1984
|
getParseOperationBtnList: ComputedRef<IOperationBtn[]>;
|
|
1960
1985
|
loadingConfigColumns: Ref<boolean, boolean>;
|
|
@@ -2161,11 +2186,11 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2161
2186
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2162
2187
|
|
|
2163
2188
|
export declare const ZForm: DefineComponent< {
|
|
2164
|
-
formBuilder:
|
|
2189
|
+
formBuilder: FormBuilder<any>;
|
|
2165
2190
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2166
2191
|
change: ((...args: unknown[]) => any) | (() => any);
|
|
2167
2192
|
}, string, PublicProps, Readonly<{
|
|
2168
|
-
formBuilder:
|
|
2193
|
+
formBuilder: FormBuilder<any>;
|
|
2169
2194
|
}> & Readonly<{
|
|
2170
2195
|
onChange?: ((...args: unknown[] & []) => any) | undefined;
|
|
2171
2196
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -2176,7 +2201,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2176
2201
|
export declare const ZTable: {
|
|
2177
2202
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2178
2203
|
selectList?: TAllType[];
|
|
2179
|
-
} &
|
|
2204
|
+
} & IBaseTableProps> & Readonly<{
|
|
2180
2205
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2181
2206
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2182
2207
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2204,13 +2229,13 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2204
2229
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2205
2230
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2206
2231
|
}>, {
|
|
2207
|
-
loadData: (currentPagination?:
|
|
2232
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2208
2233
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2209
2234
|
openConfigColumnDialog: (id: string) => void;
|
|
2210
|
-
getPagination: () =>
|
|
2235
|
+
getPagination: () => IPagination;
|
|
2211
2236
|
clearSort: () => void;
|
|
2212
2237
|
getExportColumnsProps: () => string[];
|
|
2213
|
-
elTable: Ref<
|
|
2238
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2214
2239
|
getTableData: () => TObj<string, any>[];
|
|
2215
2240
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2216
2241
|
select: (...args: any[]) => void;
|
|
@@ -2241,14 +2266,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2241
2266
|
"update:selectList": (value: TAllType<string | number | boolean | object | null | undefined>[]) => void;
|
|
2242
2267
|
}, PublicProps, {
|
|
2243
2268
|
border: boolean;
|
|
2244
|
-
columns:
|
|
2269
|
+
columns: IBaseTableColumn<any>[];
|
|
2245
2270
|
fit: boolean;
|
|
2246
2271
|
showHeader: boolean;
|
|
2247
2272
|
scrollbarAlwaysOn: boolean;
|
|
2248
2273
|
tableData: TObj[];
|
|
2249
2274
|
autoLoad: boolean;
|
|
2250
2275
|
hasDefaultOperation: boolean;
|
|
2251
|
-
operationBtnList:
|
|
2276
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2252
2277
|
hasPagination: boolean;
|
|
2253
2278
|
paginationPosition: "left" | "right";
|
|
2254
2279
|
fixedPagination: boolean;
|
|
@@ -2259,12 +2284,12 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2259
2284
|
baseTableOperationElement: HTMLDivElement;
|
|
2260
2285
|
baseTableRef: unknown;
|
|
2261
2286
|
configColumnsDialogRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2262
|
-
columnConfig?:
|
|
2287
|
+
columnConfig?: IColumnConfig;
|
|
2263
2288
|
}> & Readonly<{}>, {
|
|
2264
2289
|
openDialog: (groupInfo: {
|
|
2265
2290
|
groupName: string;
|
|
2266
|
-
groupData:
|
|
2267
|
-
}, saveData:
|
|
2291
|
+
groupData: TConfigGroup;
|
|
2292
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
2268
2293
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2269
2294
|
P: {};
|
|
2270
2295
|
B: {};
|
|
@@ -2273,12 +2298,12 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2273
2298
|
M: {};
|
|
2274
2299
|
Defaults: {};
|
|
2275
2300
|
}, Readonly<{
|
|
2276
|
-
columnConfig?:
|
|
2301
|
+
columnConfig?: IColumnConfig;
|
|
2277
2302
|
}> & Readonly<{}>, {
|
|
2278
2303
|
openDialog: (groupInfo: {
|
|
2279
2304
|
groupName: string;
|
|
2280
|
-
groupData:
|
|
2281
|
-
}, saveData:
|
|
2305
|
+
groupData: TConfigGroup;
|
|
2306
|
+
}, saveData: IBaseTableColumnStoreItem[]) => Promise<ICallBackParams>;
|
|
2282
2307
|
}, {}, {}, {}, {}> | null;
|
|
2283
2308
|
}, any, ComponentProvideOptions, {
|
|
2284
2309
|
P: {};
|
|
@@ -2289,7 +2314,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2289
2314
|
Defaults: {};
|
|
2290
2315
|
}, Readonly<{
|
|
2291
2316
|
selectList?: TAllType[];
|
|
2292
|
-
} &
|
|
2317
|
+
} & IBaseTableProps> & Readonly<{
|
|
2293
2318
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2294
2319
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2295
2320
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2317,24 +2342,24 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2317
2342
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2318
2343
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2319
2344
|
}>, {
|
|
2320
|
-
loadData: (currentPagination?:
|
|
2345
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2321
2346
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2322
2347
|
openConfigColumnDialog: (id: string) => void;
|
|
2323
|
-
getPagination: () =>
|
|
2348
|
+
getPagination: () => IPagination;
|
|
2324
2349
|
clearSort: () => void;
|
|
2325
2350
|
getExportColumnsProps: () => string[];
|
|
2326
|
-
elTable: Ref<
|
|
2351
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2327
2352
|
getTableData: () => TObj<string, any>[];
|
|
2328
2353
|
}, {}, {}, {}, {
|
|
2329
2354
|
border: boolean;
|
|
2330
|
-
columns:
|
|
2355
|
+
columns: IBaseTableColumn<any>[];
|
|
2331
2356
|
fit: boolean;
|
|
2332
2357
|
showHeader: boolean;
|
|
2333
2358
|
scrollbarAlwaysOn: boolean;
|
|
2334
2359
|
tableData: TObj[];
|
|
2335
2360
|
autoLoad: boolean;
|
|
2336
2361
|
hasDefaultOperation: boolean;
|
|
2337
|
-
operationBtnList:
|
|
2362
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2338
2363
|
hasPagination: boolean;
|
|
2339
2364
|
paginationPosition: "left" | "right";
|
|
2340
2365
|
fixedPagination: boolean;
|
|
@@ -2346,7 +2371,7 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2346
2371
|
__isSuspense?: never;
|
|
2347
2372
|
} & ComponentOptionsBase<Readonly<{
|
|
2348
2373
|
selectList?: TAllType[];
|
|
2349
|
-
} &
|
|
2374
|
+
} & IBaseTableProps> & Readonly<{
|
|
2350
2375
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
2351
2376
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
2352
2377
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2374,13 +2399,13 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2374
2399
|
"onUpdate:tableData"?: ((...args: any[]) => any) | undefined;
|
|
2375
2400
|
"onUpdate:selectList"?: ((value: TAllType<string | number | boolean | object | null | undefined>[]) => any) | undefined;
|
|
2376
2401
|
}>, {
|
|
2377
|
-
loadData: (currentPagination?:
|
|
2402
|
+
loadData: (currentPagination?: IPagination) => Promise<void>;
|
|
2378
2403
|
refresh: (resetPagination?: boolean) => Promise<void>;
|
|
2379
2404
|
openConfigColumnDialog: (id: string) => void;
|
|
2380
|
-
getPagination: () =>
|
|
2405
|
+
getPagination: () => IPagination;
|
|
2381
2406
|
clearSort: () => void;
|
|
2382
2407
|
getExportColumnsProps: () => string[];
|
|
2383
|
-
elTable: Ref<
|
|
2408
|
+
elTable: Ref<IBaseTableRef, IBaseTableRef>;
|
|
2384
2409
|
getTableData: () => TObj<string, any>[];
|
|
2385
2410
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2386
2411
|
select: (...args: any[]) => void;
|
|
@@ -2411,14 +2436,14 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2411
2436
|
"update:selectList": (value: TAllType<string | number | boolean | object | null | undefined>[]) => void;
|
|
2412
2437
|
}, string, {
|
|
2413
2438
|
border: boolean;
|
|
2414
|
-
columns:
|
|
2439
|
+
columns: IBaseTableColumn<any>[];
|
|
2415
2440
|
fit: boolean;
|
|
2416
2441
|
showHeader: boolean;
|
|
2417
2442
|
scrollbarAlwaysOn: boolean;
|
|
2418
2443
|
tableData: TObj[];
|
|
2419
2444
|
autoLoad: boolean;
|
|
2420
2445
|
hasDefaultOperation: boolean;
|
|
2421
|
-
operationBtnList:
|
|
2446
|
+
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2422
2447
|
hasPagination: boolean;
|
|
2423
2448
|
paginationPosition: "left" | "right";
|
|
2424
2449
|
fixedPagination: boolean;
|
|
@@ -2427,19 +2452,19 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2427
2452
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2428
2453
|
$slots: Readonly<{
|
|
2429
2454
|
header: (_props: {
|
|
2430
|
-
pagination:
|
|
2455
|
+
pagination: IPagination;
|
|
2431
2456
|
}) => void;
|
|
2432
2457
|
operation: (_props: {
|
|
2433
|
-
pagination:
|
|
2458
|
+
pagination: IPagination;
|
|
2434
2459
|
}) => void;
|
|
2435
2460
|
selectSlot: () => void;
|
|
2436
2461
|
empty: () => void;
|
|
2437
2462
|
}> & {
|
|
2438
2463
|
header: (_props: {
|
|
2439
|
-
pagination:
|
|
2464
|
+
pagination: IPagination;
|
|
2440
2465
|
}) => void;
|
|
2441
2466
|
operation: (_props: {
|
|
2442
|
-
pagination:
|
|
2467
|
+
pagination: IPagination;
|
|
2443
2468
|
}) => void;
|
|
2444
2469
|
selectSlot: () => void;
|
|
2445
2470
|
empty: () => void;
|
|
@@ -2474,6 +2499,52 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2474
2499
|
};
|
|
2475
2500
|
});
|
|
2476
2501
|
|
|
2502
|
+
export declare const ZTipsFormItem: {
|
|
2503
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2504
|
+
label: string;
|
|
2505
|
+
content?: string;
|
|
2506
|
+
prop?: string;
|
|
2507
|
+
rawContent?: boolean;
|
|
2508
|
+
tipsText?: string;
|
|
2509
|
+
}> & Readonly<{
|
|
2510
|
+
onClick?: (() => any) | undefined;
|
|
2511
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2512
|
+
click: () => any;
|
|
2513
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2514
|
+
P: {};
|
|
2515
|
+
B: {};
|
|
2516
|
+
D: {};
|
|
2517
|
+
C: {};
|
|
2518
|
+
M: {};
|
|
2519
|
+
Defaults: {};
|
|
2520
|
+
}, Readonly<{
|
|
2521
|
+
label: string;
|
|
2522
|
+
content?: string;
|
|
2523
|
+
prop?: string;
|
|
2524
|
+
rawContent?: boolean;
|
|
2525
|
+
tipsText?: string;
|
|
2526
|
+
}> & Readonly<{
|
|
2527
|
+
onClick?: (() => any) | undefined;
|
|
2528
|
+
}>, {}, {}, {}, {}, {}>;
|
|
2529
|
+
__isFragment?: never;
|
|
2530
|
+
__isTeleport?: never;
|
|
2531
|
+
__isSuspense?: never;
|
|
2532
|
+
} & ComponentOptionsBase<Readonly<{
|
|
2533
|
+
label: string;
|
|
2534
|
+
content?: string;
|
|
2535
|
+
prop?: string;
|
|
2536
|
+
rawContent?: boolean;
|
|
2537
|
+
tipsText?: string;
|
|
2538
|
+
}> & Readonly<{
|
|
2539
|
+
onClick?: (() => any) | undefined;
|
|
2540
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2541
|
+
click: () => any;
|
|
2542
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2543
|
+
$slots: {
|
|
2544
|
+
default?(_: {}): any;
|
|
2545
|
+
};
|
|
2546
|
+
});
|
|
2547
|
+
|
|
2477
2548
|
declare type TAllType<T = string | number | boolean | object | null | undefined> = T | T[];
|
|
2478
2549
|
declare type TUndefinable<T> = T | undefined;
|
|
2479
2550
|
declare type TNullable<T> = T | null;
|