mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
a6620cbbe5
* feat: add Vue.use feat * feat: Vue.use method * docs: update docs
23 lines
567 B
JavaScript
23 lines
567 B
JavaScript
import Vue from 'vue'
|
|
import Input from './Input'
|
|
import Group from './Group'
|
|
import Search from './Search'
|
|
import TextArea from './TextArea'
|
|
import antInputDirective from '../_util/antInputDirective'
|
|
|
|
Vue.use(antInputDirective)
|
|
|
|
Input.Group = Group
|
|
Input.Search = Search
|
|
Input.TextArea = TextArea
|
|
|
|
/* istanbul ignore next */
|
|
Input.install = function (Vue) {
|
|
Vue.component(Input.name, Input)
|
|
Vue.component(Input.Group.name, Input.Group)
|
|
Vue.component(Input.Search.name, Input.Search)
|
|
Vue.component(Input.TextArea.name, Input.TextArea)
|
|
}
|
|
|
|
export default Input
|