29 lines
796 B
TypeScript
29 lines
796 B
TypeScript
|
import Input from './Input';
|
||
|
import Group from './Group';
|
||
|
import Search from './Search';
|
||
|
import TextArea from './TextArea';
|
||
|
import Password from './Password';
|
||
|
import { App } from 'vue';
|
||
|
|
||
|
Input.Group = Group;
|
||
|
Input.Search = Search;
|
||
|
Input.TextArea = TextArea;
|
||
|
Input.Password = Password;
|
||
|
|
||
|
/* istanbul ignore next */
|
||
|
Input.install = function(app: App) {
|
||
|
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);
|
||
|
return app;
|
||
|
};
|
||
|
|
||
|
export default Input as typeof Input & {
|
||
|
readonly Group: typeof Group;
|
||
|
readonly Search: typeof Search;
|
||
|
readonly TextArea: typeof TextArea;
|
||
|
readonly Password: typeof Password;
|
||
|
};
|