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

23 lines
596 B
Vue
Raw Normal View History

2019-01-12 03:33:27 +00: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 02:08:14 +00:00
2019-01-12 03:33:27 +00:00
Vue.use(ref, { name: 'ant-ref' });
Vue.use(FormDecoratorDirective);
Vue.prototype.$form = Form;
2018-05-05 09:00:51 +00:00
2019-01-12 03:33:27 +00:00
export { FormProps, FormCreateOption, ValidationRule } from './Form';
export { FormItemProps } from './FormItem';
2018-05-05 09:00:51 +00:00
/* istanbul ignore next */
2019-01-12 03:33:27 +00:00
Form.install = function(Vue) {
Vue.use(Base);
2019-01-12 03:33:27 +00:00
Vue.component(Form.name, Form);
Vue.component(Form.Item.name, Form.Item);
Vue.prototype.$form = Form;
};
2019-01-12 03:33:27 +00:00
export default Form;