ant-design-vue/components/form/index.tsx

23 lines
608 B
Vue
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { App, Plugin } from 'vue';
2021-06-23 15:08:16 +00:00
import Form, { formProps } from './Form';
import FormItem, { formItemProps } from './FormItem';
2021-06-28 08:01:47 +00:00
import useForm from './useForm';
2018-05-15 02:08:14 +00:00
2021-06-23 13:47:53 +00:00
export type { FormProps } from './Form';
export type { FormItemProps } from './FormItem';
2018-05-05 09:00:51 +00:00
/* istanbul ignore next */
2021-06-23 15:08:16 +00:00
Form.install = function (app: App) {
2020-07-28 09:10:06 +00:00
app.component(Form.name, Form);
app.component(Form.Item.name, Form.Item);
2020-10-13 11:14:56 +00:00
return app;
2019-01-12 03:33:27 +00:00
};
2021-06-28 08:01:47 +00:00
export { FormItem, formItemProps, formProps, useForm };
2020-11-01 07:03:33 +00:00
export default Form as typeof Form &
Plugin & {
readonly Item: typeof Form.Item;
2021-06-28 08:01:47 +00:00
readonly useForm: typeof useForm;
2020-11-01 07:03:33 +00:00
};