ant-design-vue/components/input/index.js

28 lines
743 B
JavaScript
Raw Normal View History

2019-01-12 11:33:27 +08:00
import Vue from 'vue';
import Input from './Input';
import Group from './Group';
import Search from './Search';
import TextArea from './TextArea';
2019-04-07 17:19:18 +08:00
import Password from './Password';
2019-01-12 11:33:27 +08:00
import antInputDirective from '../_util/antInputDirective';
import Base from '../base';
2019-01-12 11:33:27 +08:00
Vue.use(antInputDirective);
2017-12-06 18:54:20 +08:00
2019-01-12 11:33:27 +08:00
Input.Group = Group;
Input.Search = Search;
Input.TextArea = TextArea;
2019-04-07 17:19:18 +08:00
Input.Password = Password;
/* istanbul ignore next */
2019-01-12 11:33:27 +08:00
Input.install = function(Vue) {
Vue.use(Base);
2019-01-12 11:33:27 +08:00
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);
2019-04-07 17:19:18 +08:00
Vue.component(Input.Password.name, Input.Password);
2019-01-12 11:33:27 +08:00
};
2019-01-12 11:33:27 +08:00
export default Input;