@wlydfe/pro-ui 0.2.7 → 0.2.8
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/README.md +119 -119
- package/es/components/check-card/index.d.ts +4 -4
- package/es/components/check-card/src/index.vue.d.ts +1 -1
- package/es/components/check-card-group/index.d.ts +4 -4
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +11 -11
- package/es/components/date-picker/src/index.vue.d.ts +11 -11
- package/es/components/descriptions/index.d.ts +19 -19
- package/es/components/descriptions/src/index.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +30 -30
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +6 -6
- package/es/components/dialog-form/src/index.vue.d.ts +3 -3
- package/es/components/display-item/index.d.ts +25 -25
- package/es/components/display-item/src/index.vue.d.ts +7 -7
- package/es/components/display-item/src/index.vue2.mjs +3 -0
- package/es/components/drawer-form/index.d.ts +36 -36
- package/es/components/drawer-form/src/index.vue.d.ts +5 -5
- package/es/components/form/index.d.ts +88 -88
- package/es/components/form/src/form-content.vue.d.ts +9 -9
- package/es/components/form/src/index.vue.d.ts +11 -11
- package/es/components/form-item/index.d.ts +84 -84
- package/es/components/form-item/src/index.vue.d.ts +16 -12
- package/es/components/input-tag/index.d.ts +6 -6
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +988 -988
- package/es/components/page/src/index.vue.d.ts +419 -387
- package/es/components/page/src/index.vue2.mjs +10 -3
- package/es/components/pagination/index.d.ts +27 -27
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/popover/index.d.ts +49 -49
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/src/index.vue.d.ts +2 -2
- package/es/components/render/index.d.ts +14 -14
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +266 -266
- package/es/components/search/src/index.vue.d.ts +77 -77
- package/es/components/sidebar/index.d.ts +16 -16
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +164 -164
- package/es/components/table/src/index.vue.d.ts +13 -13
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
- package/es/components/table/src/table-column-index.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +25 -43
- package/es/components/table/src/table-title-bar.vue.d.ts +1 -1
- package/es/index.css +13 -13
- package/global.d.ts +29 -29
- package/index.js +13 -3
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +13 -3
- package/lib/components/check-card/index.d.ts +4 -4
- package/lib/components/check-card/src/index.vue.d.ts +1 -1
- package/lib/components/check-card-group/index.d.ts +4 -4
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +11 -11
- package/lib/components/date-picker/src/index.vue.d.ts +11 -11
- package/lib/components/descriptions/index.d.ts +19 -19
- package/lib/components/descriptions/src/index.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +30 -30
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +6 -6
- package/lib/components/dialog-form/src/index.vue.d.ts +3 -3
- package/lib/components/display-item/index.d.ts +25 -25
- package/lib/components/display-item/src/index.vue.d.ts +7 -7
- package/lib/components/display-item/src/index.vue2.js +3 -0
- package/lib/components/drawer-form/index.d.ts +36 -36
- package/lib/components/drawer-form/src/index.vue.d.ts +5 -5
- package/lib/components/form/index.d.ts +88 -88
- package/lib/components/form/src/form-content.vue.d.ts +9 -9
- package/lib/components/form/src/index.vue.d.ts +11 -11
- package/lib/components/form-item/index.d.ts +84 -84
- package/lib/components/form-item/src/index.vue.d.ts +16 -12
- package/lib/components/input-tag/index.d.ts +6 -6
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +988 -988
- package/lib/components/page/src/index.vue.d.ts +419 -387
- package/lib/components/page/src/index.vue2.js +9 -2
- package/lib/components/pagination/index.d.ts +27 -27
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/popover/index.d.ts +49 -49
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/src/index.vue.d.ts +2 -2
- package/lib/components/render/index.d.ts +14 -14
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +266 -266
- package/lib/components/search/src/index.vue.d.ts +77 -77
- package/lib/components/sidebar/index.d.ts +16 -16
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +164 -164
- package/lib/components/table/src/index.vue.d.ts +13 -13
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
- package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +25 -43
- package/lib/components/table/src/table-title-bar.vue.d.ts +1 -1
- package/lib/index.css +13 -13
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/src/breadcrumb.scss +9 -9
- package/theme-chalk/src/date-picker.scss +96 -96
- package/theme-chalk/src/descriptions.scss +41 -41
- package/theme-chalk/src/display-item.scss +82 -82
- package/theme-chalk/src/drawer-form.scss +16 -16
- package/theme-chalk/src/form.scss +34 -34
- package/theme-chalk/src/input-tag.scss +91 -91
- package/theme-chalk/src/layout.scss +36 -36
- package/theme-chalk/src/mixins/function.scss +73 -73
- package/theme-chalk/src/search.scss +49 -49
- package/theme-chalk/src/sidebar.scss +93 -93
- package/theme-chalk/src/table.scss +170 -170
- package/theme-chalk/src/var/index.scss +6 -6
|
@@ -6,7 +6,7 @@ import { LooseRequired } from '@vue/shared';
|
|
|
6
6
|
import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
|
|
7
7
|
import { PlusFormGroupRow, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/plus-pro-components';
|
|
8
8
|
import { DefineComponent, Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, CreateComponentPublicInstance, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Component, CSSProperties, ShallowRef, PublicProps } from 'vue';
|
|
9
|
-
import { CardProps,
|
|
9
|
+
import { CardProps, RowProps, ColProps, FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, TableColumnCtx, SummaryMethod, ColumnCls, ColumnStyle, CellCls, CellStyle, Sort, TreeNode, Translator, Table } from 'element-plus';
|
|
10
10
|
import { PlusPaginationProps } from '@wlydfe/pro-ui/es/components/pagination';
|
|
11
11
|
import { PlusTableProps, ActionBarProps, ColumnSetting, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow } from '@wlydfe/pro-ui/es/components/table';
|
|
12
12
|
import { PlusSearchProps } from '@wlydfe/pro-ui/es/components/search';
|
|
@@ -136,9 +136,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
136
136
|
labelPosition: "top" | "right" | "left";
|
|
137
137
|
inline: boolean;
|
|
138
138
|
showNumber: number;
|
|
139
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
140
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
141
139
|
defaultValues: FieldValues;
|
|
140
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
141
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
142
142
|
hasFooter: boolean;
|
|
143
143
|
hasReset: boolean;
|
|
144
144
|
resetText: string;
|
|
@@ -154,9 +154,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
154
154
|
readonly modelValue: FieldValues;
|
|
155
155
|
readonly inline: boolean;
|
|
156
156
|
readonly showNumber: number;
|
|
157
|
-
readonly colProps: Partial<Mutable< ColProps>>;
|
|
158
|
-
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
159
157
|
readonly defaultValues: FieldValues;
|
|
158
|
+
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
159
|
+
readonly colProps: Partial<Mutable< ColProps>>;
|
|
160
160
|
readonly hasFooter: boolean;
|
|
161
161
|
readonly hasReset: boolean;
|
|
162
162
|
readonly resetText: string;
|
|
@@ -168,8 +168,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
168
168
|
readonly searchLoading: boolean;
|
|
169
169
|
readonly needValidate: boolean;
|
|
170
170
|
readonly labelPosition?: "top" | "right" | "left" | undefined;
|
|
171
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
172
171
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
172
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
173
173
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
174
174
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
175
175
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
@@ -194,6 +194,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
194
194
|
type: PropType<number>;
|
|
195
195
|
default: number;
|
|
196
196
|
};
|
|
197
|
+
defaultValues: {
|
|
198
|
+
type: PropType<FieldValues>;
|
|
199
|
+
default: () => {};
|
|
200
|
+
};
|
|
201
|
+
rowProps: {
|
|
202
|
+
type: PropType<Partial<Mutable< RowProps>>>;
|
|
203
|
+
default: () => {
|
|
204
|
+
gutter: number;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
197
207
|
colProps: {
|
|
198
208
|
type: PropType<Partial<Mutable< ColProps>>>;
|
|
199
209
|
default: () => {
|
|
@@ -204,16 +214,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
204
214
|
xl: number;
|
|
205
215
|
};
|
|
206
216
|
};
|
|
207
|
-
rowProps: {
|
|
208
|
-
type: PropType<Partial<Mutable< RowProps>>>;
|
|
209
|
-
default: () => {
|
|
210
|
-
gutter: number;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
defaultValues: {
|
|
214
|
-
type: PropType<FieldValues>;
|
|
215
|
-
default: () => {};
|
|
216
|
-
};
|
|
217
217
|
hasFooter: {
|
|
218
218
|
type: PropType<boolean>;
|
|
219
219
|
default: boolean;
|
|
@@ -255,12 +255,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
255
255
|
default: boolean;
|
|
256
256
|
};
|
|
257
257
|
}>> & {
|
|
258
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
259
258
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
259
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
260
260
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
261
261
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
262
262
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
263
|
-
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "
|
|
263
|
+
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate">;
|
|
264
264
|
$attrs: {
|
|
265
265
|
[x: string]: unknown;
|
|
266
266
|
};
|
|
@@ -272,7 +272,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
272
272
|
}>;
|
|
273
273
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
274
274
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
275
|
-
$emit: ((event: "search", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "
|
|
275
|
+
$emit: ((event: "search", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "collapse", isShowUnfold: boolean) => void);
|
|
276
276
|
$el: any;
|
|
277
277
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
278
278
|
columns: {
|
|
@@ -295,6 +295,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
295
295
|
type: PropType<number>;
|
|
296
296
|
default: number;
|
|
297
297
|
};
|
|
298
|
+
defaultValues: {
|
|
299
|
+
type: PropType<FieldValues>;
|
|
300
|
+
default: () => {};
|
|
301
|
+
};
|
|
302
|
+
rowProps: {
|
|
303
|
+
type: PropType<Partial<Mutable< RowProps>>>;
|
|
304
|
+
default: () => {
|
|
305
|
+
gutter: number;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
298
308
|
colProps: {
|
|
299
309
|
type: PropType<Partial<Mutable< ColProps>>>;
|
|
300
310
|
default: () => {
|
|
@@ -305,16 +315,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
305
315
|
xl: number;
|
|
306
316
|
};
|
|
307
317
|
};
|
|
308
|
-
rowProps: {
|
|
309
|
-
type: PropType<Partial<Mutable< RowProps>>>;
|
|
310
|
-
default: () => {
|
|
311
|
-
gutter: number;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
defaultValues: {
|
|
315
|
-
type: PropType<FieldValues>;
|
|
316
|
-
default: () => {};
|
|
317
|
-
};
|
|
318
318
|
hasFooter: {
|
|
319
319
|
type: PropType<boolean>;
|
|
320
320
|
default: boolean;
|
|
@@ -356,8 +356,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
356
356
|
default: boolean;
|
|
357
357
|
};
|
|
358
358
|
}>> & {
|
|
359
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
360
359
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
360
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
361
361
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
362
362
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
363
363
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
@@ -374,12 +374,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
374
374
|
labelWidth: string | number;
|
|
375
375
|
labelSuffix: string;
|
|
376
376
|
hasLabel: boolean;
|
|
377
|
-
clearable: boolean;
|
|
378
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
379
|
-
collapseDuration: number;
|
|
380
|
-
collapseTransition: boolean;
|
|
381
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
382
377
|
defaultValues: FieldValues;
|
|
378
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
379
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
383
380
|
hasErrorTip: boolean;
|
|
384
381
|
hasFooter: boolean;
|
|
385
382
|
hasReset: boolean;
|
|
@@ -389,6 +386,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
389
386
|
footerAlign: "right" | "left" | "center";
|
|
390
387
|
cardProps: Partial<Mutable<CardProps>>;
|
|
391
388
|
prevent: boolean;
|
|
389
|
+
collapseDuration: number;
|
|
390
|
+
collapseTransition: boolean;
|
|
391
|
+
clearable: boolean;
|
|
392
392
|
}> & Omit<{
|
|
393
393
|
readonly columns: PlusColumn[];
|
|
394
394
|
readonly group: false | PlusFormGroupRow[];
|
|
@@ -398,10 +398,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
398
398
|
readonly labelWidth: string | number;
|
|
399
399
|
readonly labelSuffix: string;
|
|
400
400
|
readonly hasLabel: boolean;
|
|
401
|
-
readonly clearable: boolean;
|
|
402
|
-
readonly colProps: Partial<Mutable< ColProps>>;
|
|
403
|
-
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
404
401
|
readonly defaultValues: FieldValues;
|
|
402
|
+
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
403
|
+
readonly colProps: Partial<Mutable< ColProps>>;
|
|
405
404
|
readonly hasErrorTip: boolean;
|
|
406
405
|
readonly hasFooter: boolean;
|
|
407
406
|
readonly hasReset: boolean;
|
|
@@ -411,10 +410,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
411
410
|
readonly footerAlign: "right" | "left" | "center";
|
|
412
411
|
readonly cardProps: Partial<Mutable<CardProps>>;
|
|
413
412
|
readonly prevent: boolean;
|
|
413
|
+
readonly clearable: boolean;
|
|
414
414
|
readonly collapseDuration?: number | undefined;
|
|
415
415
|
readonly collapseTransition?: boolean | undefined;
|
|
416
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
417
416
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
417
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
418
418
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
419
419
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
420
420
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -452,28 +452,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
452
452
|
type: PropType<boolean>;
|
|
453
453
|
default: boolean;
|
|
454
454
|
};
|
|
455
|
-
|
|
456
|
-
type: PropType<
|
|
457
|
-
default: boolean;
|
|
458
|
-
};
|
|
459
|
-
colProps: {
|
|
460
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
455
|
+
defaultValues: {
|
|
456
|
+
type: PropType<FieldValues>;
|
|
461
457
|
default: () => {};
|
|
462
458
|
};
|
|
463
|
-
collapseDuration: {
|
|
464
|
-
type: PropType<number>;
|
|
465
|
-
default: undefined;
|
|
466
|
-
};
|
|
467
|
-
collapseTransition: {
|
|
468
|
-
type: PropType<boolean>;
|
|
469
|
-
default: undefined;
|
|
470
|
-
};
|
|
471
459
|
rowProps: {
|
|
472
460
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
473
461
|
default: () => {};
|
|
474
462
|
};
|
|
475
|
-
|
|
476
|
-
type: PropType<
|
|
463
|
+
colProps: {
|
|
464
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
477
465
|
default: () => {};
|
|
478
466
|
};
|
|
479
467
|
hasErrorTip: {
|
|
@@ -512,14 +500,26 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
512
500
|
type: PropType<boolean>;
|
|
513
501
|
default: boolean;
|
|
514
502
|
};
|
|
503
|
+
collapseDuration: {
|
|
504
|
+
type: PropType<number>;
|
|
505
|
+
default: undefined;
|
|
506
|
+
};
|
|
507
|
+
collapseTransition: {
|
|
508
|
+
type: PropType<boolean>;
|
|
509
|
+
default: undefined;
|
|
510
|
+
};
|
|
511
|
+
clearable: {
|
|
512
|
+
type: PropType<boolean>;
|
|
513
|
+
default: boolean;
|
|
514
|
+
};
|
|
515
515
|
}>> & {
|
|
516
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
517
516
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
517
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
518
518
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
519
519
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
520
520
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
521
521
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
522
|
-
}, "columns" | "group" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "hasLabel" | "
|
|
522
|
+
}, "columns" | "group" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "hasLabel" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "collapseDuration" | "collapseTransition" | "clearable">;
|
|
523
523
|
$attrs: {
|
|
524
524
|
[x: string]: unknown;
|
|
525
525
|
};
|
|
@@ -531,7 +531,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
531
531
|
}>;
|
|
532
532
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
533
533
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
534
|
-
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "
|
|
534
|
+
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
|
|
535
535
|
$el: any;
|
|
536
536
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
537
537
|
columns: {
|
|
@@ -566,28 +566,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
566
566
|
type: PropType<boolean>;
|
|
567
567
|
default: boolean;
|
|
568
568
|
};
|
|
569
|
-
|
|
570
|
-
type: PropType<
|
|
571
|
-
default: boolean;
|
|
572
|
-
};
|
|
573
|
-
colProps: {
|
|
574
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
569
|
+
defaultValues: {
|
|
570
|
+
type: PropType<FieldValues>;
|
|
575
571
|
default: () => {};
|
|
576
572
|
};
|
|
577
|
-
collapseDuration: {
|
|
578
|
-
type: PropType<number>;
|
|
579
|
-
default: undefined;
|
|
580
|
-
};
|
|
581
|
-
collapseTransition: {
|
|
582
|
-
type: PropType<boolean>;
|
|
583
|
-
default: undefined;
|
|
584
|
-
};
|
|
585
573
|
rowProps: {
|
|
586
574
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
587
575
|
default: () => {};
|
|
588
576
|
};
|
|
589
|
-
|
|
590
|
-
type: PropType<
|
|
577
|
+
colProps: {
|
|
578
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
591
579
|
default: () => {};
|
|
592
580
|
};
|
|
593
581
|
hasErrorTip: {
|
|
@@ -626,9 +614,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
626
614
|
type: PropType<boolean>;
|
|
627
615
|
default: boolean;
|
|
628
616
|
};
|
|
617
|
+
collapseDuration: {
|
|
618
|
+
type: PropType<number>;
|
|
619
|
+
default: undefined;
|
|
620
|
+
};
|
|
621
|
+
collapseTransition: {
|
|
622
|
+
type: PropType<boolean>;
|
|
623
|
+
default: undefined;
|
|
624
|
+
};
|
|
625
|
+
clearable: {
|
|
626
|
+
type: PropType<boolean>;
|
|
627
|
+
default: boolean;
|
|
628
|
+
};
|
|
629
629
|
}>> & {
|
|
630
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
631
630
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
631
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
632
632
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
633
633
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
634
634
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -640,7 +640,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
640
640
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
641
641
|
readonly required: false;
|
|
642
642
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
643
|
-
__epPropKey: true;
|
|
643
|
+
__epPropKey: true; /**
|
|
644
|
+
* TODO: 将会在v0.2.0中移除
|
|
645
|
+
*/
|
|
644
646
|
};
|
|
645
647
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
646
648
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -676,6 +678,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
676
678
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
677
679
|
readonly required: false;
|
|
678
680
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
681
|
+
/**
|
|
682
|
+
* 数据加载失败时触发
|
|
683
|
+
*/
|
|
679
684
|
__epPropKey: true;
|
|
680
685
|
};
|
|
681
686
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -732,10 +737,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
732
737
|
getField: (prop: string) => FormItemContext | undefined;
|
|
733
738
|
addField: (field: FormItemContext) => void;
|
|
734
739
|
removeField: (field: FormItemContext) => void;
|
|
735
|
-
/**
|
|
736
|
-
* 设置搜索的值
|
|
737
|
-
* @version v0.1.17
|
|
738
|
-
*/
|
|
739
740
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
740
741
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
741
742
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -745,16 +746,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
745
746
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
746
747
|
scrollToField: (prop: FormItemProp) => void;
|
|
747
748
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
748
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
749
|
-
* TODO: 将会在v0.2.0中移除
|
|
750
|
-
*/
|
|
749
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
751
750
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
752
751
|
readonly model: ObjectConstructor;
|
|
753
752
|
readonly rules: {
|
|
754
753
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
755
754
|
readonly required: false;
|
|
756
755
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
757
|
-
__epPropKey: true;
|
|
756
|
+
__epPropKey: true; /**
|
|
757
|
+
* TODO: 将会在v0.2.0中移除
|
|
758
|
+
*/
|
|
758
759
|
};
|
|
759
760
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
760
761
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -808,7 +809,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
808
809
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
809
810
|
readonly required: false;
|
|
810
811
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
811
|
-
__epPropKey: true;
|
|
812
|
+
__epPropKey: true; /**
|
|
813
|
+
* TODO: 将会在v0.2.0中移除
|
|
814
|
+
*/
|
|
812
815
|
};
|
|
813
816
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
814
817
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -844,6 +847,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
844
847
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
845
848
|
readonly required: false;
|
|
846
849
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* 数据加载失败时触发
|
|
852
|
+
*/
|
|
847
853
|
__epPropKey: true;
|
|
848
854
|
};
|
|
849
855
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -900,10 +906,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
900
906
|
getField: (prop: string) => FormItemContext | undefined;
|
|
901
907
|
addField: (field: FormItemContext) => void;
|
|
902
908
|
removeField: (field: FormItemContext) => void;
|
|
903
|
-
/**
|
|
904
|
-
* 设置搜索的值
|
|
905
|
-
* @version v0.1.17
|
|
906
|
-
*/
|
|
907
909
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
908
910
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
909
911
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -944,12 +946,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
944
946
|
labelWidth: string | number;
|
|
945
947
|
labelSuffix: string;
|
|
946
948
|
hasLabel: boolean;
|
|
947
|
-
clearable: boolean;
|
|
948
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
949
|
-
collapseDuration: number;
|
|
950
|
-
collapseTransition: boolean;
|
|
951
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
952
949
|
defaultValues: FieldValues;
|
|
950
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
951
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
953
952
|
hasErrorTip: boolean;
|
|
954
953
|
hasFooter: boolean;
|
|
955
954
|
hasReset: boolean;
|
|
@@ -959,6 +958,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
959
958
|
footerAlign: "right" | "left" | "center";
|
|
960
959
|
cardProps: Partial<Mutable<CardProps>>;
|
|
961
960
|
prevent: boolean;
|
|
961
|
+
collapseDuration: number;
|
|
962
|
+
collapseTransition: boolean;
|
|
963
|
+
clearable: boolean;
|
|
962
964
|
}, {}, string, {}> & {
|
|
963
965
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
964
966
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1012,28 +1014,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1012
1014
|
type: PropType<boolean>;
|
|
1013
1015
|
default: boolean;
|
|
1014
1016
|
};
|
|
1015
|
-
|
|
1016
|
-
type: PropType<
|
|
1017
|
-
default: boolean;
|
|
1018
|
-
};
|
|
1019
|
-
colProps: {
|
|
1020
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1017
|
+
defaultValues: {
|
|
1018
|
+
type: PropType<FieldValues>;
|
|
1021
1019
|
default: () => {};
|
|
1022
1020
|
};
|
|
1023
|
-
collapseDuration: {
|
|
1024
|
-
type: PropType<number>;
|
|
1025
|
-
default: undefined;
|
|
1026
|
-
};
|
|
1027
|
-
collapseTransition: {
|
|
1028
|
-
type: PropType<boolean>;
|
|
1029
|
-
default: undefined;
|
|
1030
|
-
};
|
|
1031
1021
|
rowProps: {
|
|
1032
1022
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
1033
1023
|
default: () => {};
|
|
1034
1024
|
};
|
|
1035
|
-
|
|
1036
|
-
type: PropType<
|
|
1025
|
+
colProps: {
|
|
1026
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1037
1027
|
default: () => {};
|
|
1038
1028
|
};
|
|
1039
1029
|
hasErrorTip: {
|
|
@@ -1072,9 +1062,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1072
1062
|
type: PropType<boolean>;
|
|
1073
1063
|
default: boolean;
|
|
1074
1064
|
};
|
|
1065
|
+
collapseDuration: {
|
|
1066
|
+
type: PropType<number>;
|
|
1067
|
+
default: undefined;
|
|
1068
|
+
};
|
|
1069
|
+
collapseTransition: {
|
|
1070
|
+
type: PropType<boolean>;
|
|
1071
|
+
default: undefined;
|
|
1072
|
+
};
|
|
1073
|
+
clearable: {
|
|
1074
|
+
type: PropType<boolean>;
|
|
1075
|
+
default: boolean;
|
|
1076
|
+
};
|
|
1075
1077
|
}>> & {
|
|
1076
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1077
1078
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1079
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1078
1080
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1079
1081
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
1080
1082
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -1086,7 +1088,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1086
1088
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1087
1089
|
readonly required: false;
|
|
1088
1090
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1089
|
-
__epPropKey: true;
|
|
1091
|
+
__epPropKey: true; /**
|
|
1092
|
+
* TODO: 将会在v0.2.0中移除
|
|
1093
|
+
*/
|
|
1090
1094
|
};
|
|
1091
1095
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
1092
1096
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -1122,6 +1126,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1122
1126
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1123
1127
|
readonly required: false;
|
|
1124
1128
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1129
|
+
/**
|
|
1130
|
+
* 数据加载失败时触发
|
|
1131
|
+
*/
|
|
1125
1132
|
__epPropKey: true;
|
|
1126
1133
|
};
|
|
1127
1134
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -1178,10 +1185,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1178
1185
|
getField: (prop: string) => FormItemContext | undefined;
|
|
1179
1186
|
addField: (field: FormItemContext) => void;
|
|
1180
1187
|
removeField: (field: FormItemContext) => void;
|
|
1181
|
-
/**
|
|
1182
|
-
* 设置搜索的值
|
|
1183
|
-
* @version v0.1.17
|
|
1184
|
-
*/
|
|
1185
1188
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1186
1189
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1187
1190
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -1191,16 +1194,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1191
1194
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
1192
1195
|
scrollToField: (prop: FormItemProp) => void;
|
|
1193
1196
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1194
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
1195
|
-
* TODO: 将会在v0.2.0中移除
|
|
1196
|
-
*/
|
|
1197
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
1197
1198
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
1198
1199
|
readonly model: ObjectConstructor;
|
|
1199
1200
|
readonly rules: {
|
|
1200
1201
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1201
1202
|
readonly required: false;
|
|
1202
1203
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1203
|
-
__epPropKey: true;
|
|
1204
|
+
__epPropKey: true; /**
|
|
1205
|
+
* TODO: 将会在v0.2.0中移除
|
|
1206
|
+
*/
|
|
1204
1207
|
};
|
|
1205
1208
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
1206
1209
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -1254,7 +1257,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1254
1257
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1255
1258
|
readonly required: false;
|
|
1256
1259
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1257
|
-
__epPropKey: true;
|
|
1260
|
+
__epPropKey: true; /**
|
|
1261
|
+
* TODO: 将会在v0.2.0中移除
|
|
1262
|
+
*/
|
|
1258
1263
|
};
|
|
1259
1264
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
1260
1265
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -1290,6 +1295,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1290
1295
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1291
1296
|
readonly required: false;
|
|
1292
1297
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1298
|
+
/**
|
|
1299
|
+
* 数据加载失败时触发
|
|
1300
|
+
*/
|
|
1293
1301
|
__epPropKey: true;
|
|
1294
1302
|
};
|
|
1295
1303
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -1346,10 +1354,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1346
1354
|
getField: (prop: string) => FormItemContext | undefined;
|
|
1347
1355
|
addField: (field: FormItemContext) => void;
|
|
1348
1356
|
removeField: (field: FormItemContext) => void;
|
|
1349
|
-
/**
|
|
1350
|
-
* 设置搜索的值
|
|
1351
|
-
* @version v0.1.17
|
|
1352
|
-
*/
|
|
1353
1357
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1354
1358
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1355
1359
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -1384,7 +1388,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1384
1388
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
1385
1389
|
columns?: PlusColumn[] | undefined;
|
|
1386
1390
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1387
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
1391
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1388
1392
|
readonly label: string | ComputedRef<string>;
|
|
1389
1393
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1390
1394
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -1398,7 +1402,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1398
1402
|
style: CSSProperties;
|
|
1399
1403
|
rows: number;
|
|
1400
1404
|
autocomplete: string;
|
|
1401
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
1405
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1402
1406
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1403
1407
|
step: string | number;
|
|
1404
1408
|
format: string | ProgressFn | undefined;
|
|
@@ -1459,7 +1463,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1459
1463
|
clearable: boolean;
|
|
1460
1464
|
index: number;
|
|
1461
1465
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1462
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
1466
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1463
1467
|
readonly label: string | ComputedRef<string>;
|
|
1464
1468
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1465
1469
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -1473,7 +1477,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1473
1477
|
style: CSSProperties;
|
|
1474
1478
|
rows: number;
|
|
1475
1479
|
autocomplete: string;
|
|
1476
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
1480
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1477
1481
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1478
1482
|
step: string | number;
|
|
1479
1483
|
format: string | ProgressFn | undefined;
|
|
@@ -1562,9 +1566,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1562
1566
|
labelPosition: "top" | "right" | "left";
|
|
1563
1567
|
inline: boolean;
|
|
1564
1568
|
showNumber: number;
|
|
1565
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
1566
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
1567
1569
|
defaultValues: FieldValues;
|
|
1570
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
1571
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
1568
1572
|
hasFooter: boolean;
|
|
1569
1573
|
hasReset: boolean;
|
|
1570
1574
|
resetText: string;
|
|
@@ -1616,6 +1620,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1616
1620
|
type: PropType<number>;
|
|
1617
1621
|
default: number;
|
|
1618
1622
|
};
|
|
1623
|
+
defaultValues: {
|
|
1624
|
+
type: PropType<FieldValues>;
|
|
1625
|
+
default: () => {};
|
|
1626
|
+
};
|
|
1627
|
+
rowProps: {
|
|
1628
|
+
type: PropType<Partial<Mutable< RowProps>>>;
|
|
1629
|
+
default: () => {
|
|
1630
|
+
gutter: number;
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1619
1633
|
colProps: {
|
|
1620
1634
|
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1621
1635
|
default: () => {
|
|
@@ -1626,16 +1640,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1626
1640
|
xl: number;
|
|
1627
1641
|
};
|
|
1628
1642
|
};
|
|
1629
|
-
rowProps: {
|
|
1630
|
-
type: PropType<Partial<Mutable< RowProps>>>;
|
|
1631
|
-
default: () => {
|
|
1632
|
-
gutter: number;
|
|
1633
|
-
};
|
|
1634
|
-
};
|
|
1635
|
-
defaultValues: {
|
|
1636
|
-
type: PropType<FieldValues>;
|
|
1637
|
-
default: () => {};
|
|
1638
|
-
};
|
|
1639
1643
|
hasFooter: {
|
|
1640
1644
|
type: PropType<boolean>;
|
|
1641
1645
|
default: boolean;
|
|
@@ -1677,8 +1681,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1677
1681
|
default: boolean;
|
|
1678
1682
|
};
|
|
1679
1683
|
}>> & {
|
|
1680
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1681
1684
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1685
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1682
1686
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1683
1687
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
1684
1688
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
@@ -1695,12 +1699,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1695
1699
|
labelWidth: string | number;
|
|
1696
1700
|
labelSuffix: string;
|
|
1697
1701
|
hasLabel: boolean;
|
|
1698
|
-
clearable: boolean;
|
|
1699
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
1700
|
-
collapseDuration: number;
|
|
1701
|
-
collapseTransition: boolean;
|
|
1702
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
1703
1702
|
defaultValues: FieldValues;
|
|
1703
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
1704
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
1704
1705
|
hasErrorTip: boolean;
|
|
1705
1706
|
hasFooter: boolean;
|
|
1706
1707
|
hasReset: boolean;
|
|
@@ -1710,6 +1711,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1710
1711
|
footerAlign: "right" | "left" | "center";
|
|
1711
1712
|
cardProps: Partial<Mutable<CardProps>>;
|
|
1712
1713
|
prevent: boolean;
|
|
1714
|
+
collapseDuration: number;
|
|
1715
|
+
collapseTransition: boolean;
|
|
1716
|
+
clearable: boolean;
|
|
1713
1717
|
}> & Omit<{
|
|
1714
1718
|
readonly columns: PlusColumn[];
|
|
1715
1719
|
readonly group: false | PlusFormGroupRow[];
|
|
@@ -1719,10 +1723,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1719
1723
|
readonly labelWidth: string | number;
|
|
1720
1724
|
readonly labelSuffix: string;
|
|
1721
1725
|
readonly hasLabel: boolean;
|
|
1722
|
-
readonly clearable: boolean;
|
|
1723
|
-
readonly colProps: Partial<Mutable< ColProps>>;
|
|
1724
|
-
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
1725
1726
|
readonly defaultValues: FieldValues;
|
|
1727
|
+
readonly rowProps: Partial<Mutable< RowProps>>;
|
|
1728
|
+
readonly colProps: Partial<Mutable< ColProps>>;
|
|
1726
1729
|
readonly hasErrorTip: boolean;
|
|
1727
1730
|
readonly hasFooter: boolean;
|
|
1728
1731
|
readonly hasReset: boolean;
|
|
@@ -1732,10 +1735,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1732
1735
|
readonly footerAlign: "right" | "left" | "center";
|
|
1733
1736
|
readonly cardProps: Partial<Mutable<CardProps>>;
|
|
1734
1737
|
readonly prevent: boolean;
|
|
1738
|
+
readonly clearable: boolean;
|
|
1735
1739
|
readonly collapseDuration?: number | undefined;
|
|
1736
1740
|
readonly collapseTransition?: boolean | undefined;
|
|
1737
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1738
1741
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1742
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1739
1743
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1740
1744
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
1741
1745
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -1773,28 +1777,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1773
1777
|
type: PropType<boolean>;
|
|
1774
1778
|
default: boolean;
|
|
1775
1779
|
};
|
|
1776
|
-
|
|
1777
|
-
type: PropType<
|
|
1778
|
-
default:
|
|
1779
|
-
};
|
|
1780
|
-
colProps: {
|
|
1781
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1782
|
-
default: () => {};
|
|
1783
|
-
};
|
|
1784
|
-
collapseDuration: {
|
|
1785
|
-
type: PropType<number>;
|
|
1786
|
-
default: undefined;
|
|
1787
|
-
};
|
|
1788
|
-
collapseTransition: {
|
|
1789
|
-
type: PropType<boolean>;
|
|
1790
|
-
default: undefined;
|
|
1780
|
+
defaultValues: {
|
|
1781
|
+
type: PropType<FieldValues>;
|
|
1782
|
+
default: () => {};
|
|
1791
1783
|
};
|
|
1792
1784
|
rowProps: {
|
|
1793
1785
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
1794
1786
|
default: () => {};
|
|
1795
1787
|
};
|
|
1796
|
-
|
|
1797
|
-
type: PropType<
|
|
1788
|
+
colProps: {
|
|
1789
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1798
1790
|
default: () => {};
|
|
1799
1791
|
};
|
|
1800
1792
|
hasErrorTip: {
|
|
@@ -1833,14 +1825,26 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1833
1825
|
type: PropType<boolean>;
|
|
1834
1826
|
default: boolean;
|
|
1835
1827
|
};
|
|
1828
|
+
collapseDuration: {
|
|
1829
|
+
type: PropType<number>;
|
|
1830
|
+
default: undefined;
|
|
1831
|
+
};
|
|
1832
|
+
collapseTransition: {
|
|
1833
|
+
type: PropType<boolean>;
|
|
1834
|
+
default: undefined;
|
|
1835
|
+
};
|
|
1836
|
+
clearable: {
|
|
1837
|
+
type: PropType<boolean>;
|
|
1838
|
+
default: boolean;
|
|
1839
|
+
};
|
|
1836
1840
|
}>> & {
|
|
1837
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1838
1841
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1842
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1839
1843
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1840
1844
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
1841
1845
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
1842
1846
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
1843
|
-
}, "columns" | "group" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "hasLabel" | "
|
|
1847
|
+
}, "columns" | "group" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "hasLabel" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "collapseDuration" | "collapseTransition" | "clearable">;
|
|
1844
1848
|
$attrs: {
|
|
1845
1849
|
[x: string]: unknown;
|
|
1846
1850
|
};
|
|
@@ -1852,7 +1856,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1852
1856
|
}>;
|
|
1853
1857
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
1854
1858
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
1855
|
-
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "
|
|
1859
|
+
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
|
|
1856
1860
|
$el: any;
|
|
1857
1861
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1858
1862
|
columns: {
|
|
@@ -1887,28 +1891,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1887
1891
|
type: PropType<boolean>;
|
|
1888
1892
|
default: boolean;
|
|
1889
1893
|
};
|
|
1890
|
-
|
|
1891
|
-
type: PropType<
|
|
1892
|
-
default: boolean;
|
|
1893
|
-
};
|
|
1894
|
-
colProps: {
|
|
1895
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1894
|
+
defaultValues: {
|
|
1895
|
+
type: PropType<FieldValues>;
|
|
1896
1896
|
default: () => {};
|
|
1897
1897
|
};
|
|
1898
|
-
collapseDuration: {
|
|
1899
|
-
type: PropType<number>;
|
|
1900
|
-
default: undefined;
|
|
1901
|
-
};
|
|
1902
|
-
collapseTransition: {
|
|
1903
|
-
type: PropType<boolean>;
|
|
1904
|
-
default: undefined;
|
|
1905
|
-
};
|
|
1906
1898
|
rowProps: {
|
|
1907
1899
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
1908
1900
|
default: () => {};
|
|
1909
1901
|
};
|
|
1910
|
-
|
|
1911
|
-
type: PropType<
|
|
1902
|
+
colProps: {
|
|
1903
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
1912
1904
|
default: () => {};
|
|
1913
1905
|
};
|
|
1914
1906
|
hasErrorTip: {
|
|
@@ -1947,9 +1939,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1947
1939
|
type: PropType<boolean>;
|
|
1948
1940
|
default: boolean;
|
|
1949
1941
|
};
|
|
1942
|
+
collapseDuration: {
|
|
1943
|
+
type: PropType<number>;
|
|
1944
|
+
default: undefined;
|
|
1945
|
+
};
|
|
1946
|
+
collapseTransition: {
|
|
1947
|
+
type: PropType<boolean>;
|
|
1948
|
+
default: undefined;
|
|
1949
|
+
};
|
|
1950
|
+
clearable: {
|
|
1951
|
+
type: PropType<boolean>;
|
|
1952
|
+
default: boolean;
|
|
1953
|
+
};
|
|
1950
1954
|
}>> & {
|
|
1951
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1952
1955
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1956
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1953
1957
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1954
1958
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
1955
1959
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -1961,7 +1965,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1961
1965
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1962
1966
|
readonly required: false;
|
|
1963
1967
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1964
|
-
__epPropKey: true;
|
|
1968
|
+
__epPropKey: true; /**
|
|
1969
|
+
* TODO: 将会在v0.2.0中移除
|
|
1970
|
+
*/
|
|
1965
1971
|
};
|
|
1966
1972
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
1967
1973
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -1997,6 +2003,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1997
2003
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1998
2004
|
readonly required: false;
|
|
1999
2005
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2006
|
+
/**
|
|
2007
|
+
* 数据加载失败时触发
|
|
2008
|
+
*/
|
|
2000
2009
|
__epPropKey: true;
|
|
2001
2010
|
};
|
|
2002
2011
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -2053,10 +2062,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2053
2062
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2054
2063
|
addField: (field: FormItemContext) => void;
|
|
2055
2064
|
removeField: (field: FormItemContext) => void;
|
|
2056
|
-
/**
|
|
2057
|
-
* 设置搜索的值
|
|
2058
|
-
* @version v0.1.17
|
|
2059
|
-
*/
|
|
2060
2065
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2061
2066
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2062
2067
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2066,16 +2071,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2066
2071
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
2067
2072
|
scrollToField: (prop: FormItemProp) => void;
|
|
2068
2073
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2069
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2070
|
-
* TODO: 将会在v0.2.0中移除
|
|
2071
|
-
*/
|
|
2074
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2072
2075
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2073
2076
|
readonly model: ObjectConstructor;
|
|
2074
2077
|
readonly rules: {
|
|
2075
2078
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2076
2079
|
readonly required: false;
|
|
2077
2080
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2078
|
-
__epPropKey: true;
|
|
2081
|
+
__epPropKey: true; /**
|
|
2082
|
+
* TODO: 将会在v0.2.0中移除
|
|
2083
|
+
*/
|
|
2079
2084
|
};
|
|
2080
2085
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
2081
2086
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -2129,7 +2134,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2129
2134
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2130
2135
|
readonly required: false;
|
|
2131
2136
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2132
|
-
__epPropKey: true;
|
|
2137
|
+
__epPropKey: true; /**
|
|
2138
|
+
* TODO: 将会在v0.2.0中移除
|
|
2139
|
+
*/
|
|
2133
2140
|
};
|
|
2134
2141
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
2135
2142
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -2165,6 +2172,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2165
2172
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2166
2173
|
readonly required: false;
|
|
2167
2174
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2175
|
+
/**
|
|
2176
|
+
* 数据加载失败时触发
|
|
2177
|
+
*/
|
|
2168
2178
|
__epPropKey: true;
|
|
2169
2179
|
};
|
|
2170
2180
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -2221,10 +2231,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2221
2231
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2222
2232
|
addField: (field: FormItemContext) => void;
|
|
2223
2233
|
removeField: (field: FormItemContext) => void;
|
|
2224
|
-
/**
|
|
2225
|
-
* 设置搜索的值
|
|
2226
|
-
* @version v0.1.17
|
|
2227
|
-
*/
|
|
2228
2234
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2229
2235
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2230
2236
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2265,12 +2271,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2265
2271
|
labelWidth: string | number;
|
|
2266
2272
|
labelSuffix: string;
|
|
2267
2273
|
hasLabel: boolean;
|
|
2268
|
-
clearable: boolean;
|
|
2269
|
-
colProps: Partial<Mutable< ColProps>>;
|
|
2270
|
-
collapseDuration: number;
|
|
2271
|
-
collapseTransition: boolean;
|
|
2272
|
-
rowProps: Partial<Mutable< RowProps>>;
|
|
2273
2274
|
defaultValues: FieldValues;
|
|
2275
|
+
rowProps: Partial<Mutable< RowProps>>;
|
|
2276
|
+
colProps: Partial<Mutable< ColProps>>;
|
|
2274
2277
|
hasErrorTip: boolean;
|
|
2275
2278
|
hasFooter: boolean;
|
|
2276
2279
|
hasReset: boolean;
|
|
@@ -2280,6 +2283,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2280
2283
|
footerAlign: "right" | "left" | "center";
|
|
2281
2284
|
cardProps: Partial<Mutable<CardProps>>;
|
|
2282
2285
|
prevent: boolean;
|
|
2286
|
+
collapseDuration: number;
|
|
2287
|
+
collapseTransition: boolean;
|
|
2288
|
+
clearable: boolean;
|
|
2283
2289
|
}, {}, string, {}> & {
|
|
2284
2290
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
2285
2291
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -2333,28 +2339,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2333
2339
|
type: PropType<boolean>;
|
|
2334
2340
|
default: boolean;
|
|
2335
2341
|
};
|
|
2336
|
-
|
|
2337
|
-
type: PropType<
|
|
2338
|
-
default: boolean;
|
|
2339
|
-
};
|
|
2340
|
-
colProps: {
|
|
2341
|
-
type: PropType<Partial<Mutable< ColProps>>>;
|
|
2342
|
+
defaultValues: {
|
|
2343
|
+
type: PropType<FieldValues>;
|
|
2342
2344
|
default: () => {};
|
|
2343
2345
|
};
|
|
2344
|
-
collapseDuration: {
|
|
2345
|
-
type: PropType<number>;
|
|
2346
|
-
default: undefined;
|
|
2347
|
-
};
|
|
2348
|
-
collapseTransition: {
|
|
2349
|
-
type: PropType<boolean>;
|
|
2350
|
-
default: undefined;
|
|
2351
|
-
};
|
|
2352
2346
|
rowProps: {
|
|
2353
2347
|
type: PropType<Partial<Mutable< RowProps>>>;
|
|
2354
2348
|
default: () => {};
|
|
2355
2349
|
};
|
|
2356
|
-
|
|
2357
|
-
type: PropType<
|
|
2350
|
+
colProps: {
|
|
2351
|
+
type: PropType<Partial<Mutable< ColProps>>>;
|
|
2358
2352
|
default: () => {};
|
|
2359
2353
|
};
|
|
2360
2354
|
hasErrorTip: {
|
|
@@ -2393,9 +2387,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2393
2387
|
type: PropType<boolean>;
|
|
2394
2388
|
default: boolean;
|
|
2395
2389
|
};
|
|
2390
|
+
collapseDuration: {
|
|
2391
|
+
type: PropType<number>;
|
|
2392
|
+
default: undefined;
|
|
2393
|
+
};
|
|
2394
|
+
collapseTransition: {
|
|
2395
|
+
type: PropType<boolean>;
|
|
2396
|
+
default: undefined;
|
|
2397
|
+
};
|
|
2398
|
+
clearable: {
|
|
2399
|
+
type: PropType<boolean>;
|
|
2400
|
+
default: boolean;
|
|
2401
|
+
};
|
|
2396
2402
|
}>> & {
|
|
2397
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
2398
2403
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
2404
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
2399
2405
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
2400
2406
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
2401
2407
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
@@ -2407,7 +2413,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2407
2413
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2408
2414
|
readonly required: false;
|
|
2409
2415
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2410
|
-
__epPropKey: true;
|
|
2416
|
+
__epPropKey: true; /**
|
|
2417
|
+
* TODO: 将会在v0.2.0中移除
|
|
2418
|
+
*/
|
|
2411
2419
|
};
|
|
2412
2420
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
2413
2421
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -2443,6 +2451,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2443
2451
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2444
2452
|
readonly required: false;
|
|
2445
2453
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2454
|
+
/**
|
|
2455
|
+
* 数据加载失败时触发
|
|
2456
|
+
*/
|
|
2446
2457
|
__epPropKey: true;
|
|
2447
2458
|
};
|
|
2448
2459
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -2499,10 +2510,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2499
2510
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2500
2511
|
addField: (field: FormItemContext) => void;
|
|
2501
2512
|
removeField: (field: FormItemContext) => void;
|
|
2502
|
-
/**
|
|
2503
|
-
* 设置搜索的值
|
|
2504
|
-
* @version v0.1.17
|
|
2505
|
-
*/
|
|
2506
2513
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2507
2514
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2508
2515
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2512,16 +2519,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2512
2519
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
2513
2520
|
scrollToField: (prop: FormItemProp) => void;
|
|
2514
2521
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2515
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2516
|
-
* TODO: 将会在v0.2.0中移除
|
|
2517
|
-
*/
|
|
2522
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2518
2523
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2519
2524
|
readonly model: ObjectConstructor;
|
|
2520
2525
|
readonly rules: {
|
|
2521
2526
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2522
2527
|
readonly required: false;
|
|
2523
2528
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2524
|
-
__epPropKey: true;
|
|
2529
|
+
__epPropKey: true; /**
|
|
2530
|
+
* TODO: 将会在v0.2.0中移除
|
|
2531
|
+
*/
|
|
2525
2532
|
};
|
|
2526
2533
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
2527
2534
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -2575,7 +2582,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2575
2582
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2576
2583
|
readonly required: false;
|
|
2577
2584
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2578
|
-
__epPropKey: true;
|
|
2585
|
+
__epPropKey: true; /**
|
|
2586
|
+
* TODO: 将会在v0.2.0中移除
|
|
2587
|
+
*/
|
|
2579
2588
|
};
|
|
2580
2589
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
2581
2590
|
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
@@ -2611,6 +2620,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2611
2620
|
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2612
2621
|
readonly required: false;
|
|
2613
2622
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2623
|
+
/**
|
|
2624
|
+
* 数据加载失败时触发
|
|
2625
|
+
*/
|
|
2614
2626
|
__epPropKey: true;
|
|
2615
2627
|
};
|
|
2616
2628
|
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
@@ -2667,10 +2679,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2667
2679
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2668
2680
|
addField: (field: FormItemContext) => void;
|
|
2669
2681
|
removeField: (field: FormItemContext) => void;
|
|
2670
|
-
/**
|
|
2671
|
-
* 设置搜索的值
|
|
2672
|
-
* @version v0.1.17
|
|
2673
|
-
*/
|
|
2674
2682
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2675
2683
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2676
2684
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2705,7 +2713,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2705
2713
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
2706
2714
|
columns?: PlusColumn[] | undefined;
|
|
2707
2715
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
2708
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
2716
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
2709
2717
|
readonly label: string | ComputedRef<string>;
|
|
2710
2718
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
2711
2719
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -2719,7 +2727,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2719
2727
|
style: CSSProperties;
|
|
2720
2728
|
rows: number;
|
|
2721
2729
|
autocomplete: string;
|
|
2722
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
2730
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
2723
2731
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
2724
2732
|
step: string | number;
|
|
2725
2733
|
format: string | ProgressFn | undefined;
|
|
@@ -2780,7 +2788,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2780
2788
|
clearable: boolean;
|
|
2781
2789
|
index: number;
|
|
2782
2790
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
2783
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
2791
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
2784
2792
|
readonly label: string | ComputedRef<string>;
|
|
2785
2793
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
2786
2794
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -2794,7 +2802,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2794
2802
|
style: CSSProperties;
|
|
2795
2803
|
rows: number;
|
|
2796
2804
|
autocomplete: string;
|
|
2797
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
2805
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
2798
2806
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
2799
2807
|
step: string | number;
|
|
2800
2808
|
format: string | ProgressFn | undefined;
|
|
@@ -2873,7 +2881,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2873
2881
|
handleUnfold: (e: MouseEvent) => void;
|
|
2874
2882
|
}> & {} & ComponentCustomProperties & {} & {
|
|
2875
2883
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
2876
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
2884
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
2877
2885
|
readonly label: string | ComputedRef<string>;
|
|
2878
2886
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
2879
2887
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -2887,7 +2895,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2887
2895
|
style: CSSProperties;
|
|
2888
2896
|
rows: number;
|
|
2889
2897
|
autocomplete: string;
|
|
2890
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
2898
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
2891
2899
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
2892
2900
|
step: string | number;
|
|
2893
2901
|
format: string | ProgressFn | undefined;
|
|
@@ -2970,14 +2978,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2970
2978
|
columnIndex: number;
|
|
2971
2979
|
}) => CSSProperties>;
|
|
2972
2980
|
rowKey: string | ((row: any[]) => string);
|
|
2981
|
+
tableData: RecordType[];
|
|
2982
|
+
defaultSize: "" | "default" | "small" | "large";
|
|
2983
|
+
pagination: false | Partial<PlusPaginationProps>;
|
|
2973
2984
|
actionBar: false | Partial< ActionBarProps>;
|
|
2974
|
-
|
|
2975
|
-
indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
2976
|
-
indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
2977
|
-
dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
2985
|
+
hasIndexColumn: boolean;
|
|
2978
2986
|
titleBar: boolean | Partial<Partial<{
|
|
2979
2987
|
title?: string | undefined;
|
|
2980
|
-
refresh?: boolean | undefined;
|
|
2988
|
+
refresh?: boolean | undefined; /**
|
|
2989
|
+
* @version 0.1.23
|
|
2990
|
+
*/
|
|
2981
2991
|
density?: boolean | undefined;
|
|
2982
2992
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
2983
2993
|
icon?: {
|
|
@@ -2985,20 +2995,20 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2985
2995
|
color?: string | undefined;
|
|
2986
2996
|
} | undefined;
|
|
2987
2997
|
}>>;
|
|
2988
|
-
defaultSize: "" | "default" | "small" | "large";
|
|
2989
|
-
tableData: RecordType[];
|
|
2990
|
-
pagination: false | Partial<PlusPaginationProps>;
|
|
2991
|
-
hasIndexColumn: boolean;
|
|
2992
2998
|
isSelection: boolean | "radio";
|
|
2993
2999
|
isRadio: boolean;
|
|
2994
3000
|
hasExpand: boolean;
|
|
2995
3001
|
loadingStatus: boolean;
|
|
2996
3002
|
dragSortable: false | Partial< Options>;
|
|
3003
|
+
dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3004
|
+
indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
2997
3005
|
selectionTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
2998
3006
|
radioTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
2999
3007
|
radioProps: Partial< PlusRadioProps>;
|
|
3000
3008
|
defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
|
|
3001
3009
|
expandTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3010
|
+
indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
3011
|
+
editable: boolean | "click" | "dblclick";
|
|
3002
3012
|
adaptive: boolean | {
|
|
3003
3013
|
offsetBottom?: number | undefined;
|
|
3004
3014
|
timeout?: number | undefined;
|
|
@@ -3013,14 +3023,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3013
3023
|
columnIndex: number;
|
|
3014
3024
|
}) => CSSProperties>;
|
|
3015
3025
|
readonly rowKey: string | ((row: any[]) => string);
|
|
3026
|
+
readonly tableData: RecordType[];
|
|
3027
|
+
readonly defaultSize: "" | "default" | "small" | "large";
|
|
3028
|
+
readonly pagination: false | Partial<PlusPaginationProps>;
|
|
3016
3029
|
readonly actionBar: false | Partial< ActionBarProps>;
|
|
3017
|
-
readonly
|
|
3018
|
-
readonly indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3019
|
-
readonly indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
3020
|
-
readonly dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3030
|
+
readonly hasIndexColumn: boolean;
|
|
3021
3031
|
readonly titleBar: boolean | Partial<Partial<{
|
|
3022
3032
|
title?: string | undefined;
|
|
3023
|
-
refresh?: boolean | undefined;
|
|
3033
|
+
refresh?: boolean | undefined; /**
|
|
3034
|
+
* @version 0.1.23
|
|
3035
|
+
*/
|
|
3024
3036
|
density?: boolean | undefined;
|
|
3025
3037
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
3026
3038
|
icon?: {
|
|
@@ -3028,18 +3040,18 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3028
3040
|
color?: string | undefined;
|
|
3029
3041
|
} | undefined;
|
|
3030
3042
|
}>>;
|
|
3031
|
-
readonly defaultSize: "" | "default" | "small" | "large";
|
|
3032
|
-
readonly tableData: RecordType[];
|
|
3033
|
-
readonly pagination: false | Partial<PlusPaginationProps>;
|
|
3034
|
-
readonly hasIndexColumn: boolean;
|
|
3035
3043
|
readonly isSelection: boolean | "radio";
|
|
3036
3044
|
readonly isRadio: boolean;
|
|
3037
3045
|
readonly hasExpand: boolean;
|
|
3038
3046
|
readonly loadingStatus: boolean;
|
|
3039
3047
|
readonly dragSortable: false | Partial< Options>;
|
|
3048
|
+
readonly dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3049
|
+
readonly indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3040
3050
|
readonly selectionTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3041
3051
|
readonly radioTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3042
3052
|
readonly expandTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3053
|
+
readonly indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
3054
|
+
readonly editable: boolean | "click" | "dblclick";
|
|
3043
3055
|
readonly adaptive: boolean | {
|
|
3044
3056
|
offsetBottom?: number | undefined;
|
|
3045
3057
|
timeout?: number | undefined;
|
|
@@ -3048,16 +3060,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3048
3060
|
readonly radioProps?: Partial< PlusRadioProps> | undefined;
|
|
3049
3061
|
readonly defaultSelectedRadioRow?: RecordType | ComputedRef<RecordType> | undefined;
|
|
3050
3062
|
readonly filterTableHeaderOverflowLabelLength?: number | undefined;
|
|
3063
|
+
onRefresh?: (() => any) | undefined;
|
|
3064
|
+
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3051
3065
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3052
3066
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3067
|
+
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3053
3068
|
onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
|
|
3069
|
+
onEdited?: (() => any) | undefined;
|
|
3054
3070
|
"onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3055
3071
|
"onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3056
|
-
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3057
|
-
onRefresh?: (() => any) | undefined;
|
|
3058
3072
|
onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
|
|
3059
|
-
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3060
|
-
onEdited?: (() => any) | undefined;
|
|
3061
3073
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3062
3074
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
3063
3075
|
columns: {
|
|
@@ -3086,30 +3098,32 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3086
3098
|
type: PropType<string | ((row: any[]) => string)>;
|
|
3087
3099
|
default: string;
|
|
3088
3100
|
};
|
|
3101
|
+
tableData: {
|
|
3102
|
+
type: PropType<RecordType[]>;
|
|
3103
|
+
default: () => never[];
|
|
3104
|
+
};
|
|
3105
|
+
defaultSize: {
|
|
3106
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
3107
|
+
default: string;
|
|
3108
|
+
};
|
|
3109
|
+
pagination: {
|
|
3110
|
+
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
3111
|
+
default: boolean;
|
|
3112
|
+
};
|
|
3089
3113
|
actionBar: {
|
|
3090
3114
|
type: PropType<false | Partial< ActionBarProps>>;
|
|
3091
3115
|
default: boolean;
|
|
3092
3116
|
};
|
|
3093
|
-
|
|
3094
|
-
type: PropType<boolean
|
|
3117
|
+
hasIndexColumn: {
|
|
3118
|
+
type: PropType<boolean>;
|
|
3095
3119
|
default: boolean;
|
|
3096
3120
|
};
|
|
3097
|
-
indexTableColumnProps: {
|
|
3098
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3099
|
-
default: () => {};
|
|
3100
|
-
};
|
|
3101
|
-
indexContentStyle: {
|
|
3102
|
-
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
3103
|
-
default: () => {};
|
|
3104
|
-
};
|
|
3105
|
-
dragSortableTableColumnProps: {
|
|
3106
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3107
|
-
default: () => {};
|
|
3108
|
-
};
|
|
3109
3121
|
titleBar: {
|
|
3110
3122
|
type: PropType<boolean | Partial<Partial<{
|
|
3111
3123
|
title?: string | undefined;
|
|
3112
|
-
refresh?: boolean | undefined;
|
|
3124
|
+
refresh?: boolean | undefined; /**
|
|
3125
|
+
* @version 0.1.23
|
|
3126
|
+
*/
|
|
3113
3127
|
density?: boolean | undefined;
|
|
3114
3128
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
3115
3129
|
icon?: {
|
|
@@ -3119,22 +3133,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3119
3133
|
}>>>;
|
|
3120
3134
|
default: boolean;
|
|
3121
3135
|
};
|
|
3122
|
-
defaultSize: {
|
|
3123
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
3124
|
-
default: string;
|
|
3125
|
-
};
|
|
3126
|
-
tableData: {
|
|
3127
|
-
type: PropType<RecordType[]>;
|
|
3128
|
-
default: () => never[];
|
|
3129
|
-
};
|
|
3130
|
-
pagination: {
|
|
3131
|
-
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
3132
|
-
default: boolean;
|
|
3133
|
-
};
|
|
3134
|
-
hasIndexColumn: {
|
|
3135
|
-
type: PropType<boolean>;
|
|
3136
|
-
default: boolean;
|
|
3137
|
-
};
|
|
3138
3136
|
isSelection: {
|
|
3139
3137
|
type: PropType<boolean | "radio">;
|
|
3140
3138
|
default: boolean;
|
|
@@ -3155,6 +3153,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3155
3153
|
type: PropType<false | Partial< Options>>;
|
|
3156
3154
|
default: boolean;
|
|
3157
3155
|
};
|
|
3156
|
+
dragSortableTableColumnProps: {
|
|
3157
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3158
|
+
default: () => {};
|
|
3159
|
+
};
|
|
3160
|
+
indexTableColumnProps: {
|
|
3161
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3162
|
+
default: () => {};
|
|
3163
|
+
};
|
|
3158
3164
|
selectionTableColumnProps: {
|
|
3159
3165
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3160
3166
|
default: () => {
|
|
@@ -3179,6 +3185,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3179
3185
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3180
3186
|
default: () => {};
|
|
3181
3187
|
};
|
|
3188
|
+
indexContentStyle: {
|
|
3189
|
+
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
3190
|
+
default: () => {};
|
|
3191
|
+
};
|
|
3192
|
+
editable: {
|
|
3193
|
+
type: PropType<boolean | "click" | "dblclick">;
|
|
3194
|
+
default: boolean;
|
|
3195
|
+
};
|
|
3182
3196
|
adaptive: {
|
|
3183
3197
|
type: PropType<boolean | {
|
|
3184
3198
|
offsetBottom?: number | undefined;
|
|
@@ -3190,18 +3204,18 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3190
3204
|
type: PropType<number>;
|
|
3191
3205
|
};
|
|
3192
3206
|
}>> & {
|
|
3207
|
+
onRefresh?: (() => any) | undefined;
|
|
3208
|
+
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3193
3209
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3194
3210
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3211
|
+
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3195
3212
|
onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
|
|
3213
|
+
onEdited?: (() => any) | undefined;
|
|
3196
3214
|
"onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3197
3215
|
"onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3198
|
-
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3199
|
-
onRefresh?: (() => any) | undefined;
|
|
3200
3216
|
onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
|
|
3201
|
-
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3202
|
-
onEdited?: (() => any) | undefined;
|
|
3203
3217
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3204
|
-
}, "columns" | "data" | "headerCellStyle" | "rowKey" | "
|
|
3218
|
+
}, "columns" | "data" | "headerCellStyle" | "rowKey" | "tableData" | "defaultSize" | "pagination" | "actionBar" | "hasIndexColumn" | "titleBar" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "dragSortableTableColumnProps" | "indexTableColumnProps" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "indexContentStyle" | "editable" | "adaptive">;
|
|
3205
3219
|
$attrs: {
|
|
3206
3220
|
[x: string]: unknown;
|
|
3207
3221
|
};
|
|
@@ -3242,30 +3256,32 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3242
3256
|
type: PropType<string | ((row: any[]) => string)>;
|
|
3243
3257
|
default: string;
|
|
3244
3258
|
};
|
|
3259
|
+
tableData: {
|
|
3260
|
+
type: PropType<RecordType[]>;
|
|
3261
|
+
default: () => never[];
|
|
3262
|
+
};
|
|
3263
|
+
defaultSize: {
|
|
3264
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
3265
|
+
default: string;
|
|
3266
|
+
};
|
|
3267
|
+
pagination: {
|
|
3268
|
+
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
3269
|
+
default: boolean;
|
|
3270
|
+
};
|
|
3245
3271
|
actionBar: {
|
|
3246
3272
|
type: PropType<false | Partial< ActionBarProps>>;
|
|
3247
3273
|
default: boolean;
|
|
3248
3274
|
};
|
|
3249
|
-
|
|
3250
|
-
type: PropType<boolean
|
|
3275
|
+
hasIndexColumn: {
|
|
3276
|
+
type: PropType<boolean>;
|
|
3251
3277
|
default: boolean;
|
|
3252
3278
|
};
|
|
3253
|
-
indexTableColumnProps: {
|
|
3254
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3255
|
-
default: () => {};
|
|
3256
|
-
};
|
|
3257
|
-
indexContentStyle: {
|
|
3258
|
-
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
3259
|
-
default: () => {};
|
|
3260
|
-
};
|
|
3261
|
-
dragSortableTableColumnProps: {
|
|
3262
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3263
|
-
default: () => {};
|
|
3264
|
-
};
|
|
3265
3279
|
titleBar: {
|
|
3266
3280
|
type: PropType<boolean | Partial<Partial<{
|
|
3267
3281
|
title?: string | undefined;
|
|
3268
|
-
refresh?: boolean | undefined;
|
|
3282
|
+
refresh?: boolean | undefined; /**
|
|
3283
|
+
* @version 0.1.23
|
|
3284
|
+
*/
|
|
3269
3285
|
density?: boolean | undefined;
|
|
3270
3286
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
3271
3287
|
icon?: {
|
|
@@ -3275,22 +3291,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3275
3291
|
}>>>;
|
|
3276
3292
|
default: boolean;
|
|
3277
3293
|
};
|
|
3278
|
-
defaultSize: {
|
|
3279
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
3280
|
-
default: string;
|
|
3281
|
-
};
|
|
3282
|
-
tableData: {
|
|
3283
|
-
type: PropType<RecordType[]>;
|
|
3284
|
-
default: () => never[];
|
|
3285
|
-
};
|
|
3286
|
-
pagination: {
|
|
3287
|
-
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
3288
|
-
default: boolean;
|
|
3289
|
-
};
|
|
3290
|
-
hasIndexColumn: {
|
|
3291
|
-
type: PropType<boolean>;
|
|
3292
|
-
default: boolean;
|
|
3293
|
-
};
|
|
3294
3294
|
isSelection: {
|
|
3295
3295
|
type: PropType<boolean | "radio">;
|
|
3296
3296
|
default: boolean;
|
|
@@ -3311,6 +3311,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3311
3311
|
type: PropType<false | Partial< Options>>;
|
|
3312
3312
|
default: boolean;
|
|
3313
3313
|
};
|
|
3314
|
+
dragSortableTableColumnProps: {
|
|
3315
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3316
|
+
default: () => {};
|
|
3317
|
+
};
|
|
3318
|
+
indexTableColumnProps: {
|
|
3319
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3320
|
+
default: () => {};
|
|
3321
|
+
};
|
|
3314
3322
|
selectionTableColumnProps: {
|
|
3315
3323
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3316
3324
|
default: () => {
|
|
@@ -3335,6 +3343,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3335
3343
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
3336
3344
|
default: () => {};
|
|
3337
3345
|
};
|
|
3346
|
+
indexContentStyle: {
|
|
3347
|
+
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
3348
|
+
default: () => {};
|
|
3349
|
+
};
|
|
3350
|
+
editable: {
|
|
3351
|
+
type: PropType<boolean | "click" | "dblclick">;
|
|
3352
|
+
default: boolean;
|
|
3353
|
+
};
|
|
3338
3354
|
adaptive: {
|
|
3339
3355
|
type: PropType<boolean | {
|
|
3340
3356
|
offsetBottom?: number | undefined;
|
|
@@ -3346,16 +3362,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3346
3362
|
type: PropType<number>;
|
|
3347
3363
|
};
|
|
3348
3364
|
}>> & {
|
|
3365
|
+
onRefresh?: (() => any) | undefined;
|
|
3366
|
+
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3349
3367
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3350
3368
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3369
|
+
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3351
3370
|
onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
|
|
3371
|
+
onEdited?: (() => any) | undefined;
|
|
3352
3372
|
"onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3353
3373
|
"onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
3354
|
-
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
3355
|
-
onRefresh?: (() => any) | undefined;
|
|
3356
3374
|
onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
|
|
3357
|
-
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3358
|
-
onEdited?: (() => any) | undefined;
|
|
3359
3375
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3360
3376
|
}, {
|
|
3361
3377
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
@@ -3517,6 +3533,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3517
3533
|
clearSelection: () => void;
|
|
3518
3534
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
3519
3535
|
toggleAllSelection: () => void;
|
|
3536
|
+
/**
|
|
3537
|
+
* @version 0.1.23
|
|
3538
|
+
*/
|
|
3520
3539
|
toggleRowExpansion: (row: any, expanded?: boolean | undefined) => void;
|
|
3521
3540
|
clearSort: () => void;
|
|
3522
3541
|
doLayout: () => void;
|
|
@@ -3555,7 +3574,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3555
3574
|
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
3556
3575
|
setScrollLeft: (left?: number | undefined) => void;
|
|
3557
3576
|
setScrollTop: (top?: number | undefined) => void;
|
|
3558
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "
|
|
3577
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "current-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
3559
3578
|
data: {
|
|
3560
3579
|
type: PropType<any[]>;
|
|
3561
3580
|
default: () => never[];
|
|
@@ -3848,6 +3867,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3848
3867
|
clearSelection: () => void;
|
|
3849
3868
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
3850
3869
|
toggleAllSelection: () => void;
|
|
3870
|
+
/**
|
|
3871
|
+
* @version 0.1.23
|
|
3872
|
+
*/
|
|
3851
3873
|
toggleRowExpansion: (row: any, expanded?: boolean | undefined) => void;
|
|
3852
3874
|
clearSort: () => void;
|
|
3853
3875
|
doLayout: () => void;
|
|
@@ -3930,14 +3952,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3930
3952
|
columnIndex: number;
|
|
3931
3953
|
}) => CSSProperties>;
|
|
3932
3954
|
rowKey: string | ((row: any[]) => string);
|
|
3955
|
+
tableData: RecordType[];
|
|
3956
|
+
defaultSize: "" | "default" | "small" | "large";
|
|
3957
|
+
pagination: false | Partial<PlusPaginationProps>;
|
|
3933
3958
|
actionBar: false | Partial< ActionBarProps>;
|
|
3934
|
-
|
|
3935
|
-
indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3936
|
-
indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
3937
|
-
dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3959
|
+
hasIndexColumn: boolean;
|
|
3938
3960
|
titleBar: boolean | Partial<Partial<{
|
|
3939
3961
|
title?: string | undefined;
|
|
3940
|
-
refresh?: boolean | undefined;
|
|
3962
|
+
refresh?: boolean | undefined; /**
|
|
3963
|
+
* @version 0.1.23
|
|
3964
|
+
*/
|
|
3941
3965
|
density?: boolean | undefined;
|
|
3942
3966
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
3943
3967
|
icon?: {
|
|
@@ -3945,20 +3969,20 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3945
3969
|
color?: string | undefined;
|
|
3946
3970
|
} | undefined;
|
|
3947
3971
|
}>>;
|
|
3948
|
-
defaultSize: "" | "default" | "small" | "large";
|
|
3949
|
-
tableData: RecordType[];
|
|
3950
|
-
pagination: false | Partial<PlusPaginationProps>;
|
|
3951
|
-
hasIndexColumn: boolean;
|
|
3952
3972
|
isSelection: boolean | "radio";
|
|
3953
3973
|
isRadio: boolean;
|
|
3954
3974
|
hasExpand: boolean;
|
|
3955
3975
|
loadingStatus: boolean;
|
|
3956
3976
|
dragSortable: false | Partial< Options>;
|
|
3977
|
+
dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3978
|
+
indexTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3957
3979
|
selectionTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3958
3980
|
radioTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3959
3981
|
radioProps: Partial< PlusRadioProps>;
|
|
3960
3982
|
defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
|
|
3961
3983
|
expandTableColumnProps: Partial< TableColumnCtx<any>>;
|
|
3984
|
+
indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
|
|
3985
|
+
editable: boolean | "click" | "dblclick";
|
|
3962
3986
|
adaptive: boolean | {
|
|
3963
3987
|
offsetBottom?: number | undefined;
|
|
3964
3988
|
timeout?: number | undefined;
|
|
@@ -4010,30 +4034,32 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4010
4034
|
type: PropType<string | ((row: any[]) => string)>;
|
|
4011
4035
|
default: string;
|
|
4012
4036
|
};
|
|
4037
|
+
tableData: {
|
|
4038
|
+
type: PropType<RecordType[]>;
|
|
4039
|
+
default: () => never[];
|
|
4040
|
+
};
|
|
4041
|
+
defaultSize: {
|
|
4042
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
4043
|
+
default: string;
|
|
4044
|
+
};
|
|
4045
|
+
pagination: {
|
|
4046
|
+
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
4047
|
+
default: boolean;
|
|
4048
|
+
};
|
|
4013
4049
|
actionBar: {
|
|
4014
4050
|
type: PropType<false | Partial< ActionBarProps>>;
|
|
4015
4051
|
default: boolean;
|
|
4016
4052
|
};
|
|
4017
|
-
|
|
4018
|
-
type: PropType<boolean
|
|
4053
|
+
hasIndexColumn: {
|
|
4054
|
+
type: PropType<boolean>;
|
|
4019
4055
|
default: boolean;
|
|
4020
4056
|
};
|
|
4021
|
-
indexTableColumnProps: {
|
|
4022
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4023
|
-
default: () => {};
|
|
4024
|
-
};
|
|
4025
|
-
indexContentStyle: {
|
|
4026
|
-
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
4027
|
-
default: () => {};
|
|
4028
|
-
};
|
|
4029
|
-
dragSortableTableColumnProps: {
|
|
4030
|
-
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4031
|
-
default: () => {};
|
|
4032
|
-
};
|
|
4033
4057
|
titleBar: {
|
|
4034
4058
|
type: PropType<boolean | Partial<Partial<{
|
|
4035
4059
|
title?: string | undefined;
|
|
4036
|
-
refresh?: boolean | undefined;
|
|
4060
|
+
refresh?: boolean | undefined; /**
|
|
4061
|
+
* @version 0.1.23
|
|
4062
|
+
*/
|
|
4037
4063
|
density?: boolean | undefined;
|
|
4038
4064
|
columnSetting?: boolean | ColumnSetting | undefined;
|
|
4039
4065
|
icon?: {
|
|
@@ -4043,22 +4069,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4043
4069
|
}>>>;
|
|
4044
4070
|
default: boolean;
|
|
4045
4071
|
};
|
|
4046
|
-
defaultSize: {
|
|
4047
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
4048
|
-
default: string;
|
|
4049
|
-
};
|
|
4050
|
-
tableData: {
|
|
4051
|
-
type: PropType<RecordType[]>;
|
|
4052
|
-
default: () => never[];
|
|
4053
|
-
};
|
|
4054
|
-
pagination: {
|
|
4055
|
-
type: PropType<false | Partial<PlusPaginationProps>>;
|
|
4056
|
-
default: boolean;
|
|
4057
|
-
};
|
|
4058
|
-
hasIndexColumn: {
|
|
4059
|
-
type: PropType<boolean>;
|
|
4060
|
-
default: boolean;
|
|
4061
|
-
};
|
|
4062
4072
|
isSelection: {
|
|
4063
4073
|
type: PropType<boolean | "radio">;
|
|
4064
4074
|
default: boolean;
|
|
@@ -4079,6 +4089,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4079
4089
|
type: PropType<false | Partial< Options>>;
|
|
4080
4090
|
default: boolean;
|
|
4081
4091
|
};
|
|
4092
|
+
dragSortableTableColumnProps: {
|
|
4093
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4094
|
+
default: () => {};
|
|
4095
|
+
};
|
|
4096
|
+
indexTableColumnProps: {
|
|
4097
|
+
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4098
|
+
default: () => {};
|
|
4099
|
+
};
|
|
4082
4100
|
selectionTableColumnProps: {
|
|
4083
4101
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4084
4102
|
default: () => {
|
|
@@ -4103,6 +4121,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4103
4121
|
type: PropType<Partial< TableColumnCtx<any>>>;
|
|
4104
4122
|
default: () => {};
|
|
4105
4123
|
};
|
|
4124
|
+
indexContentStyle: {
|
|
4125
|
+
type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
|
|
4126
|
+
default: () => {};
|
|
4127
|
+
};
|
|
4128
|
+
editable: {
|
|
4129
|
+
type: PropType<boolean | "click" | "dblclick">;
|
|
4130
|
+
default: boolean;
|
|
4131
|
+
};
|
|
4106
4132
|
adaptive: {
|
|
4107
4133
|
type: PropType<boolean | {
|
|
4108
4134
|
offsetBottom?: number | undefined;
|
|
@@ -4114,18 +4140,18 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4114
4140
|
type: PropType<number>;
|
|
4115
4141
|
};
|
|
4116
4142
|
}>> & {
|
|
4143
|
+
onRefresh?: (() => any) | undefined;
|
|
4144
|
+
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
4117
4145
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
4118
4146
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
4147
|
+
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
4119
4148
|
onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
|
|
4149
|
+
onEdited?: (() => any) | undefined;
|
|
4120
4150
|
"onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
4121
4151
|
"onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
|
|
4122
|
-
onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
|
|
4123
|
-
onRefresh?: (() => any) | undefined;
|
|
4124
4152
|
onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
|
|
4125
|
-
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
4126
|
-
onEdited?: (() => any) | undefined;
|
|
4127
4153
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
4128
|
-
}, "
|
|
4154
|
+
}, "formRefs" | "tableInstance"> & ShallowUnwrapRef<{
|
|
4129
4155
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
4130
4156
|
tableInstance: ShallowRef< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
4131
4157
|
data: {
|
|
@@ -4285,6 +4311,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4285
4311
|
clearSelection: () => void;
|
|
4286
4312
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
4287
4313
|
toggleAllSelection: () => void;
|
|
4314
|
+
/**
|
|
4315
|
+
* @version 0.1.23
|
|
4316
|
+
*/
|
|
4288
4317
|
toggleRowExpansion: (row: any, expanded?: boolean | undefined) => void;
|
|
4289
4318
|
clearSort: () => void;
|
|
4290
4319
|
doLayout: () => void;
|
|
@@ -4323,7 +4352,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4323
4352
|
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
4324
4353
|
setScrollLeft: (left?: number | undefined) => void;
|
|
4325
4354
|
setScrollTop: (top?: number | undefined) => void;
|
|
4326
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "
|
|
4355
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "current-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
4327
4356
|
data: {
|
|
4328
4357
|
type: PropType<any[]>;
|
|
4329
4358
|
default: () => never[];
|
|
@@ -4616,6 +4645,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4616
4645
|
clearSelection: () => void;
|
|
4617
4646
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
4618
4647
|
toggleAllSelection: () => void;
|
|
4648
|
+
/**
|
|
4649
|
+
* @version 0.1.23
|
|
4650
|
+
*/
|
|
4619
4651
|
toggleRowExpansion: (row: any, expanded?: boolean | undefined) => void;
|
|
4620
4652
|
clearSort: () => void;
|
|
4621
4653
|
doLayout: () => void;
|
|
@@ -4758,8 +4790,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4758
4790
|
search: false | Partial<PlusSearchProps>;
|
|
4759
4791
|
immediate: boolean;
|
|
4760
4792
|
table: Partial<PlusTableProps>;
|
|
4793
|
+
pagination: false | Omit<PlusPaginationProps, "modelValue" | "total" | "pageSizeList">;
|
|
4761
4794
|
params: RecordType;
|
|
4762
|
-
pagination: false | Omit<PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
4763
4795
|
postData: <T_1 = RecordType[]>(data: T_1[]) => T_1[];
|
|
4764
4796
|
beforeSearchSubmit: <T_2 = RecordType>(params: T_2) => T_2;
|
|
4765
4797
|
isCard: boolean;
|
|
@@ -4774,7 +4806,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4774
4806
|
};
|
|
4775
4807
|
searchSlot: boolean;
|
|
4776
4808
|
}, {}>, Partial<Record<never, (_: {
|
|
4777
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "
|
|
4809
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
4778
4810
|
readonly label: string | ComputedRef<string>;
|
|
4779
4811
|
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
4780
4812
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -4788,7 +4820,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4788
4820
|
style: CSSProperties;
|
|
4789
4821
|
rows: number;
|
|
4790
4822
|
autocomplete: string;
|
|
4791
|
-
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "
|
|
4823
|
+
type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
4792
4824
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
4793
4825
|
step: string | number;
|
|
4794
4826
|
format: string | ProgressFn | undefined;
|