From 928c61ccddebc8d2c697b86ee9bee0c207330a8c Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 06 5月 2025 07:18:22 +0800 Subject: [PATCH] 222 --- HIAWms/web/src/components/DyForm/DyForm.d.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/HIAWms/web/src/components/DyForm/DyForm.d.ts b/HIAWms/web/src/components/DyForm/DyForm.d.ts new file mode 100644 index 0000000..263c680 --- /dev/null +++ b/HIAWms/web/src/components/DyForm/DyForm.d.ts @@ -0,0 +1,36 @@ +import { VNode, Component, DefineComponent } from 'vue' + +export interface OptionItemType { + label?: string + description?: string + name?: string + value: string | number +} + +export interface FormItemPropType { + prop?: string | Ref<string> + label?: String | Ref<string> + rules?: any[] | Ref<any[]> + disabled?: boolean | Ref<boolean> + placeholder?: string | Ref<string> + type?: string | Ref<string> + width?: string | Ref<string> + el?: string | Component | DefineComponent | Ref<string> + options?: OptionItemType[] | any[] | Ref<any> + isTitle?: boolean + title?:string | Component + [key: string]: any | Ref<string> +} + +export interface FormPropsType { + formData: { [key: string]: any } + formItemProps: FormItemPropType[] + [key: string]: any +} + +export interface PropsType { + formItemProps: FormItemPropType[] + formData: { [key: string]: any } + labelWidth: string + [key: string]: any +} -- Gitblit v1.9.3