UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

30 lines (28 loc) 663 B
import './spin.mjs'; import Spin from './index2.mjs'; export { default } from './index2.mjs'; let spinInstance; function getSpinInstance(render = void 0) { spinInstance = spinInstance || Spin.newInstance({ render }); return spinInstance; } function loading(options) { const render = "render" in options ? options.render : void 0; const instance = getSpinInstance(render); instance.show(); } Spin.show = (props = {}) => { return loading(props); }; Spin.hide = () => { if (!spinInstance) { return false; } const instance = getSpinInstance(); instance.remove(() => { spinInstance = null; }); }; //# sourceMappingURL=init.mjs.map