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

23 lines
596 B
Vue
Raw Normal View History

2019-01-12 11:33:27 +08:00
import Vue from 'vue';
import Form from './Form';
import ref from 'vue-ref';
import FormDecoratorDirective from '../_util/FormDecoratorDirective';
import Base from '../base';
2018-05-15 10:08:14 +08:00
2019-01-12 11:33:27 +08:00
Vue.use(ref, { name: 'ant-ref' });
Vue.use(FormDecoratorDirective);
Vue.prototype.$form = Form;
2018-05-05 17:00:51 +08:00
2019-01-12 11:33:27 +08:00
export { FormProps, FormCreateOption, ValidationRule } from './Form';
export { FormItemProps } from './FormItem';
2018-05-05 17:00:51 +08:00
/* istanbul ignore next */
2019-01-12 11:33:27 +08:00
Form.install = function(Vue) {
Vue.use(Base);
2019-01-12 11:33:27 +08:00
Vue.component(Form.name, Form);
Vue.component(Form.Item.name, Form.Item);
Vue.prototype.$form = Form;
};
2019-01-12 11:33:27 +08:00
export default Form;