UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

35 lines (30 loc) 781 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('./spin.js'); var index = require('./index2.js'); let spinInstance; function getSpinInstance(render = void 0) { spinInstance = spinInstance || index["default"].newInstance({ render }); return spinInstance; } function loading(options) { const render = "render" in options ? options.render : void 0; const instance = getSpinInstance(render); instance.show(); } index["default"].show = (props = {}) => { return loading(props); }; index["default"].hide = () => { if (!spinInstance) { return false; } const instance = getSpinInstance(); instance.remove(() => { spinInstance = null; }); }; exports["default"] = index["default"]; //# sourceMappingURL=init.js.map