-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
27 lines (22 loc) · 881 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import './assets/css/tailwind-input.css';
import * as allComponents from './components';
import { setOptions, setVueInstance } from './utils/config';
import { useYartuNotify, yartuNotify } from './components/YartuNotify/service';
import { useYartuModal, activeModals } from './components/YartuModal/service';
import { changeLocale, setLocaleMessage } from './locales';
export default {
install: (Vue, options = {}) => {
setVueInstance(Vue);
setOptions(options);
setLocaleMessage(options);
const optionsComponents = options.components || allComponents;
for (let componentKey in optionsComponents) {
if (optionsComponents[componentKey]) {
Vue.use(allComponents[componentKey]);
}
}
},
};
// export default YartuUiKit;
export * from './components';
export { useYartuNotify, useYartuModal, yartuNotify, activeModals, changeLocale };