index.ts 544 B

123456789101112131415161718
  1. import { withInstall, withNoopInstall } from '@kankan-components/utils'
  2. import Form from './src/form.vue'
  3. import FormItem from './src/form-item.vue'
  4. export const KkForm = withInstall(Form, {
  5. FormItem,
  6. })
  7. export default KkForm
  8. export const KkFormItem = withNoopInstall(FormItem)
  9. export * from './src/form'
  10. export * from './src/form-item'
  11. export * from './src/types'
  12. export * from './src/constants'
  13. export * from './src/hooks'
  14. export type FormInstance = InstanceType<typeof Form>
  15. export type FormItemInstance = InstanceType<typeof FormItem>