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

37 lines
945 B
TypeScript
Raw Normal View History

2021-06-26 09:35:40 +08:00
import type { App, Plugin } from 'vue';
2019-01-12 11:33:27 +08:00
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';
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 */
2021-06-23 23:08:16 +08:00
Input.install = function (app: App) {
2020-06-27 14:02:30 +08:00
app.component(Input.name, Input);
app.component(Input.Group.name, Input.Group);
app.component(Input.Search.name, Input.Search);
app.component(Input.TextArea.name, Input.TextArea);
app.component(Input.Password.name, Input.Password);
2020-10-13 19:14:56 +08:00
return app;
2019-01-12 11:33:27 +08:00
};
export {
Group as InputGroup,
Search as InputSearch,
TextArea as Textarea,
Password as InputPassword,
};
2021-06-23 21:47:53 +08:00
2020-11-01 15:03:33 +08:00
export default Input as typeof Input &
Plugin & {
readonly Group: typeof Group;
readonly Search: typeof Search;
readonly TextArea: typeof TextArea;
readonly Password: typeof Password;
};