Sfoglia il codice sorgente

types: 修改类型

kailong321200875 1 anno fa
parent
commit
c3ac191504
1 ha cambiato i file con 11 aggiunte e 1 eliminazioni
  1. 11 1
      src/types/form.d.ts

+ 11 - 1
src/types/form.d.ts

@@ -82,7 +82,17 @@ export interface FormSchema {
   /**
    * 表单组件属性,具体可以查看element-plus文档
    */
-  componentProps?: ComponentPropsForComponent<ComponentName>
+  componentProps?:
+    | InputComponentProps
+    | AutocompleteComponentProps
+    | InputNumberComponentProps
+    | SelectComponentProps
+    | SelectV2ComponentProps
+    | CascaderComponentProps
+    | SwitchComponentProps
+    | RateComponentProps
+    | ColorPickerComponentProps
+    | TransferComponentProps
 
   /**
    * formItem组件属性,具体可以查看element-plus文档