index.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import Form from './src/Form.vue'
  2. import type { FormSchema, FormSetProps } from './src/types'
  3. export type {
  4. ComponentNameEnum,
  5. ComponentName,
  6. InputComponentProps,
  7. AutocompleteComponentProps,
  8. InputNumberComponentProps,
  9. SelectOption,
  10. SelectComponentProps,
  11. SelectV2ComponentProps,
  12. CascaderComponentProps,
  13. SwitchComponentProps,
  14. RateComponentProps,
  15. ColorPickerComponentProps,
  16. TransferComponentProps,
  17. RadioOption,
  18. RadioGroupComponentProps,
  19. RadioButtonComponentProps,
  20. CheckboxOption,
  21. CheckboxGroupComponentProps,
  22. DividerComponentProps,
  23. DatePickerComponentProps,
  24. DateTimePickerComponentProps,
  25. TimePickerComponentProps,
  26. TimeSelectComponentProps,
  27. ColProps,
  28. FormSetProps,
  29. FormItemProps,
  30. FormSchema,
  31. FormProps,
  32. PlaceholderModel,
  33. InputPasswordComponentProps,
  34. TreeSelectComponentProps
  35. } from './src/types'
  36. export interface FormExpose {
  37. setValues: (data: Recordable) => void
  38. setProps: (props: Recordable) => void
  39. delSchema: (field: string) => void
  40. addSchema: (formSchema: FormSchema, index?: number) => void
  41. setSchema: (schemaProps: FormSetProps[]) => void
  42. formModel: Recordable
  43. getComponentExpose: (field: string) => any
  44. getFormItemExpose: (field: string) => any
  45. }
  46. export { Form }