data-form.ts 541 B

1234567891011121314151617181920
  1. export interface DataFormProps {
  2. defaultValue?: Date
  3. placeholder?: string
  4. columns?: { label: string; value: string }[]
  5. disabled?: boolean
  6. 'onUpdate:modelValue'?: (value: string) => void
  7. type?: 'nickname'
  8. maxlength?: number
  9. }
  10. export interface DataFormSchema {
  11. [key: symbol | string]: {
  12. type: 'TextField' | 'Select' | 'Radio' | 'Submit' | 'TimePick' | 'Textarea' | 'Checkbox'
  13. label?: string
  14. labelWidth?: number
  15. hiddenLabel?: boolean
  16. existing?: boolean
  17. required?: boolean
  18. props?: DataFormProps
  19. }
  20. }