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

37 lines
945 B
TypeScript
Raw Normal View History

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