nimble-ui
Version:
26 lines (24 loc) • 675 B
JavaScript
import { extend } from 'nimble-lib';
import Loading from '../../Services/loading';
import NuPopup from '../../Components/base/popup';
import NuLoading from '../../Components/widget/loading';
let install = (Vue, options) => {
let res = Loading(Vue, extend({
popupComponent: NuPopup,
/**
* 获取组件
* @return {Promise}
*/
getComponent() {
return new Promise((resolve, reject) => {
resolve(NuLoading);
});
}
}, options));
return res;
};
install.install = (Vue, options) => {
Vue.use(NuLoading);
Vue.use(install(Vue, options));
};
export default install;