2018-05-15 02:08:14 +00:00
|
|
|
import Vue from 'vue'
|
2018-05-05 09:00:51 +00:00
|
|
|
import Form from './Form'
|
2018-11-26 13:49:05 +00:00
|
|
|
import ref from 'vue-ref'
|
2018-12-07 13:27:47 +00:00
|
|
|
import FormDecoratorDirective from '../_util/FormDecoratorDirective'
|
2018-05-15 02:08:14 +00:00
|
|
|
|
2018-11-26 13:49:05 +00:00
|
|
|
Vue.use(ref, { name: 'ant-ref' })
|
2018-12-07 13:27:47 +00:00
|
|
|
Vue.use(FormDecoratorDirective)
|
2018-12-13 14:47:23 +00:00
|
|
|
Vue.prototype.$form = Form
|
2018-05-05 09:00:51 +00:00
|
|
|
|
2018-06-28 14:22:56 +00:00
|
|
|
export { FormProps, FormCreateOption, ValidationRule } from './Form'
|
2018-05-05 09:00:51 +00:00
|
|
|
export { FormItemProps } from './FormItem'
|
|
|
|
|
2018-09-19 05:21:57 +00:00
|
|
|
/* istanbul ignore next */
|
|
|
|
Form.install = function (Vue) {
|
|
|
|
Vue.component(Form.name, Form)
|
|
|
|
Vue.component(Form.Item.name, Form.Item)
|
2018-12-07 13:27:47 +00:00
|
|
|
Vue.prototype.$form = Form
|
2018-09-19 05:21:57 +00:00
|
|
|
}
|
|
|
|
|
2018-05-05 09:00:51 +00:00
|
|
|
export default Form
|