yc-agent-ui 1.2.3 → 1.2.5
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/es/components/descriptions/index.d.ts +3 -3
- package/es/components/descriptions/src/index.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +6 -6
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +4 -4
- package/es/components/dialog-form/src/index.vue.d.ts +4 -4
- package/es/components/display-item/index.d.ts +15 -15
- package/es/components/display-item/src/index.vue.d.ts +13 -13
- package/es/components/drawer-form/index.d.ts +22 -22
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +43 -43
- package/es/components/form/src/form-content.vue.d.ts +15 -15
- package/es/components/form/src/index.vue.d.ts +21 -21
- package/es/components/form-item/index.d.ts +61 -61
- package/es/components/form-item/src/index.vue.d.ts +24 -24
- package/es/components/index.d.ts +1 -0
- package/es/components/page/index.d.ts +936 -936
- package/es/components/page/src/index.vue.d.ts +316 -316
- package/es/components/popover/index.d.ts +9 -9
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/search/index.d.ts +282 -282
- package/es/components/search/src/index.vue.d.ts +98 -98
- package/es/components/table/index.d.ts +9 -9
- package/es/components/table/src/index.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +34 -34
- package/es/components/utils/index.d.ts +1 -1
- package/es/components/yc-ai-chat/index.d.ts +2 -1
- package/es/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
- package/es/components/yc-ai-chat/src/question-validation.d.ts +5 -0
- package/es/components/yc-ai-chat/src/type.d.ts +51 -0
- package/es/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/es/components/yc-display-cards/capability.d.ts +4 -0
- package/es/components/yc-display-cards/index.d.ts +24 -0
- package/es/components/yc-display-cards/src/detail-card.vue.d.ts +10 -0
- package/es/components/yc-display-cards/src/metrics-card.vue.d.ts +8 -0
- package/es/components/yc-display-cards/src/table-card.vue.d.ts +12 -0
- package/es/components/yc-display-cards/src/types.d.ts +47 -0
- package/es/components/yc-input/src/input.vue.d.ts +1 -1
- package/es/components/yc-input/src/money-input.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +946 -946
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +132 -132
- package/es/index.css +11 -8
- package/es/index.mjs +2 -0
- package/es/packages/components/index.mjs +2 -0
- package/es/packages/components/yc-ai-chat/index.mjs +1 -0
- package/es/packages/components/yc-ai-chat/src/question-card.vue.mjs +5 -0
- package/es/packages/components/yc-ai-chat/src/question-card2.vue.mjs +613 -0
- package/es/packages/components/yc-ai-chat/src/question-validation.mjs +77 -0
- package/es/packages/components/yc-display-cards/capability.mjs +75 -0
- package/es/packages/components/yc-display-cards/index.mjs +10 -0
- package/es/packages/components/yc-display-cards/src/detail-card.vue.mjs +6 -0
- package/es/packages/components/yc-display-cards/src/detail-card2.vue.mjs +118 -0
- package/es/packages/components/yc-display-cards/src/metrics-card.vue.mjs +6 -0
- package/es/packages/components/yc-display-cards/src/metrics-card2.vue.mjs +132 -0
- package/es/packages/components/yc-display-cards/src/table-card.vue.mjs +6 -0
- package/es/packages/components/yc-display-cards/src/table-card2.vue.mjs +199 -0
- package/es/packages/components/yc-display-cards/src/types.mjs +1 -0
- package/es/packages/registry/load.mjs +9 -8
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +4 -1
- package/index.js +2546 -1335
- package/index.min.css +3 -0
- package/index.min.js +23 -23
- package/index.min.mjs +23 -23
- package/index.mjs +2535 -1328
- package/lib/components/descriptions/index.d.ts +3 -3
- package/lib/components/descriptions/src/index.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +6 -6
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +4 -4
- package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
- package/lib/components/display-item/index.d.ts +15 -15
- package/lib/components/display-item/src/index.vue.d.ts +13 -13
- package/lib/components/drawer-form/index.d.ts +22 -22
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +43 -43
- package/lib/components/form/src/form-content.vue.d.ts +15 -15
- package/lib/components/form/src/index.vue.d.ts +21 -21
- package/lib/components/form-item/index.d.ts +61 -61
- package/lib/components/form-item/src/index.vue.d.ts +24 -24
- package/lib/components/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +936 -936
- package/lib/components/page/src/index.vue.d.ts +316 -316
- package/lib/components/popover/index.d.ts +9 -9
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/search/index.d.ts +282 -282
- package/lib/components/search/src/index.vue.d.ts +98 -98
- package/lib/components/table/index.d.ts +9 -9
- package/lib/components/table/src/index.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +34 -34
- package/lib/components/utils/index.d.ts +1 -1
- package/lib/components/yc-ai-chat/index.d.ts +2 -1
- package/lib/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
- package/lib/components/yc-ai-chat/src/question-validation.d.ts +5 -0
- package/lib/components/yc-ai-chat/src/type.d.ts +51 -0
- package/lib/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/lib/components/yc-display-cards/capability.d.ts +4 -0
- package/lib/components/yc-display-cards/index.d.ts +24 -0
- package/lib/components/yc-display-cards/src/detail-card.vue.d.ts +10 -0
- package/lib/components/yc-display-cards/src/metrics-card.vue.d.ts +8 -0
- package/lib/components/yc-display-cards/src/table-card.vue.d.ts +12 -0
- package/lib/components/yc-display-cards/src/types.d.ts +47 -0
- package/lib/components/yc-input/src/input.vue.d.ts +1 -1
- package/lib/components/yc-input/src/money-input.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +946 -946
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +132 -132
- package/lib/index.css +11 -8
- package/lib/index.js +12 -6
- package/lib/packages/components/index.js +12 -6
- package/lib/packages/components/yc-ai-chat/index.js +2 -0
- package/lib/packages/components/yc-ai-chat/src/question-card.vue.js +9 -0
- package/lib/packages/components/yc-ai-chat/src/question-card2.vue.js +617 -0
- package/lib/packages/components/yc-ai-chat/src/question-validation.js +81 -0
- package/lib/packages/components/yc-display-cards/capability.js +79 -0
- package/lib/packages/components/yc-display-cards/index.js +14 -0
- package/lib/packages/components/yc-display-cards/src/detail-card.vue.js +10 -0
- package/lib/packages/components/yc-display-cards/src/detail-card2.vue.js +122 -0
- package/lib/packages/components/yc-display-cards/src/metrics-card.vue.js +10 -0
- package/lib/packages/components/yc-display-cards/src/metrics-card2.vue.js +136 -0
- package/lib/packages/components/yc-display-cards/src/table-card.vue.js +10 -0
- package/lib/packages/components/yc-display-cards/src/table-card2.vue.js +203 -0
- package/lib/packages/components/yc-display-cards/src/types.js +2 -0
- package/lib/packages/registry/load.js +9 -8
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- 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/index.css +4 -1
- package/theme-chalk/plus-yc-ai-chat.css +1 -1
- package/theme-chalk/src/yc-ai-chat.scss +498 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties, PublicProps, CSSProperties } from 'vue';
|
|
2
|
-
import { FieldValueType, OptionsType, Mutable, RecordType, PropsItemType, InputType, CascaderProps, OmitTypes,
|
|
2
|
+
import { FieldValueType, OptionsType, Mutable, RecordType, RenderTypes, OptionsRow, PropsItemType, InputType, CascaderProps, OmitTypes, PlusColumn, TableValueType, FormItemValueType } from '../../types';
|
|
3
3
|
import { FormItemProp, FormItemRule, FormItemValidateState, ComponentSize, FormItemProps, FormValidateCallback, FormValidationResult, UseTooltipProps, DatePickerProps, TextProps, LinkProps, ProgressProps, SwitchProps, ImageProps, SliderProps, TimeSelectProps, InputNumberProps, TimePickerDefaultProps, SelectProps, InputAutoSize, AutocompleteProps, AutocompleteDataItem, CheckboxGroupProps, ColorPickerProps, InputProps, RadioGroupProps, RateProps, TagProps } from 'element-plus';
|
|
4
4
|
import { Arrayable } from 'element-plus/es/utils';
|
|
5
5
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -77,7 +77,7 @@ export declare const PlusFormItem: {
|
|
|
77
77
|
labelPosition: "" | "left" | "right" | "top";
|
|
78
78
|
inlineMessage: boolean;
|
|
79
79
|
showMessage: boolean;
|
|
80
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
80
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
81
81
|
size: "" | "default" | "small" | "large";
|
|
82
82
|
validateMessage: string;
|
|
83
83
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -164,7 +164,7 @@ export declare const PlusFormItem: {
|
|
|
164
164
|
labelPosition: "" | "left" | "right" | "top";
|
|
165
165
|
inlineMessage: boolean;
|
|
166
166
|
showMessage: boolean;
|
|
167
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
167
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
168
168
|
size: "" | "default" | "small" | "large";
|
|
169
169
|
validateMessage: string;
|
|
170
170
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -202,10 +202,10 @@ export declare const PlusFormItem: {
|
|
|
202
202
|
} & RecordType>>;
|
|
203
203
|
index: number;
|
|
204
204
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
205
|
-
|
|
206
|
-
[
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
fieldSlots: {
|
|
206
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
207
|
+
};
|
|
208
|
+
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
209
209
|
fieldProps: PropsItemType<Partial<{
|
|
210
210
|
[index: string]: any;
|
|
211
211
|
[index: number]: any;
|
|
@@ -230,20 +230,13 @@ export declare const PlusFormItem: {
|
|
|
230
230
|
height: string | number;
|
|
231
231
|
autosize: InputAutoSize;
|
|
232
232
|
} & Mutable<Omit< AutocompleteProps<AutocompleteDataItem>, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
233
|
-
fieldSlots: {
|
|
234
|
-
[slotName: string]: (data?: any) => RenderTypes;
|
|
235
|
-
};
|
|
236
|
-
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
237
|
-
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
238
233
|
clearable: boolean;
|
|
239
|
-
|
|
234
|
+
formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
style?: CSSProperties;
|
|
237
|
+
}>;
|
|
240
238
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
241
|
-
|
|
242
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
243
|
-
value?: FieldValueType;
|
|
244
|
-
error?: string;
|
|
245
|
-
label?: string;
|
|
246
|
-
}) => RenderTypes;
|
|
239
|
+
valueType: "select" | "text" | "input" | "textarea" | "switch" | "checkbox" | "radio" | TableValueType | "rate" | "input-number" | "slider" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
247
240
|
optionsMap: {
|
|
248
241
|
label?: string;
|
|
249
242
|
value?: string;
|
|
@@ -254,6 +247,13 @@ export declare const PlusFormItem: {
|
|
|
254
247
|
transform?: (data: any) => OptionsRow[];
|
|
255
248
|
dictCode?: string;
|
|
256
249
|
};
|
|
250
|
+
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
251
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
252
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
253
|
+
value?: FieldValueType;
|
|
254
|
+
error?: string;
|
|
255
|
+
label?: string;
|
|
256
|
+
}) => RenderTypes;
|
|
257
257
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
258
258
|
P: {};
|
|
259
259
|
B: {};
|
|
@@ -332,7 +332,7 @@ export declare const PlusFormItem: {
|
|
|
332
332
|
labelPosition: "" | "left" | "right" | "top";
|
|
333
333
|
inlineMessage: boolean;
|
|
334
334
|
showMessage: boolean;
|
|
335
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
335
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
336
336
|
size: "" | "default" | "small" | "large";
|
|
337
337
|
validateMessage: string;
|
|
338
338
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -419,7 +419,7 @@ export declare const PlusFormItem: {
|
|
|
419
419
|
labelPosition: "" | "left" | "right" | "top";
|
|
420
420
|
inlineMessage: boolean;
|
|
421
421
|
showMessage: boolean;
|
|
422
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
422
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
423
423
|
size: "" | "default" | "small" | "large";
|
|
424
424
|
validateMessage: string;
|
|
425
425
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -454,10 +454,10 @@ export declare const PlusFormItem: {
|
|
|
454
454
|
} & RecordType>>;
|
|
455
455
|
index: number;
|
|
456
456
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
457
|
-
|
|
458
|
-
[
|
|
459
|
-
|
|
460
|
-
|
|
457
|
+
fieldSlots: {
|
|
458
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
459
|
+
};
|
|
460
|
+
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
461
461
|
fieldProps: PropsItemType<Partial<{
|
|
462
462
|
[index: string]: any;
|
|
463
463
|
[index: number]: any;
|
|
@@ -482,20 +482,13 @@ export declare const PlusFormItem: {
|
|
|
482
482
|
height: string | number;
|
|
483
483
|
autosize: InputAutoSize;
|
|
484
484
|
} & Mutable<Omit< AutocompleteProps<AutocompleteDataItem>, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
485
|
-
fieldSlots: {
|
|
486
|
-
[slotName: string]: (data?: any) => RenderTypes;
|
|
487
|
-
};
|
|
488
|
-
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
489
|
-
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
490
485
|
clearable: boolean;
|
|
491
|
-
|
|
486
|
+
formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
487
|
+
[key: string]: any;
|
|
488
|
+
style?: CSSProperties;
|
|
489
|
+
}>;
|
|
492
490
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
493
|
-
|
|
494
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
495
|
-
value?: FieldValueType;
|
|
496
|
-
error?: string;
|
|
497
|
-
label?: string;
|
|
498
|
-
}) => RenderTypes;
|
|
491
|
+
valueType: "select" | "text" | "input" | "textarea" | "switch" | "checkbox" | "radio" | TableValueType | "rate" | "input-number" | "slider" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
499
492
|
optionsMap: {
|
|
500
493
|
label?: string;
|
|
501
494
|
value?: string;
|
|
@@ -506,6 +499,13 @@ export declare const PlusFormItem: {
|
|
|
506
499
|
transform?: (data: any) => OptionsRow[];
|
|
507
500
|
dictCode?: string;
|
|
508
501
|
};
|
|
502
|
+
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
503
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
504
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
505
|
+
value?: FieldValueType;
|
|
506
|
+
error?: string;
|
|
507
|
+
label?: string;
|
|
508
|
+
}) => RenderTypes;
|
|
509
509
|
}>;
|
|
510
510
|
__isFragment?: never;
|
|
511
511
|
__isTeleport?: never;
|
|
@@ -581,7 +581,7 @@ export declare const PlusFormItem: {
|
|
|
581
581
|
labelPosition: "" | "left" | "right" | "top";
|
|
582
582
|
inlineMessage: boolean;
|
|
583
583
|
showMessage: boolean;
|
|
584
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
584
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
585
585
|
size: "" | "default" | "small" | "large";
|
|
586
586
|
validateMessage: string;
|
|
587
587
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -668,7 +668,7 @@ export declare const PlusFormItem: {
|
|
|
668
668
|
labelPosition: "" | "left" | "right" | "top";
|
|
669
669
|
inlineMessage: boolean;
|
|
670
670
|
showMessage: boolean;
|
|
671
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
671
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
672
672
|
size: "" | "default" | "small" | "large";
|
|
673
673
|
validateMessage: string;
|
|
674
674
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -706,10 +706,10 @@ export declare const PlusFormItem: {
|
|
|
706
706
|
} & RecordType>>;
|
|
707
707
|
index: number;
|
|
708
708
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
709
|
-
|
|
710
|
-
[
|
|
711
|
-
|
|
712
|
-
|
|
709
|
+
fieldSlots: {
|
|
710
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
711
|
+
};
|
|
712
|
+
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
713
713
|
fieldProps: PropsItemType<Partial<{
|
|
714
714
|
[index: string]: any;
|
|
715
715
|
[index: number]: any;
|
|
@@ -734,20 +734,13 @@ export declare const PlusFormItem: {
|
|
|
734
734
|
height: string | number;
|
|
735
735
|
autosize: InputAutoSize;
|
|
736
736
|
} & Mutable<Omit< AutocompleteProps<AutocompleteDataItem>, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
737
|
-
fieldSlots: {
|
|
738
|
-
[slotName: string]: (data?: any) => RenderTypes;
|
|
739
|
-
};
|
|
740
|
-
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
741
|
-
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
742
737
|
clearable: boolean;
|
|
743
|
-
|
|
738
|
+
formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
739
|
+
[key: string]: any;
|
|
740
|
+
style?: CSSProperties;
|
|
741
|
+
}>;
|
|
744
742
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
745
|
-
|
|
746
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
747
|
-
value?: FieldValueType;
|
|
748
|
-
error?: string;
|
|
749
|
-
label?: string;
|
|
750
|
-
}) => RenderTypes;
|
|
743
|
+
valueType: "select" | "text" | "input" | "textarea" | "switch" | "checkbox" | "radio" | TableValueType | "rate" | "input-number" | "slider" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
751
744
|
optionsMap: {
|
|
752
745
|
label?: string;
|
|
753
746
|
value?: string;
|
|
@@ -758,6 +751,13 @@ export declare const PlusFormItem: {
|
|
|
758
751
|
transform?: (data: any) => OptionsRow[];
|
|
759
752
|
dictCode?: string;
|
|
760
753
|
};
|
|
754
|
+
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
755
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
756
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
757
|
+
value?: FieldValueType;
|
|
758
|
+
error?: string;
|
|
759
|
+
label?: string;
|
|
760
|
+
}) => RenderTypes;
|
|
761
761
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
762
762
|
$slots: Partial<Record<string, (_: {
|
|
763
763
|
label: string;
|
|
@@ -769,10 +769,10 @@ export declare const PlusFormItem: {
|
|
|
769
769
|
prop: PlusColumn["prop"];
|
|
770
770
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
771
771
|
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
772
|
-
tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
772
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
773
773
|
style?: CSSProperties;
|
|
774
774
|
class?: any;
|
|
775
|
-
} & RecordType> | ComputedRef<
|
|
775
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
776
776
|
style?: CSSProperties;
|
|
777
777
|
class?: any;
|
|
778
778
|
} & RecordType>>;
|
|
@@ -808,10 +808,10 @@ export declare const PlusFormItem: {
|
|
|
808
808
|
readonly label: string | ComputedRef<string>;
|
|
809
809
|
readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
810
810
|
readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
811
|
-
readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
811
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
812
812
|
style?: CSSProperties;
|
|
813
813
|
class?: any;
|
|
814
|
-
} & RecordType> | ComputedRef<
|
|
814
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
815
815
|
style?: CSSProperties;
|
|
816
816
|
class?: any;
|
|
817
817
|
} & RecordType>>;
|
|
@@ -882,10 +882,10 @@ export declare const PlusFormItem: {
|
|
|
882
882
|
prop: PlusColumn["prop"];
|
|
883
883
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
884
884
|
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
885
|
-
tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
885
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
886
886
|
style?: CSSProperties;
|
|
887
887
|
class?: any;
|
|
888
|
-
} & RecordType> | ComputedRef<
|
|
888
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
889
889
|
style?: CSSProperties;
|
|
890
890
|
class?: any;
|
|
891
891
|
} & RecordType>>;
|
|
@@ -55,10 +55,10 @@ declare function __VLS_template(): Partial<Record<string, (_: {
|
|
|
55
55
|
prop: PlusColumn["prop"];
|
|
56
56
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
57
57
|
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
58
|
-
tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
58
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
59
59
|
style?: CSSProperties;
|
|
60
60
|
class?: any;
|
|
61
|
-
} & RecordType> | ComputedRef<
|
|
61
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
62
62
|
style?: CSSProperties;
|
|
63
63
|
class?: any;
|
|
64
64
|
} & RecordType>>;
|
|
@@ -94,10 +94,10 @@ declare function __VLS_template(): Partial<Record<string, (_: {
|
|
|
94
94
|
readonly label: string | ComputedRef<string>;
|
|
95
95
|
readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
96
96
|
readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
97
|
-
readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
97
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
98
98
|
style?: CSSProperties;
|
|
99
99
|
class?: any;
|
|
100
|
-
} & RecordType> | ComputedRef<
|
|
100
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
101
101
|
style?: CSSProperties;
|
|
102
102
|
class?: any;
|
|
103
103
|
} & RecordType>>;
|
|
@@ -168,10 +168,10 @@ declare function __VLS_template(): Partial<Record<string, (_: {
|
|
|
168
168
|
prop: PlusColumn["prop"];
|
|
169
169
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
170
170
|
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
171
|
-
tooltip: string | Partial< Mutable<UseTooltipProps> & {
|
|
171
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
|
|
172
172
|
style?: CSSProperties;
|
|
173
173
|
class?: any;
|
|
174
|
-
} & RecordType> | ComputedRef<
|
|
174
|
+
} & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
|
|
175
175
|
style?: CSSProperties;
|
|
176
176
|
class?: any;
|
|
177
177
|
} & RecordType>>;
|
|
@@ -271,7 +271,7 @@ declare const __VLS_component: DefineComponent<unknown, {
|
|
|
271
271
|
labelPosition: "" | "left" | "right" | "top";
|
|
272
272
|
inlineMessage: boolean;
|
|
273
273
|
showMessage: boolean;
|
|
274
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
274
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
275
275
|
size: "" | "default" | "small" | "large";
|
|
276
276
|
validateMessage: string;
|
|
277
277
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -358,7 +358,7 @@ declare const __VLS_component: DefineComponent<unknown, {
|
|
|
358
358
|
labelPosition: "" | "left" | "right" | "top";
|
|
359
359
|
inlineMessage: boolean;
|
|
360
360
|
showMessage: boolean;
|
|
361
|
-
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "
|
|
361
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "validateMessage" | "validateState" | "resetField" | "setInitialValue"> & {
|
|
362
362
|
size: "" | "default" | "small" | "large";
|
|
363
363
|
validateMessage: string;
|
|
364
364
|
validateState: "" | "success" | "error" | "validating";
|
|
@@ -399,10 +399,10 @@ declare const __VLS_component: DefineComponent<unknown, {
|
|
|
399
399
|
} & RecordType>>;
|
|
400
400
|
index: number;
|
|
401
401
|
modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
402
|
-
|
|
403
|
-
[
|
|
404
|
-
|
|
405
|
-
|
|
402
|
+
fieldSlots: {
|
|
403
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
404
|
+
};
|
|
405
|
+
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
406
406
|
fieldProps: PropsItemType<Partial<{
|
|
407
407
|
[index: string]: any;
|
|
408
408
|
[index: number]: any;
|
|
@@ -427,20 +427,13 @@ declare const __VLS_component: DefineComponent<unknown, {
|
|
|
427
427
|
height: string | number;
|
|
428
428
|
autosize: InputAutoSize;
|
|
429
429
|
} & Mutable<Omit< AutocompleteProps<AutocompleteDataItem>, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
430
|
-
fieldSlots: {
|
|
431
|
-
[slotName: string]: (data?: any) => RenderTypes;
|
|
432
|
-
};
|
|
433
|
-
fieldChildrenSlot: (option?: OptionsRow) => RenderTypes;
|
|
434
|
-
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
435
430
|
clearable: boolean;
|
|
436
|
-
|
|
431
|
+
formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
432
|
+
[key: string]: any;
|
|
433
|
+
style?: CSSProperties;
|
|
434
|
+
}>;
|
|
437
435
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
438
|
-
|
|
439
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
440
|
-
value?: FieldValueType;
|
|
441
|
-
error?: string;
|
|
442
|
-
label?: string;
|
|
443
|
-
}) => RenderTypes;
|
|
436
|
+
valueType: "select" | "text" | "input" | "textarea" | "switch" | "checkbox" | "radio" | TableValueType | "rate" | "input-number" | "slider" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
444
437
|
optionsMap: {
|
|
445
438
|
label?: string;
|
|
446
439
|
value?: string;
|
|
@@ -451,6 +444,13 @@ declare const __VLS_component: DefineComponent<unknown, {
|
|
|
451
444
|
transform?: (data: any) => OptionsRow[];
|
|
452
445
|
dictCode?: string;
|
|
453
446
|
};
|
|
447
|
+
hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
|
|
448
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
449
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
450
|
+
value?: FieldValueType;
|
|
451
|
+
error?: string;
|
|
452
|
+
label?: string;
|
|
453
|
+
}) => RenderTypes;
|
|
454
454
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
455
455
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
456
456
|
export default _default;
|