@vue-ui-kit/ant 2.4.3 → 2.4.4
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/cjs/index.js +3 -3
- package/dist/es/index.js +677 -582
- package/dist/index.d.ts +3080 -23
- package/package.json +1 -2
- package/src/declarations/antProxy.ts +12 -1
- package/src/index.ts +1 -0
- package/src/packages/components/PGrid.vue +68 -4
- package/src/packages/components/RenderAntCell.tsx +1 -1
- package/src/packages/components/RenderDefaultSlots.tsx +6 -2
- package/src/packages/store/renderStore.tsx +1 -1
- package/src/packages/utils/autoViewportBox.ts +156 -0
- package/src/packages/utils/config.ts +4 -0
- package/dist/declarations/antProxy.d.ts +0 -373
- package/dist/declarations/type.d.ts +0 -1
- package/dist/packages/components/CollapseCard.vue.d.ts +0 -29
- package/dist/packages/components/PCanvasTable.vue.d.ts +0 -177
- package/dist/packages/components/PForm.vue.d.ts +0 -22
- package/dist/packages/components/PFormCol.vue.d.ts +0 -23
- package/dist/packages/components/PFormGroup.vue.d.ts +0 -38
- package/dist/packages/components/PGroupBlock.vue.d.ts +0 -16
- package/dist/packages/components/PromisePicker.vue.d.ts +0 -25
- package/dist/packages/components/RenderAntCell.d.ts +0 -28
- package/dist/packages/components/RenderAntItem.d.ts +0 -18
- package/dist/packages/components/RenderDefaultSlots.d.ts +0 -34
- package/dist/packages/components/RenderEditCell.d.ts +0 -25
- package/dist/packages/components/RenderItemSlots.d.ts +0 -25
- package/dist/packages/components/RenderTitleSlots.d.ts +0 -16
- package/dist/packages/hooks/useMessage.d.ts +0 -8
- package/dist/packages/renders/Icon.d.ts +0 -4
- package/dist/packages/renders/TableInput.vue.d.ts +0 -25
- package/dist/packages/store/renderStore.d.ts +0 -16
- package/dist/packages/utils/AFormatters.d.ts +0 -9
- package/dist/packages/utils/config.d.ts +0 -30
- package/dist/packages/utils/core.d.ts +0 -10
- package/dist/packages/utils/is.d.ts +0 -4
- package/dist/packages/utils/treeHelper.d.ts +0 -19
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { Rule } from 'ant-design-vue/lib/form';
|
|
2
|
-
import { ButtonProps } from 'ant-design-vue/lib/button';
|
|
3
|
-
import { ColProps } from 'ant-design-vue/lib/grid/Col';
|
|
4
|
-
import { FormProps } from 'ant-design-vue/lib/form/Form';
|
|
5
|
-
import { TableColumnType, TableProps, TooltipProps } from 'ant-design-vue';
|
|
6
|
-
import { ConfigType, Column as EVirtColumn, default as EVirtTable } from 'e-virt-table';
|
|
7
|
-
export interface CellFuncArg<D extends Recordable = Recordable> {
|
|
8
|
-
row: D;
|
|
9
|
-
column?: ColumnProps<D>;
|
|
10
|
-
rowIndex: number;
|
|
11
|
-
cellValue: any;
|
|
12
|
-
}
|
|
13
|
-
export type FormatterFunc = (c: CellFuncArg, ...args: any[]) => any;
|
|
14
|
-
export type PFormatter = Record<string, FormatterFunc>;
|
|
15
|
-
export interface ItemFuncArg<F extends Recordable = Recordable> {
|
|
16
|
-
data: F;
|
|
17
|
-
field?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ItemRender {
|
|
20
|
-
name: string;
|
|
21
|
-
defaultValue?: any;
|
|
22
|
-
props?: Recordable;
|
|
23
|
-
attrs?: Recordable;
|
|
24
|
-
options?: IOption[];
|
|
25
|
-
children?: Recordable[];
|
|
26
|
-
events?: {
|
|
27
|
-
[key: string]: (...args: any[]) => any;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface CellRender {
|
|
31
|
-
name: string;
|
|
32
|
-
props?: Recordable;
|
|
33
|
-
attrs?: Recordable;
|
|
34
|
-
children?: Recordable[];
|
|
35
|
-
}
|
|
36
|
-
export interface Responsive {
|
|
37
|
-
xxs?: number;
|
|
38
|
-
xs?: number;
|
|
39
|
-
sm?: number;
|
|
40
|
-
md?: number;
|
|
41
|
-
lg?: number;
|
|
42
|
-
xl?: number;
|
|
43
|
-
xxl?: number;
|
|
44
|
-
}
|
|
45
|
-
export interface TooltipConfig extends TooltipProps {
|
|
46
|
-
title: TooltipProps['title'] | (() => any);
|
|
47
|
-
}
|
|
48
|
-
export interface PFormItemProps<F extends Recordable = Recordable> {
|
|
49
|
-
field?: string;
|
|
50
|
-
title?: string;
|
|
51
|
-
span?: number;
|
|
52
|
-
colon?: boolean;
|
|
53
|
-
labelCol?: ColProps;
|
|
54
|
-
wrapperCol?: ColProps;
|
|
55
|
-
forceRequired?: boolean;
|
|
56
|
-
align?: 'left' | 'right' | 'center';
|
|
57
|
-
col?: ColProps;
|
|
58
|
-
rule?: Rule[];
|
|
59
|
-
itemRender?: ItemRender;
|
|
60
|
-
tooltipConfig?: TooltipConfig;
|
|
61
|
-
slots?: {
|
|
62
|
-
title?: () => any;
|
|
63
|
-
default?: ({ data, field }: ItemFuncArg<F>, passTrigger?: (cusFields?: string | string[]) => void, passDelayTrigger?: (cusFields?: string | string[], time?: number) => void) => any;
|
|
64
|
-
defaultValue?: any;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export interface PFormProps<F extends Recordable = Recordable> extends FormProps {
|
|
68
|
-
name?: string;
|
|
69
|
-
items: PFormItemProps<F>[];
|
|
70
|
-
customReset?: () => void;
|
|
71
|
-
}
|
|
72
|
-
export interface PBlockProps<F extends Recordable = Recordable> {
|
|
73
|
-
name?: string;
|
|
74
|
-
getFormSetting: (data: Partial<F>) => PFormProps<Partial<F>>;
|
|
75
|
-
source: Partial<F>;
|
|
76
|
-
}
|
|
77
|
-
export interface PromisePickerProps<D extends Recordable = Recordable, F extends Recordable = Recordable> {
|
|
78
|
-
gridSetting: PGridProps<D, F>;
|
|
79
|
-
title?: string;
|
|
80
|
-
width?: string | number;
|
|
81
|
-
multipleAllowEmpty?: boolean;
|
|
82
|
-
bodyStyle?: Recordable;
|
|
83
|
-
beforePick?: (rowOrRows: D | Array<D>) => Promise<void>;
|
|
84
|
-
}
|
|
85
|
-
export type GroupMenuItemHandler<F extends Recordable = Recordable> = ({ index, data, code, }: {
|
|
86
|
-
index: number;
|
|
87
|
-
code: string;
|
|
88
|
-
data: Partial<F & {
|
|
89
|
-
__index: number;
|
|
90
|
-
}>;
|
|
91
|
-
}) => void;
|
|
92
|
-
export interface GroupMenuItem<F extends Recordable = Recordable> {
|
|
93
|
-
content: string;
|
|
94
|
-
icon?: string;
|
|
95
|
-
code: string;
|
|
96
|
-
visibleMethod?: ({ data, index }: {
|
|
97
|
-
data: Partial<F>;
|
|
98
|
-
index: number;
|
|
99
|
-
}) => boolean;
|
|
100
|
-
}
|
|
101
|
-
export interface PFormGroupProps<F extends Recordable = Recordable> {
|
|
102
|
-
name?: string;
|
|
103
|
-
getFormSetting: (data: Partial<F>) => PFormProps<Partial<F>>;
|
|
104
|
-
title?: string;
|
|
105
|
-
tabLabel?: string;
|
|
106
|
-
/**
|
|
107
|
-
* 获取完整标签页标签
|
|
108
|
-
* @param data 数据
|
|
109
|
-
* @param idx 实际索引
|
|
110
|
-
* @returns 标签页标签
|
|
111
|
-
*/
|
|
112
|
-
getTabLabel?: (data: Partial<F>, idx: number) => string;
|
|
113
|
-
editAble?: boolean;
|
|
114
|
-
showAdd?: boolean;
|
|
115
|
-
collapsible?: boolean;
|
|
116
|
-
/** 是否默认折叠 */
|
|
117
|
-
defaultCollapsed?: boolean;
|
|
118
|
-
lazyErrorMark?: boolean;
|
|
119
|
-
forceRender?: boolean;
|
|
120
|
-
keepSerial?: boolean;
|
|
121
|
-
loading?: boolean;
|
|
122
|
-
itemMenus?: Array<GroupMenuItem<F>>;
|
|
123
|
-
createItem?: ({ list }: {
|
|
124
|
-
list?: Partial<F>[];
|
|
125
|
-
}) => Promise<Partial<F>>;
|
|
126
|
-
max?: number;
|
|
127
|
-
menuHandler?: GroupMenuItemHandler<F>;
|
|
128
|
-
}
|
|
129
|
-
export interface ColumnProps<D extends Recordable = Recordable> extends Omit<TableColumnType, 'slots'> {
|
|
130
|
-
field?: string;
|
|
131
|
-
children?: ColumnProps<D>[];
|
|
132
|
-
formatter?: string | [string, ...Array<any>] | ((arg: PartialByKeys<CellFuncArg<D>, 'cellValue'>) => any);
|
|
133
|
-
slots?: {
|
|
134
|
-
default?: ({ row, column, rowIndex }: PartialByKeys<CellFuncArg<D>, 'cellValue'>) => any;
|
|
135
|
-
title?: ({ column }: {
|
|
136
|
-
column: ColumnProps<D>;
|
|
137
|
-
}) => any;
|
|
138
|
-
};
|
|
139
|
-
cellRender?: CellRender;
|
|
140
|
-
}
|
|
141
|
-
export interface PButtonProps extends Omit<ButtonProps, 'type'> {
|
|
142
|
-
content?: string | (() => any);
|
|
143
|
-
icon?: string;
|
|
144
|
-
type?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface ToolbarButtonProps extends PButtonProps {
|
|
147
|
-
code?: string;
|
|
148
|
-
dropdowns?: ToolbarButtonProps[];
|
|
149
|
-
}
|
|
150
|
-
export interface ToolbarToolProps extends PButtonProps {
|
|
151
|
-
code: string;
|
|
152
|
-
}
|
|
153
|
-
export interface ToolbarConfig {
|
|
154
|
-
buttons?: Array<ToolbarButtonProps>;
|
|
155
|
-
tools?: Array<ToolbarToolProps>;
|
|
156
|
-
disabled?: boolean;
|
|
157
|
-
}
|
|
158
|
-
export interface ResponsePathConfig<D extends Recordable = Recordable> {
|
|
159
|
-
list?: string | ((res: Recordable) => D[]);
|
|
160
|
-
result?: string | ((res: Recordable) => D[]);
|
|
161
|
-
total?: string | ((res: Recordable) => D[]);
|
|
162
|
-
message?: string | ((res: Recordable) => string | {
|
|
163
|
-
status: string;
|
|
164
|
-
content: string;
|
|
165
|
-
icon?: string;
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
export type HandlerMultiDel = (ids: Array<string | number>) => any;
|
|
169
|
-
export interface AjaxConfig<F extends Recordable = Recordable> {
|
|
170
|
-
query: (Q: {
|
|
171
|
-
page?: IPage;
|
|
172
|
-
form: Partial<F>;
|
|
173
|
-
}) => Promise<Recordable>;
|
|
174
|
-
multiDelete?: HandlerMultiDel;
|
|
175
|
-
}
|
|
176
|
-
export interface ProxyConfig<D extends Recordable = Recordable, F extends Recordable = Recordable> {
|
|
177
|
-
response?: ResponsePathConfig<D>;
|
|
178
|
-
ajax: AjaxConfig<F>;
|
|
179
|
-
}
|
|
180
|
-
export interface PageConfig {
|
|
181
|
-
pageSizes?: number[];
|
|
182
|
-
pageSize?: number;
|
|
183
|
-
showSizeChanger?: boolean;
|
|
184
|
-
showQuickJumper?: boolean;
|
|
185
|
-
}
|
|
186
|
-
export interface SelectConfig<D extends Recordable = Recordable> {
|
|
187
|
-
multiple?: boolean;
|
|
188
|
-
showCount?: boolean;
|
|
189
|
-
getCheckboxProps?: (record: D) => {
|
|
190
|
-
disabled?: boolean;
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
export type PGridProps<D extends Recordable = Recordable, F extends Recordable = Recordable> = {
|
|
194
|
-
selectConfig?: SelectConfig<D>;
|
|
195
|
-
rowKey?: string;
|
|
196
|
-
striped?: boolean;
|
|
197
|
-
manualFetch?: boolean;
|
|
198
|
-
align?: 'left' | 'right' | 'center';
|
|
199
|
-
formConfig?: PFormProps<F>;
|
|
200
|
-
columns?: ColumnProps<D>[];
|
|
201
|
-
toolbarConfig?: ToolbarConfig;
|
|
202
|
-
pageConfig?: PageConfig;
|
|
203
|
-
proxyConfig?: ProxyConfig<D, F>;
|
|
204
|
-
tableConfig?: TableProps<D>;
|
|
205
|
-
scrollMode?: 'outer' | 'inner';
|
|
206
|
-
lazyReset?: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* 表格纵向滚动区额外预留像素:在 `tableWrapper` 高度内扣减表头、底栏后,再从 body 可滚动高度中减去本值,避免末行与滚动条贴边或被裁切。可通过 `setUIKitConfig({ grid: { fitHeight } })` 或组件 `fitHeight` 按项目微调;库内全局默认见 `config`。
|
|
209
|
-
*/
|
|
210
|
-
fitHeight?: number;
|
|
211
|
-
/**
|
|
212
|
-
* 适应展示区到页面顶部的canvas渲染高度 通常比table的小
|
|
213
|
-
*/
|
|
214
|
-
fitCanvasHeight?: number;
|
|
215
|
-
/**
|
|
216
|
-
* 虚拟列表 Y区计算高度
|
|
217
|
-
*/
|
|
218
|
-
renderY?: number;
|
|
219
|
-
};
|
|
220
|
-
export interface RenderOptions {
|
|
221
|
-
/**
|
|
222
|
-
* 渲染器名称
|
|
223
|
-
*/
|
|
224
|
-
name?: string;
|
|
225
|
-
/**
|
|
226
|
-
* 目标组件渲染的参数
|
|
227
|
-
*/
|
|
228
|
-
props?: {
|
|
229
|
-
[key: string]: any;
|
|
230
|
-
};
|
|
231
|
-
/**
|
|
232
|
-
* 目标组件渲染的属性
|
|
233
|
-
*/
|
|
234
|
-
attrs?: {
|
|
235
|
-
[key: string]: any;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* 目标组件渲染的事件
|
|
239
|
-
*/
|
|
240
|
-
events?: {
|
|
241
|
-
[key: string]: (...args: any[]) => any;
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* 多目标渲染
|
|
245
|
-
*/
|
|
246
|
-
children?: any[];
|
|
247
|
-
/**
|
|
248
|
-
* 选项
|
|
249
|
-
*/
|
|
250
|
-
options?: IOption[];
|
|
251
|
-
/**
|
|
252
|
-
* 默认值
|
|
253
|
-
*/
|
|
254
|
-
defaultValue?: any;
|
|
255
|
-
/**
|
|
256
|
-
* 校验触发器
|
|
257
|
-
* @param cusFields field或者field数组
|
|
258
|
-
*/
|
|
259
|
-
handleTrigger?: (cusFields?: string | string[]) => void;
|
|
260
|
-
/**
|
|
261
|
-
* 延迟校验触发器
|
|
262
|
-
* @param cusFields field或者field数组
|
|
263
|
-
* @param time 延迟时间
|
|
264
|
-
*/
|
|
265
|
-
handleDelayTrigger?: (cusFields?: string | string[], time?: number) => void;
|
|
266
|
-
}
|
|
267
|
-
export interface RenderFormParams<F extends Recordable = Recordable> {
|
|
268
|
-
data: F;
|
|
269
|
-
field?: string;
|
|
270
|
-
}
|
|
271
|
-
export interface RenderTableParams<D extends Recordable = Recordable> {
|
|
272
|
-
data?: D[];
|
|
273
|
-
row: D;
|
|
274
|
-
rowIndex?: number;
|
|
275
|
-
field?: string;
|
|
276
|
-
title?: string;
|
|
277
|
-
}
|
|
278
|
-
export interface CanvasColumnProps<T extends Recordable = Recordable> extends Omit<EVirtColumn, 'children' | 'formatter' | 'key'> {
|
|
279
|
-
key?: string;
|
|
280
|
-
field?: string;
|
|
281
|
-
children?: CanvasColumnProps<T>[];
|
|
282
|
-
formatter?: string | [string, ...Array<any>] | ((arg: PartialByKeys<CellFuncArg<T>, 'cellValue'>) => any);
|
|
283
|
-
slots?: {
|
|
284
|
-
default?: ({ row, column, rowIndex, }: {
|
|
285
|
-
row: T;
|
|
286
|
-
column: CanvasColumnProps<T>;
|
|
287
|
-
rowIndex: number;
|
|
288
|
-
}) => any;
|
|
289
|
-
edit?: ({ row, column, rowIndex, }: {
|
|
290
|
-
row: T;
|
|
291
|
-
column: CanvasColumnProps<T>;
|
|
292
|
-
rowIndex: number;
|
|
293
|
-
}) => any;
|
|
294
|
-
title?: ({ column }: {
|
|
295
|
-
column: CanvasColumnProps<T>;
|
|
296
|
-
}) => any;
|
|
297
|
-
};
|
|
298
|
-
cellRender?: CellRender;
|
|
299
|
-
editRender?: CellRender;
|
|
300
|
-
}
|
|
301
|
-
export interface CanvasTableProps<T extends Recordable = Recordable, B extends Recordable = Recordable> {
|
|
302
|
-
columns: CanvasColumnProps<T>[];
|
|
303
|
-
data: T[];
|
|
304
|
-
config?: ConfigType;
|
|
305
|
-
footerData?: B[];
|
|
306
|
-
loading?: boolean;
|
|
307
|
-
}
|
|
308
|
-
export interface PCanvasGridProps<D extends Recordable = Recordable, F extends Recordable = Recordable> {
|
|
309
|
-
staticConfig?: {
|
|
310
|
-
selectable?: boolean;
|
|
311
|
-
showCount?: boolean;
|
|
312
|
-
tree?: boolean;
|
|
313
|
-
};
|
|
314
|
-
manualFetch?: boolean;
|
|
315
|
-
formConfig?: PFormProps<F>;
|
|
316
|
-
columns: CanvasColumnProps<D>[];
|
|
317
|
-
toolbarConfig?: ToolbarConfig;
|
|
318
|
-
pageConfig?: PageConfig;
|
|
319
|
-
proxyConfig?: ProxyConfig<D, F>;
|
|
320
|
-
config?: ConfigType;
|
|
321
|
-
lazyReset?: boolean;
|
|
322
|
-
/**
|
|
323
|
-
* 适应展示区到页面顶部的高度,通常和容器最上的y值有关(正比)
|
|
324
|
-
*/
|
|
325
|
-
fitHeight?: number;
|
|
326
|
-
}
|
|
327
|
-
export interface PGridInstance<D extends Recordable = Recordable, F extends Recordable = Recordable> {
|
|
328
|
-
commitProxy: {
|
|
329
|
-
query: () => Promise<D[]>;
|
|
330
|
-
reload: () => Promise<D[]>;
|
|
331
|
-
reloadPage: () => Promise<D[]>;
|
|
332
|
-
passQuery: (query: Partial<F>, lazy?: boolean) => Promise<void | D[]>;
|
|
333
|
-
forcePassQuery: (query: Partial<F>, lazy?: boolean) => Promise<void | D[]>;
|
|
334
|
-
};
|
|
335
|
-
selectedRowKeys: string[] | number[];
|
|
336
|
-
selectedRecords: D[];
|
|
337
|
-
$table: Recordable;
|
|
338
|
-
$form: Recordable;
|
|
339
|
-
getFormData: () => Partial<F>;
|
|
340
|
-
setLoadings: (value: boolean) => void;
|
|
341
|
-
setBtnLoading: (code: string, status: boolean) => void;
|
|
342
|
-
resizeTable: () => void;
|
|
343
|
-
}
|
|
344
|
-
export interface PFormInstance {
|
|
345
|
-
reset: () => void;
|
|
346
|
-
$form: Recordable;
|
|
347
|
-
}
|
|
348
|
-
export interface PromisePickerInstance<D extends Recordable = Recordable> {
|
|
349
|
-
pick: () => Promise<{
|
|
350
|
-
row: D;
|
|
351
|
-
field?: string;
|
|
352
|
-
}>;
|
|
353
|
-
pickMultiple: () => Promise<D[]>;
|
|
354
|
-
grid: PGridInstance<D>;
|
|
355
|
-
hide: () => void;
|
|
356
|
-
}
|
|
357
|
-
export interface PFormBlockInstance {
|
|
358
|
-
$form: Recordable;
|
|
359
|
-
}
|
|
360
|
-
export interface PFormGroupInstance {
|
|
361
|
-
activeKey: number;
|
|
362
|
-
setActiveKey: (activeKey: number) => void;
|
|
363
|
-
validateAll: () => Promise<void>;
|
|
364
|
-
validate: (index: number, ignoreTabError?: boolean) => Promise<void>;
|
|
365
|
-
validateFields: (index: number, fields: string[], ignoreTabError?: boolean) => Promise<void>;
|
|
366
|
-
collapse: () => void;
|
|
367
|
-
expand: () => void;
|
|
368
|
-
}
|
|
369
|
-
export interface PCanvasTableInstance<T extends Recordable = Recordable> {
|
|
370
|
-
$table: InstanceType<typeof EVirtTable>;
|
|
371
|
-
selectedRecords: T[];
|
|
372
|
-
setLoading: (value: boolean) => void;
|
|
373
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Recordable<T = any> = Record<string, T>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
/** 是否默认折叠 */
|
|
3
|
-
defaultCollapsed?: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
/** 是否可以折叠 */
|
|
6
|
-
collapsible?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function __VLS_template(): {
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: any;
|
|
11
|
-
refs: {};
|
|
12
|
-
rootEl: any;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
16
|
-
collapse: () => void;
|
|
17
|
-
expand: () => void;
|
|
18
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
-
title: string;
|
|
20
|
-
defaultCollapsed: boolean;
|
|
21
|
-
collapsible: boolean;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { default as Cell } from 'e-virt-table/dist/lib/Cell';
|
|
2
|
-
import { default as EVirtTable, Column as EVirtColumn, FormatterMethod } from 'e-virt-table';
|
|
3
|
-
import { CanvasTableProps } from '../../declarations/antProxy';
|
|
4
|
-
declare const _default: <T extends Recordable = Recordable, B extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
-
readonly onChange?: ((value: any[]) => any) | undefined;
|
|
7
|
-
readonly onSelectionChange?: ((value: T[]) => any) | undefined;
|
|
8
|
-
readonly onReady?: ((value: EVirtTable) => any) | undefined;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onSelectionChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
11
|
-
$table: null;
|
|
12
|
-
selectedRecords: import('vue').ComputedRef<import('@vue/reactivity').UnwrapRefSimple<T>[]>;
|
|
13
|
-
reloadData: () => void;
|
|
14
|
-
}>): void;
|
|
15
|
-
attrs: any;
|
|
16
|
-
slots: Partial<Record<string, (_: {
|
|
17
|
-
cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
|
|
18
|
-
formatter?: FormatterMethod;
|
|
19
|
-
formatterFooter?: FormatterMethod;
|
|
20
|
-
hoverIconName?: string;
|
|
21
|
-
operation: boolean;
|
|
22
|
-
align: import('e-virt-table').Align;
|
|
23
|
-
verticalAlign: import('e-virt-table').VerticalAlign;
|
|
24
|
-
fixed?: import('e-virt-table').Fixed;
|
|
25
|
-
type: import('e-virt-table').Type | "";
|
|
26
|
-
editorType: string;
|
|
27
|
-
editorProps: any;
|
|
28
|
-
cellType: import('e-virt-table').CellType;
|
|
29
|
-
level: number;
|
|
30
|
-
colspan: number;
|
|
31
|
-
rowspan: number;
|
|
32
|
-
mergeRow: boolean;
|
|
33
|
-
mergeCol: boolean;
|
|
34
|
-
relationRowKeys: string[];
|
|
35
|
-
relationColKeys: string[];
|
|
36
|
-
key: string;
|
|
37
|
-
column: EVirtColumn;
|
|
38
|
-
rowIndex: number;
|
|
39
|
-
colIndex: number;
|
|
40
|
-
rowKey: string;
|
|
41
|
-
row: any;
|
|
42
|
-
value: any;
|
|
43
|
-
render: import('e-virt-table').Render;
|
|
44
|
-
renderFooter: import('e-virt-table').Render;
|
|
45
|
-
style: any;
|
|
46
|
-
domDataset: any;
|
|
47
|
-
rules: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
|
|
48
|
-
message: string;
|
|
49
|
-
text: string;
|
|
50
|
-
displayText: string;
|
|
51
|
-
visibleWidth: number;
|
|
52
|
-
visibleHeight: number;
|
|
53
|
-
isHasChanged: boolean;
|
|
54
|
-
drawX: number;
|
|
55
|
-
drawY: number;
|
|
56
|
-
drawCellBgColor: string;
|
|
57
|
-
drawCellSkyBgColor: string;
|
|
58
|
-
drawTextColor: string;
|
|
59
|
-
drawTextFont: string;
|
|
60
|
-
drawTextX: number;
|
|
61
|
-
drawTextY: number;
|
|
62
|
-
drawTextWidth: number;
|
|
63
|
-
drawTextHeight: number;
|
|
64
|
-
drawTreeImageX: number;
|
|
65
|
-
drawTreeImageY: number;
|
|
66
|
-
drawTreeImageWidth: number;
|
|
67
|
-
drawTreeImageHeight: number;
|
|
68
|
-
drawTreeImageName: string;
|
|
69
|
-
drawTreeImageSource?: HTMLImageElement;
|
|
70
|
-
drawSelectionImageX: number;
|
|
71
|
-
drawSelectionImageY: number;
|
|
72
|
-
drawSelectionImageWidth: number;
|
|
73
|
-
drawSelectionImageHeight: number;
|
|
74
|
-
drawSelectionImageName: string;
|
|
75
|
-
drawSelectionImageSource?: HTMLImageElement;
|
|
76
|
-
drawHoverImageX: number;
|
|
77
|
-
drawHoverImageY: number;
|
|
78
|
-
drawHoverImageWidth: number;
|
|
79
|
-
drawHoverImageHeight: number;
|
|
80
|
-
drawHoverImageName: string;
|
|
81
|
-
drawHoverImageSource?: HTMLImageElement;
|
|
82
|
-
autoRowHeight: boolean;
|
|
83
|
-
calculatedHeight: number;
|
|
84
|
-
ellipsis: boolean;
|
|
85
|
-
rowExpand: boolean;
|
|
86
|
-
rowHasChildren: boolean;
|
|
87
|
-
overflowTooltipShow: boolean;
|
|
88
|
-
selectorCellValueType: import('e-virt-table').SelectorCellValueType;
|
|
89
|
-
overflowTooltipMaxWidth: number;
|
|
90
|
-
overflowTooltipPlacement: import('e-virt-table').OverflowTooltipPlacement;
|
|
91
|
-
maxLineClamp: import('e-virt-table').LineClampType;
|
|
92
|
-
ctx: import('e-virt-table/dist/lib/Context').default;
|
|
93
|
-
x: number;
|
|
94
|
-
y: number;
|
|
95
|
-
width: number;
|
|
96
|
-
height: number;
|
|
97
|
-
} | {
|
|
98
|
-
cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
|
|
99
|
-
align: import('e-virt-table').Align;
|
|
100
|
-
hideHeaderSelection: boolean;
|
|
101
|
-
verticalAlign: import('e-virt-table').VerticalAlign;
|
|
102
|
-
fixed?: import('e-virt-table').Fixed;
|
|
103
|
-
minWidth?: number;
|
|
104
|
-
maxWidth?: number;
|
|
105
|
-
widthFillDisable: boolean;
|
|
106
|
-
type: import('e-virt-table').Type | "";
|
|
107
|
-
operation: boolean;
|
|
108
|
-
editorType: string;
|
|
109
|
-
level: number;
|
|
110
|
-
text: string;
|
|
111
|
-
hide: boolean;
|
|
112
|
-
displayText: string;
|
|
113
|
-
colspan: number;
|
|
114
|
-
rowspan: number;
|
|
115
|
-
row: any;
|
|
116
|
-
key: string;
|
|
117
|
-
required: boolean;
|
|
118
|
-
readonly: boolean;
|
|
119
|
-
ellipsis: boolean;
|
|
120
|
-
overflowTooltipShow: boolean;
|
|
121
|
-
children: EVirtColumn[];
|
|
122
|
-
column: EVirtColumn;
|
|
123
|
-
colIndex: number;
|
|
124
|
-
rowKey: string;
|
|
125
|
-
rules?: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
|
|
126
|
-
hasChildren: boolean;
|
|
127
|
-
render: import('e-virt-table').Render;
|
|
128
|
-
style: Partial<CSSStyleDeclaration>;
|
|
129
|
-
drawX: number;
|
|
130
|
-
drawY: number;
|
|
131
|
-
sortIconName: string;
|
|
132
|
-
sortAscIconName: string;
|
|
133
|
-
sortDescIconName: string;
|
|
134
|
-
visibleWidth: number;
|
|
135
|
-
visibleHeight: number;
|
|
136
|
-
maxLineClampHeader: import('e-virt-table').LineClampType;
|
|
137
|
-
domDataset: any;
|
|
138
|
-
drawTextX: number;
|
|
139
|
-
drawTextY: number;
|
|
140
|
-
drawTextWidth: number;
|
|
141
|
-
drawTextHeight: number;
|
|
142
|
-
drawCellBgColor: string;
|
|
143
|
-
drawTextColor: string;
|
|
144
|
-
drawTextFont: string;
|
|
145
|
-
drawSelectionImageX: number;
|
|
146
|
-
drawSelectionImageY: number;
|
|
147
|
-
drawSelectionImageWidth: number;
|
|
148
|
-
drawSelectionImageHeight: number;
|
|
149
|
-
drawSelectionImageName: string;
|
|
150
|
-
drawSelectionImageSource?: HTMLImageElement;
|
|
151
|
-
drawSortImageX: number;
|
|
152
|
-
drawSortImageY: number;
|
|
153
|
-
drawSortImageWidth: number;
|
|
154
|
-
drawSortImageHeight: number;
|
|
155
|
-
drawSortImageName: string;
|
|
156
|
-
drawSortImageSource?: HTMLImageElement;
|
|
157
|
-
ctx: import('e-virt-table/dist/lib/Context').default;
|
|
158
|
-
x: number;
|
|
159
|
-
y: number;
|
|
160
|
-
width: number;
|
|
161
|
-
height: number;
|
|
162
|
-
cellType: import('e-virt-table').CellType;
|
|
163
|
-
}) => any>> & {
|
|
164
|
-
empty?(_: {}): any;
|
|
165
|
-
};
|
|
166
|
-
emit: {
|
|
167
|
-
(e: "change", value: any[]): void;
|
|
168
|
-
(e: "selectionChange", value: T[]): void;
|
|
169
|
-
(e: "ready", value: EVirtTable): void;
|
|
170
|
-
};
|
|
171
|
-
}>) => import('vue').VNode & {
|
|
172
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
173
|
-
};
|
|
174
|
-
export default _default;
|
|
175
|
-
type __VLS_PrettifyLocal<T> = {
|
|
176
|
-
[K in keyof T]: T[K];
|
|
177
|
-
} & {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PFormProps } from '../../declarations/antProxy';
|
|
2
|
-
declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly onReset?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
readonly onApply?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onApply"> & (PFormProps<F> & {
|
|
7
|
-
data: F;
|
|
8
|
-
}) & Partial<{}>> & import('vue').PublicProps;
|
|
9
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
10
|
-
reset: () => void;
|
|
11
|
-
$form: import('vue').ComputedRef<any>;
|
|
12
|
-
}>): void;
|
|
13
|
-
attrs: any;
|
|
14
|
-
slots: {};
|
|
15
|
-
emit: (event: "reset" | "apply", ...args: any[]) => void;
|
|
16
|
-
}>) => import('vue').VNode & {
|
|
17
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_PrettifyLocal<T> = {
|
|
21
|
-
[K in keyof T]: T[K];
|
|
22
|
-
} & {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PFormItemProps } from '../../declarations/antProxy';
|
|
2
|
-
declare const _default: <T extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly onTrigger?: ((cusFields?: string | string[] | undefined) => any) | undefined;
|
|
5
|
-
readonly onReset?: (() => any) | undefined;
|
|
6
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onTrigger"> & {
|
|
7
|
-
item: PFormItemProps<T>;
|
|
8
|
-
formData: T;
|
|
9
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
-
attrs: any;
|
|
12
|
-
slots: {};
|
|
13
|
-
emit: {
|
|
14
|
-
(e: "trigger", cusFields?: string | string[]): void;
|
|
15
|
-
(e: "reset"): void;
|
|
16
|
-
};
|
|
17
|
-
}>) => import('vue').VNode & {
|
|
18
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
type __VLS_PrettifyLocal<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { PFormGroupProps } from '../../declarations/antProxy';
|
|
2
|
-
declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly "onUpdate:modelValue"?: ((value: Partial<F & {
|
|
5
|
-
__index: number;
|
|
6
|
-
}>[]) => any) | undefined;
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
8
|
-
modelValue?: Partial<F & {
|
|
9
|
-
__index: number;
|
|
10
|
-
}>[];
|
|
11
|
-
} & PFormGroupProps<F>) & Partial<{}>> & import('vue').PublicProps;
|
|
12
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
13
|
-
collapse: () => void;
|
|
14
|
-
expand: () => void;
|
|
15
|
-
activeKey: import('vue').ComputedRef<number>;
|
|
16
|
-
setActiveKey: (key: number) => void;
|
|
17
|
-
validateAll: () => Promise<PromiseSettledResult<any>[]>;
|
|
18
|
-
validate: (__index: number, ignoreTabError?: boolean) => Promise<void>;
|
|
19
|
-
validateFields: (__index: number, fields: string[], ignoreTabError?: boolean) => Promise<void>;
|
|
20
|
-
}>): void;
|
|
21
|
-
attrs: any;
|
|
22
|
-
slots: Readonly<{
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
rightExtra?: () => any;
|
|
25
|
-
}> & {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
rightExtra?: () => any;
|
|
28
|
-
};
|
|
29
|
-
emit: (evt: "update:modelValue", value: Partial<F & {
|
|
30
|
-
__index: number;
|
|
31
|
-
}>[]) => void;
|
|
32
|
-
}>) => import('vue').VNode & {
|
|
33
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
|
-
};
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_PrettifyLocal<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PBlockProps } from '../../declarations/antProxy';
|
|
2
|
-
declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & PBlockProps<F> & Partial<{}>> & import('vue').PublicProps;
|
|
4
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
5
|
-
$form: import('vue').ComputedRef<Recordable<any> | undefined>;
|
|
6
|
-
}>): void;
|
|
7
|
-
attrs: any;
|
|
8
|
-
slots: {};
|
|
9
|
-
emit: {};
|
|
10
|
-
}>) => import('vue').VNode & {
|
|
11
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_PrettifyLocal<T> = {
|
|
15
|
-
[K in keyof T]: T[K];
|
|
16
|
-
} & {};
|