gi-component 0.0.1 → 0.0.3
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/gi.css +1 -1
- package/dist/index.d.ts +749 -0
- package/dist/{dist/index.es.js → index.es.js} +16 -7
- package/dist/index.es.js.map +1 -0
- package/dist/{dist/index.umd.js → index.umd.js} +1 -1
- package/dist/index.umd.js.map +1 -0
- package/package.json +1 -1
- package/packages/components/dialog/src/dialog.ts +1 -1
- package/packages/components/table/src/table.vue +24 -20
- package/packages/hooks/useTable.ts +3 -0
- package/packages/utils/createSelectDialog.ts +5 -6
- package/dist/dist/index.es.js.map +0 -1
- package/dist/dist/index.umd.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,750 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { ButtonProps as ButtonProps_2 } from 'element-plus';
|
|
3
|
+
import { Component } from 'vue';
|
|
4
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
5
|
+
import { ComponentProvideOptions } from 'vue';
|
|
6
|
+
import { ComputedRef } from 'vue';
|
|
7
|
+
import { CSSProperties } from 'vue';
|
|
8
|
+
import { default as default_2 } from './src/form.vue';
|
|
9
|
+
import { default as default_3 } from './src/edit-table.vue';
|
|
10
|
+
import { default as default_4 } from './src/table.vue';
|
|
11
|
+
import { DefineComponent } from 'vue';
|
|
12
|
+
import { DialogProps as DialogProps_2 } from 'element-plus';
|
|
13
|
+
import type * as El from 'element-plus';
|
|
14
|
+
import { ExtractPropTypes } from 'vue';
|
|
15
|
+
import { FormProps as FormProps_2 } from 'element-plus';
|
|
16
|
+
import { ModelRef } from 'vue';
|
|
17
|
+
import { PaginationProps } from 'element-plus';
|
|
18
|
+
import { PropType } from 'vue';
|
|
19
|
+
import { PublicProps } from 'vue';
|
|
20
|
+
import { Ref } from 'vue';
|
|
21
|
+
import { Slots } from 'vue';
|
|
22
|
+
import { SplitterPanelProps } from 'element-plus';
|
|
23
|
+
import { TableColumnCtx } from 'element-plus';
|
|
24
|
+
import { TableColumnInstance } from 'element-plus';
|
|
25
|
+
import { TableProps as TableProps_2 } from 'element-plus';
|
|
26
|
+
import { TabPaneName } from 'element-plus';
|
|
27
|
+
import { TabsProps as TabsProps_2 } from 'element-plus';
|
|
28
|
+
import { VNode } from 'vue';
|
|
29
|
+
|
|
30
|
+
declare const __VLS_component: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
31
|
+
click: (event: MouseEvent) => any;
|
|
32
|
+
}, string, PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
33
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
type: "add" | "edit" | "delete" | "search" | "reset" | "upload" | "download" | "print" | "" | ButtonProps_2["type"];
|
|
36
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
|
|
38
|
+
declare const __VLS_component_2: DefineComponent<CardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
39
|
+
size: "small" | "middle";
|
|
40
|
+
title: string;
|
|
41
|
+
extra: string;
|
|
42
|
+
bordered: boolean;
|
|
43
|
+
headerBordered: boolean;
|
|
44
|
+
headerStyle: CSSProperties;
|
|
45
|
+
bodyStyle: CSSProperties;
|
|
46
|
+
inner: boolean;
|
|
47
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
|
+
|
|
49
|
+
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
|
+
"update:modelValue": (value: (string | number) | undefined) => any;
|
|
51
|
+
} & {
|
|
52
|
+
tabClick: (pane: {
|
|
53
|
+
uid: number;
|
|
54
|
+
getVnode: () => VNode;
|
|
55
|
+
slots: Slots;
|
|
56
|
+
props: {
|
|
57
|
+
readonly disabled: boolean;
|
|
58
|
+
readonly lazy: boolean;
|
|
59
|
+
readonly label: string;
|
|
60
|
+
readonly closable: boolean;
|
|
61
|
+
readonly name?: (string | number) | undefined;
|
|
62
|
+
};
|
|
63
|
+
paneName: TabPaneName | undefined;
|
|
64
|
+
active: boolean;
|
|
65
|
+
index: string | undefined;
|
|
66
|
+
isClosable: boolean;
|
|
67
|
+
isFocusInsidePane: () => boolean | undefined;
|
|
68
|
+
}, ev: Event) => any;
|
|
69
|
+
tabChange: (value: string) => any;
|
|
70
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
71
|
+
"onUpdate:modelValue"?: ((value: (string | number) | undefined) => any) | undefined;
|
|
72
|
+
onTabClick?: ((pane: {
|
|
73
|
+
uid: number;
|
|
74
|
+
getVnode: () => VNode;
|
|
75
|
+
slots: Slots;
|
|
76
|
+
props: {
|
|
77
|
+
readonly disabled: boolean;
|
|
78
|
+
readonly lazy: boolean;
|
|
79
|
+
readonly label: string;
|
|
80
|
+
readonly closable: boolean;
|
|
81
|
+
readonly name?: (string | number) | undefined;
|
|
82
|
+
};
|
|
83
|
+
paneName: TabPaneName | undefined;
|
|
84
|
+
active: boolean;
|
|
85
|
+
index: string | undefined;
|
|
86
|
+
isClosable: boolean;
|
|
87
|
+
isFocusInsidePane: () => boolean | undefined;
|
|
88
|
+
}, ev: Event) => any) | undefined;
|
|
89
|
+
onTabChange?: ((value: string) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
size: "small" | "medium";
|
|
92
|
+
type: TabsProps_2["type"];
|
|
93
|
+
inner: boolean;
|
|
94
|
+
options: TabsOptionItem[];
|
|
95
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
96
|
+
|
|
97
|
+
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
98
|
+
|
|
99
|
+
declare const __VLS_component_5: DefineComponent<PageLayoutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {
|
|
100
|
+
size: string | number;
|
|
101
|
+
bordered: boolean;
|
|
102
|
+
headerStyle: CSSProperties;
|
|
103
|
+
bodyStyle: CSSProperties;
|
|
104
|
+
collapse: boolean;
|
|
105
|
+
leftStyle: CSSProperties;
|
|
106
|
+
toolStyle: CSSProperties;
|
|
107
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
108
|
+
|
|
109
|
+
declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
110
|
+
"update:modelValue": (value: boolean) => any;
|
|
111
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
112
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
113
|
+
}>, {
|
|
114
|
+
footer: boolean | (() => VNode);
|
|
115
|
+
readonly closeOnClickModal: boolean;
|
|
116
|
+
readonly width: string | number;
|
|
117
|
+
readonly alignCenter: boolean;
|
|
118
|
+
readonly showClose: boolean;
|
|
119
|
+
okText: string;
|
|
120
|
+
cancelText: string;
|
|
121
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
122
|
+
|
|
123
|
+
declare type __VLS_Props = TabsProps;
|
|
124
|
+
|
|
125
|
+
declare type __VLS_Props_2 = InputSearchProps;
|
|
126
|
+
|
|
127
|
+
declare type __VLS_Props_3 = DialogProps;
|
|
128
|
+
|
|
129
|
+
declare type __VLS_PublicProps = {
|
|
130
|
+
modelValue?: TabsProps_2['modelValue'];
|
|
131
|
+
} & __VLS_Props;
|
|
132
|
+
|
|
133
|
+
declare type __VLS_PublicProps_2 = {
|
|
134
|
+
modelValue?: typeof model['value'];
|
|
135
|
+
} & __VLS_Props_2;
|
|
136
|
+
|
|
137
|
+
declare type __VLS_PublicProps_3 = {
|
|
138
|
+
'modelValue'?: typeof visible['value'];
|
|
139
|
+
} & __VLS_Props_3;
|
|
140
|
+
|
|
141
|
+
declare function __VLS_template(): {
|
|
142
|
+
attrs: Partial<{}>;
|
|
143
|
+
slots: {
|
|
144
|
+
default?(_: {}): any;
|
|
145
|
+
};
|
|
146
|
+
refs: {};
|
|
147
|
+
rootEl: any;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
declare function __VLS_template_2(): {
|
|
151
|
+
attrs: Partial<{}>;
|
|
152
|
+
slots: Readonly<{
|
|
153
|
+
default: () => void;
|
|
154
|
+
title: () => void;
|
|
155
|
+
extra: () => void;
|
|
156
|
+
footer: () => void;
|
|
157
|
+
}> & {
|
|
158
|
+
default: () => void;
|
|
159
|
+
title: () => void;
|
|
160
|
+
extra: () => void;
|
|
161
|
+
footer: () => void;
|
|
162
|
+
};
|
|
163
|
+
refs: {};
|
|
164
|
+
rootEl: HTMLDivElement;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
declare function __VLS_template_3(): {
|
|
168
|
+
attrs: Partial<{}>;
|
|
169
|
+
slots: Readonly<{
|
|
170
|
+
default: () => void;
|
|
171
|
+
extra: () => void;
|
|
172
|
+
label: (e: {
|
|
173
|
+
data: TabsOptionItem;
|
|
174
|
+
}) => void;
|
|
175
|
+
}> & {
|
|
176
|
+
default: () => void;
|
|
177
|
+
extra: () => void;
|
|
178
|
+
label: (e: {
|
|
179
|
+
data: TabsOptionItem;
|
|
180
|
+
}) => void;
|
|
181
|
+
};
|
|
182
|
+
refs: {};
|
|
183
|
+
rootEl: HTMLDivElement;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
declare function __VLS_template_4(): {
|
|
187
|
+
attrs: Partial<{}>;
|
|
188
|
+
slots: {
|
|
189
|
+
default?(_: {}): any;
|
|
190
|
+
};
|
|
191
|
+
refs: {};
|
|
192
|
+
rootEl: HTMLDivElement;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
declare function __VLS_template_5(): any;
|
|
196
|
+
|
|
197
|
+
declare function __VLS_template_6(): {
|
|
198
|
+
attrs: Partial<{}>;
|
|
199
|
+
slots: Readonly<{
|
|
200
|
+
title: () => VNode;
|
|
201
|
+
footer: () => VNode;
|
|
202
|
+
default: () => VNode;
|
|
203
|
+
}> & {
|
|
204
|
+
title: () => VNode;
|
|
205
|
+
footer: () => VNode;
|
|
206
|
+
default: () => VNode;
|
|
207
|
+
};
|
|
208
|
+
refs: {};
|
|
209
|
+
rootEl: any;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
213
|
+
|
|
214
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
215
|
+
|
|
216
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
217
|
+
|
|
218
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
219
|
+
|
|
220
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
221
|
+
|
|
222
|
+
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
223
|
+
|
|
224
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
225
|
+
new (): {
|
|
226
|
+
$slots: S;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
231
|
+
new (): {
|
|
232
|
+
$slots: S;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
237
|
+
new (): {
|
|
238
|
+
$slots: S;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
243
|
+
new (): {
|
|
244
|
+
$slots: S;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
249
|
+
new (): {
|
|
250
|
+
$slots: S;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
255
|
+
new (): {
|
|
256
|
+
$slots: S;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
declare interface ButtonProps extends Partial<Omit<ButtonProps_2, 'type'>> {
|
|
261
|
+
type?: 'add' | 'edit' | 'delete' | 'search' | 'reset' | 'upload' | 'download' | 'print' | '' | ButtonProps_2['type'];
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare interface CardProps {
|
|
265
|
+
title?: string;
|
|
266
|
+
extra?: string;
|
|
267
|
+
bordered?: boolean;
|
|
268
|
+
size?: 'small' | 'middle';
|
|
269
|
+
headerBordered?: boolean;
|
|
270
|
+
headerStyle?: CSSProperties;
|
|
271
|
+
bodyStyle?: CSSProperties;
|
|
272
|
+
inner?: boolean;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export declare type ColumnItemProps = El.InputProps & El.InputNumberProps & El.InputTagProps & El.ISelectProps & El.ISelectV2Props & El.TreeInstance['$props'] & El.CascaderProps & El.SliderProps & El.SwitchProps & El.RateProps & El.CheckboxGroupProps & El.CheckboxProps & El.RadioGroupProps & El.RadioProps & El.DatePickerProps & El.TimePickerDefaultProps & El.TimeSelectProps & El.ColorPickerProps & El.TransferProps & El.AutocompleteProps & El.UploadProps;
|
|
276
|
+
|
|
277
|
+
export declare interface Config {
|
|
278
|
+
prefix?: string;
|
|
279
|
+
clearable?: boolean;
|
|
280
|
+
dictRequest?: () => Promise<any>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare function createDialog(): {
|
|
284
|
+
_context: {};
|
|
285
|
+
create(options: DialogOptions): DialogReturnObject;
|
|
286
|
+
/** 对话框-打开 */
|
|
287
|
+
open(options: DialogOptions): DialogReturnObject;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* 创建选择弹窗
|
|
292
|
+
* @description component组件必须暴露一个getSelectedData方法
|
|
293
|
+
*/
|
|
294
|
+
export declare const createSelectDialog: <T, Q extends DefOption = DefOption>(params: CreateSelectDialogParams) => (options: DialogOption<T, Q>) => void;
|
|
295
|
+
|
|
296
|
+
declare interface CreateSelectDialogParams extends Omit<DialogOptions, 'content' | 'onOk' | 'onBeforeOk'> {
|
|
297
|
+
component: Component;
|
|
298
|
+
componentProps?: Record<string, any>;
|
|
299
|
+
tip?: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare const _default: {
|
|
303
|
+
install(app: App, options?: Config): void;
|
|
304
|
+
};
|
|
305
|
+
export default _default;
|
|
306
|
+
|
|
307
|
+
declare const _default_10: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
308
|
+
|
|
309
|
+
declare const _default_2: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
310
|
+
|
|
311
|
+
declare const _default_3: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
312
|
+
|
|
313
|
+
declare const _default_4: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
314
|
+
|
|
315
|
+
declare const _default_5: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
316
|
+
|
|
317
|
+
declare const _default_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
318
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
319
|
+
} & {
|
|
320
|
+
clear: () => any;
|
|
321
|
+
search: () => any;
|
|
322
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
323
|
+
onClear?: (() => any) | undefined;
|
|
324
|
+
onSearch?: (() => any) | undefined;
|
|
325
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
326
|
+
}>, {
|
|
327
|
+
disabled: boolean;
|
|
328
|
+
placeholder: string;
|
|
329
|
+
readonly: boolean;
|
|
330
|
+
disabledHideButton: boolean;
|
|
331
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @version 2.15.0
|
|
335
|
+
* @zh 响应式配置从 `2.18.0` 开始支持,具体配置 [ResponsiveValue](#responsivevalue)
|
|
336
|
+
* @en Responsive configuration has been supported since `2.18.0`, the specific configuration [ResponsiveValue](#responsivevalue)
|
|
337
|
+
*/
|
|
338
|
+
declare const _default_7: DefineComponent<ExtractPropTypes< {
|
|
339
|
+
/**
|
|
340
|
+
* @zh 每一行展示的列数
|
|
341
|
+
* @en Number of columns displayed in each row
|
|
342
|
+
*/
|
|
343
|
+
cols: {
|
|
344
|
+
type: PropType<number | ResponsiveValue>;
|
|
345
|
+
default: number;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* @zh 行与行之间的间距
|
|
349
|
+
* @en The space in row-to-row
|
|
350
|
+
*/
|
|
351
|
+
rowGap: {
|
|
352
|
+
type: PropType<number | ResponsiveValue>;
|
|
353
|
+
default: number;
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* @zh 列与列之间的间距
|
|
357
|
+
* @en The space in column-to-column
|
|
358
|
+
*/
|
|
359
|
+
colGap: {
|
|
360
|
+
type: PropType<number | ResponsiveValue>;
|
|
361
|
+
default: number;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* @zh 是否折叠
|
|
365
|
+
* @en Whether to collapsed
|
|
366
|
+
*/
|
|
367
|
+
collapsed: {
|
|
368
|
+
type: BooleanConstructor;
|
|
369
|
+
default: boolean;
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* @zh 折叠时显示的行数
|
|
373
|
+
* @en Number of rows displayed when collapsed
|
|
374
|
+
*/
|
|
375
|
+
collapsedRows: {
|
|
376
|
+
type: NumberConstructor;
|
|
377
|
+
default: number;
|
|
378
|
+
};
|
|
379
|
+
}>, {
|
|
380
|
+
classNames: ComputedRef<string[]>;
|
|
381
|
+
style: ComputedRef< {
|
|
382
|
+
gap: string;
|
|
383
|
+
'grid-template-columns': string;
|
|
384
|
+
}[]>;
|
|
385
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
386
|
+
/**
|
|
387
|
+
* @zh 每一行展示的列数
|
|
388
|
+
* @en Number of columns displayed in each row
|
|
389
|
+
*/
|
|
390
|
+
cols: {
|
|
391
|
+
type: PropType<number | ResponsiveValue>;
|
|
392
|
+
default: number;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* @zh 行与行之间的间距
|
|
396
|
+
* @en The space in row-to-row
|
|
397
|
+
*/
|
|
398
|
+
rowGap: {
|
|
399
|
+
type: PropType<number | ResponsiveValue>;
|
|
400
|
+
default: number;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* @zh 列与列之间的间距
|
|
404
|
+
* @en The space in column-to-column
|
|
405
|
+
*/
|
|
406
|
+
colGap: {
|
|
407
|
+
type: PropType<number | ResponsiveValue>;
|
|
408
|
+
default: number;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* @zh 是否折叠
|
|
412
|
+
* @en Whether to collapsed
|
|
413
|
+
*/
|
|
414
|
+
collapsed: {
|
|
415
|
+
type: BooleanConstructor;
|
|
416
|
+
default: boolean;
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* @zh 折叠时显示的行数
|
|
420
|
+
* @en Number of rows displayed when collapsed
|
|
421
|
+
*/
|
|
422
|
+
collapsedRows: {
|
|
423
|
+
type: NumberConstructor;
|
|
424
|
+
default: number;
|
|
425
|
+
};
|
|
426
|
+
}>> & Readonly<{}>, {
|
|
427
|
+
rowGap: number | ResponsiveValue;
|
|
428
|
+
cols: number | ResponsiveValue;
|
|
429
|
+
collapsed: boolean;
|
|
430
|
+
collapsedRows: number;
|
|
431
|
+
colGap: number | ResponsiveValue;
|
|
432
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @version 2.15.0
|
|
436
|
+
* @zh 响应式配置从 `2.18.0` 开始支持,具体配置 [ResponsiveValue](#responsivevalue)
|
|
437
|
+
* @en Responsive configuration has been supported since `2.18.0`, the specific configuration [ResponsiveValue](#responsivevalue)
|
|
438
|
+
*/
|
|
439
|
+
declare const _default_8: DefineComponent<ExtractPropTypes< {
|
|
440
|
+
/**
|
|
441
|
+
* @zh 跨越的格数
|
|
442
|
+
* @en Number of grids spanned
|
|
443
|
+
*/
|
|
444
|
+
span: {
|
|
445
|
+
type: PropType<number | ResponsiveValue>;
|
|
446
|
+
default: number;
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* @zh 左侧的间隔格数
|
|
450
|
+
* @en Number of grids on the left
|
|
451
|
+
*/
|
|
452
|
+
offset: {
|
|
453
|
+
type: PropType<number | ResponsiveValue>;
|
|
454
|
+
default: number;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* @zh 是否是后缀元素
|
|
458
|
+
* @en Is it a suffix element
|
|
459
|
+
*/
|
|
460
|
+
suffix: {
|
|
461
|
+
type: BooleanConstructor;
|
|
462
|
+
default: boolean;
|
|
463
|
+
};
|
|
464
|
+
}>, {
|
|
465
|
+
classNames: ComputedRef<string[]>;
|
|
466
|
+
style: ComputedRef<({
|
|
467
|
+
'margin-left': string;
|
|
468
|
+
} | {
|
|
469
|
+
'margin-left'?: undefined;
|
|
470
|
+
} | {
|
|
471
|
+
'grid-column': string;
|
|
472
|
+
display?: undefined;
|
|
473
|
+
} | {
|
|
474
|
+
display: string;
|
|
475
|
+
'grid-column'?: undefined;
|
|
476
|
+
})[]>;
|
|
477
|
+
domRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
478
|
+
overflow: ComputedRef<boolean>;
|
|
479
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
480
|
+
/**
|
|
481
|
+
* @zh 跨越的格数
|
|
482
|
+
* @en Number of grids spanned
|
|
483
|
+
*/
|
|
484
|
+
span: {
|
|
485
|
+
type: PropType<number | ResponsiveValue>;
|
|
486
|
+
default: number;
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* @zh 左侧的间隔格数
|
|
490
|
+
* @en Number of grids on the left
|
|
491
|
+
*/
|
|
492
|
+
offset: {
|
|
493
|
+
type: PropType<number | ResponsiveValue>;
|
|
494
|
+
default: number;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* @zh 是否是后缀元素
|
|
498
|
+
* @en Is it a suffix element
|
|
499
|
+
*/
|
|
500
|
+
suffix: {
|
|
501
|
+
type: BooleanConstructor;
|
|
502
|
+
default: boolean;
|
|
503
|
+
};
|
|
504
|
+
}>> & Readonly<{}>, {
|
|
505
|
+
span: number | ResponsiveValue;
|
|
506
|
+
offset: number | ResponsiveValue;
|
|
507
|
+
suffix: boolean;
|
|
508
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
509
|
+
|
|
510
|
+
declare const _default_9: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
511
|
+
|
|
512
|
+
declare interface DefOption {
|
|
513
|
+
queryParams: Record<string, any>;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export declare const Dialog: {
|
|
517
|
+
_context: {};
|
|
518
|
+
create(options: DialogOptions): DialogReturnObject;
|
|
519
|
+
/** 对话框-打开 */
|
|
520
|
+
open(options: DialogOptions): DialogReturnObject;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export declare type DialogInstance = InstanceType<typeof _default_10>;
|
|
524
|
+
|
|
525
|
+
declare type DialogOption<T, Q extends DefOption = DefOption> = {
|
|
526
|
+
title?: string;
|
|
527
|
+
multiple?: boolean;
|
|
528
|
+
queryParams?: Q['queryParams'];
|
|
529
|
+
onOk?: (data: T) => void;
|
|
530
|
+
onBeforeOk?: (data: T) => Promise<boolean>;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
export declare type DialogOptions = Partial<DialogInstance['$props']>;
|
|
534
|
+
|
|
535
|
+
export declare interface DialogProps extends Partial<DialogProps_2> {
|
|
536
|
+
content?: string | (() => VNode);
|
|
537
|
+
footer?: boolean | (() => VNode);
|
|
538
|
+
okText?: string;
|
|
539
|
+
cancelText?: string;
|
|
540
|
+
okButtonProps?: Partial<ButtonProps_2>;
|
|
541
|
+
cancelButtonProps?: Partial<ButtonProps_2>;
|
|
542
|
+
style?: CSSProperties;
|
|
543
|
+
simple?: boolean;
|
|
544
|
+
onOk?: () => void;
|
|
545
|
+
onBeforeOk?: () => Promise<boolean>;
|
|
546
|
+
onCancel?: () => void;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export declare interface DialogReturnObject {
|
|
550
|
+
close: () => void;
|
|
551
|
+
update: (newProps?: Record<string, any>) => void;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export declare interface EditTableColumnItem {
|
|
555
|
+
type?: EditTableColumnItemType;
|
|
556
|
+
title: string;
|
|
557
|
+
dataIndex: string;
|
|
558
|
+
width?: number | string;
|
|
559
|
+
required?: boolean;
|
|
560
|
+
rules?: El.FormItemRule[];
|
|
561
|
+
props?: ColumnItemProps;
|
|
562
|
+
columnProps?: El.TableColumnInstance['$props'];
|
|
563
|
+
formItemProps?: El.FormItemProps;
|
|
564
|
+
slotName?: string;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export declare type EditTableColumnItemType = 'input' | 'textarea' | 'input-number' | 'input-tag' | 'select' | 'select-v2' | 'tree-select' | 'cascader' | 'slider' | 'switch' | 'rate' | 'checkbox-group' | 'checkbox' | 'radio-group' | 'radio' | 'date-picker' | 'time-picker' | 'time-select' | 'color-picker' | 'transfer' | 'autocomplete' | 'upload' | 'slot' | 'cecw-input-search';
|
|
568
|
+
|
|
569
|
+
export declare type EditTableInstance = InstanceType<typeof default_3>;
|
|
570
|
+
|
|
571
|
+
export declare interface EditTableProps {
|
|
572
|
+
rowKey?: string;
|
|
573
|
+
data?: any[];
|
|
574
|
+
columns?: EditTableColumnItem[];
|
|
575
|
+
cellDisabled?: any;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export declare interface FormColumnItem<F = any> {
|
|
579
|
+
type: FormColumnType;
|
|
580
|
+
label?: string;
|
|
581
|
+
labelRender?: () => VNode;
|
|
582
|
+
field: string;
|
|
583
|
+
fieldName?: string;
|
|
584
|
+
span?: number;
|
|
585
|
+
props?: FormColumnProps & {
|
|
586
|
+
options?: El.RadioProps & El.CheckboxProps & El.SelectProps;
|
|
587
|
+
};
|
|
588
|
+
formItemProps?: El.FormItemProps;
|
|
589
|
+
gridItemProps?: any;
|
|
590
|
+
required?: boolean;
|
|
591
|
+
rules?: El.FormItemRule[];
|
|
592
|
+
hide?: FormColumnItemHide<F>;
|
|
593
|
+
tip?: string;
|
|
594
|
+
dictCode?: string;
|
|
595
|
+
slotName?: string;
|
|
596
|
+
slots?: FormColumnSlots;
|
|
597
|
+
extra?: string | (() => VNode);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export declare type FormColumnItemHide<F> = boolean | ((form: F) => boolean);
|
|
601
|
+
|
|
602
|
+
export declare type FormColumnProps = El.InputProps & El.InputNumberProps & El.InputTagProps & El.SelectProps & El.SelectV2Props & El.TreeInstance['$props'] & El.CascaderProps & El.SliderProps & El.SwitchProps & El.RateProps & El.CheckboxGroupProps & El.CheckboxProps & El.RadioGroupProps & El.RadioProps & El.DatePickerProps & El.TimePickerDefaultProps & El.TimeSelectProps & El.ColorPickerProps & El.TransferProps & El.AutocompleteProps & El.UploadProps & InputSearchInstance['$props'];
|
|
603
|
+
|
|
604
|
+
export declare type FormColumnSlots = El.InputInstance['$slots'] & El.InputNumberInstance['$slots'] & El.InputTagInstance['$slots'] & El.AutocompleteInstance['$slots'] & El.CascaderInstance['$slots'] & El.DatePickerInstance['$slots'];
|
|
605
|
+
|
|
606
|
+
export declare type FormColumnType = 'input' | 'textarea' | 'input-number' | 'input-tag' | 'input-search' | 'select' | 'select-v2' | 'tree-select' | 'cascader' | 'slider' | 'switch' | 'rate' | 'checkbox-group' | 'checkbox' | 'radio-group' | 'radio' | 'date-picker' | 'time-picker' | 'time-select' | 'color-picker' | 'transfer' | 'autocomplete' | 'upload' | 'title' | 'slot';
|
|
607
|
+
|
|
608
|
+
export declare type FormInstance = InstanceType<typeof default_2>;
|
|
609
|
+
|
|
610
|
+
export declare interface FormProps extends Partial<FormProps_2> {
|
|
611
|
+
modelValue: any;
|
|
612
|
+
columns?: FormColumnItem[];
|
|
613
|
+
fc?: Record<string, {
|
|
614
|
+
edit: boolean;
|
|
615
|
+
hidden?: boolean;
|
|
616
|
+
required?: boolean;
|
|
617
|
+
}>;
|
|
618
|
+
gridProps?: GridProps;
|
|
619
|
+
gridItemProps?: GridItemProps;
|
|
620
|
+
search?: boolean;
|
|
621
|
+
searchText?: string;
|
|
622
|
+
hideFoldBtn?: boolean;
|
|
623
|
+
defaultCollapsed?: boolean | undefined;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export declare const GiButton: typeof _default_2;
|
|
627
|
+
|
|
628
|
+
export declare const GiCard: typeof _default_3;
|
|
629
|
+
|
|
630
|
+
export declare const GiDialog: typeof _default_10;
|
|
631
|
+
|
|
632
|
+
export declare const GiEditTable: typeof default_3;
|
|
633
|
+
|
|
634
|
+
export declare const GiForm: typeof default_2;
|
|
635
|
+
|
|
636
|
+
export declare const GiGrid: typeof _default_7;
|
|
637
|
+
|
|
638
|
+
export declare const GiGridItem: typeof _default_8;
|
|
639
|
+
|
|
640
|
+
export declare const GiInputGroup: typeof _default_5;
|
|
641
|
+
|
|
642
|
+
export declare const GiInputSearch: typeof _default_6;
|
|
643
|
+
|
|
644
|
+
export declare const GiPageLayout: typeof _default_9;
|
|
645
|
+
|
|
646
|
+
export declare const GiTable: typeof default_4;
|
|
647
|
+
|
|
648
|
+
export declare const GiTabs: typeof _default_4;
|
|
649
|
+
|
|
650
|
+
declare interface GridItemProps {
|
|
651
|
+
span?: number | ResponsiveValue;
|
|
652
|
+
offset?: number | ResponsiveValue;
|
|
653
|
+
suffix?: boolean;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare interface GridProps {
|
|
657
|
+
cols?: number | ResponsiveValue;
|
|
658
|
+
rowGap?: number | ResponsiveValue;
|
|
659
|
+
colGap?: number | ResponsiveValue;
|
|
660
|
+
collapsed?: boolean;
|
|
661
|
+
collapsedRows?: number;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
declare type InputSearchInstance = InstanceType<typeof _default_6>;
|
|
665
|
+
|
|
666
|
+
declare interface InputSearchProps {
|
|
667
|
+
disabled?: boolean;
|
|
668
|
+
readonly?: boolean;
|
|
669
|
+
placeholder?: string;
|
|
670
|
+
disabledHideButton?: boolean;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare const model: ModelRef<string | undefined, string, string | undefined, string | undefined>;
|
|
674
|
+
|
|
675
|
+
declare interface PageLayoutProps {
|
|
676
|
+
size?: SplitterPanelProps['size'];
|
|
677
|
+
bordered?: boolean;
|
|
678
|
+
collapse?: boolean;
|
|
679
|
+
leftStyle?: CSSProperties;
|
|
680
|
+
headerStyle?: CSSProperties;
|
|
681
|
+
toolStyle?: CSSProperties;
|
|
682
|
+
bodyStyle?: CSSProperties;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare interface ResponsiveValue {
|
|
686
|
+
/**
|
|
687
|
+
* @zh >= 1600px 响应式配置
|
|
688
|
+
* @en >= 1600px responsive configuration
|
|
689
|
+
*/
|
|
690
|
+
xxl?: number;
|
|
691
|
+
/**
|
|
692
|
+
* @zh >= 1200px 响应式配置
|
|
693
|
+
* @en >= 1200px responsive configuration
|
|
694
|
+
*/
|
|
695
|
+
xl?: number;
|
|
696
|
+
/**
|
|
697
|
+
* @zh >= 992px 响应式配置
|
|
698
|
+
* @en >= 992px responsive configuration
|
|
699
|
+
*/
|
|
700
|
+
lg?: number;
|
|
701
|
+
/**
|
|
702
|
+
* @zh >= 768px 响应式配置
|
|
703
|
+
* @en >= 768px responsive configuration
|
|
704
|
+
*/
|
|
705
|
+
md?: number;
|
|
706
|
+
/**
|
|
707
|
+
* @zh >= 576px 响应式配置
|
|
708
|
+
* @en >= 576px responsive configuration
|
|
709
|
+
*/
|
|
710
|
+
sm?: number;
|
|
711
|
+
/**
|
|
712
|
+
* @zh < 576px 响应式配置
|
|
713
|
+
* @en <576px responsive configuration
|
|
714
|
+
*/
|
|
715
|
+
xs?: number;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export declare interface TableColumnItem extends Omit<TableColumnInstance['$props'], never> {
|
|
719
|
+
slotName?: string;
|
|
720
|
+
children?: TableColumnItem[];
|
|
721
|
+
render?: (scope: TableColumnCtx<any>) => VNode | VNode[] | string;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export declare type TableInstance = InstanceType<typeof default_4>;
|
|
725
|
+
|
|
726
|
+
export declare interface TableProps extends ExtractPropTypes<TableProps_2<Record<string | number | symbol, any>>> {
|
|
727
|
+
columns?: TableColumnItem[];
|
|
728
|
+
pagination?: Partial<PaginationProps>;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
declare type TabsOptionItem = {
|
|
732
|
+
label: string;
|
|
733
|
+
name: string;
|
|
734
|
+
disabled?: boolean;
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
declare interface TabsProps extends Partial<Pick<TabsProps_2, 'type' | 'stretch'>> {
|
|
738
|
+
type?: TabsProps_2['type'];
|
|
739
|
+
options?: TabsOptionItem[];
|
|
740
|
+
size?: 'small' | 'medium';
|
|
741
|
+
inner?: boolean;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export declare function useBemClass(): {
|
|
745
|
+
b: (name?: string) => string;
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
declare const visible: ModelRef<boolean, string, boolean, boolean>;
|
|
749
|
+
|
|
1
750
|
export { }
|