Browse Source

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

EvilDragon 3 tháng trước cách đây
mục cha
commit
5f44f8576c
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  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
+  }
+}