Sfoglia il codice sorgente

feat: 添加数据表单组件接口及相关类型定义

EvilDragon 3 mesi fa
parent
commit
5f44f8576c
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      packages/app/src/components/data-form.ts

+ 12 - 0
packages/app/src/components/data-form.ts

@@ -0,0 +1,12 @@
+export interface DataFormProps {
+  labelWidth?: number
+  defaultValue?: Date
+}
+export interface DataFormSchema {
+  [key: symbol | string]: {
+    type: 'TextField' | 'Select' | 'Radio' | 'Submit' | 'TimePick' | 'Textarea'
+    label?: string
+    existing?: string
+    props?: DataFormProps
+  }
+}