comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
46 lines (45 loc) • 1.3 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
require("../style/loadingbar.css");
const _hoisted_1 = { class: "cu-loadingbar" };
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
...{
name: "CuLoadingbar"
},
__name: "main",
props: {
distroy: Function
},
setup(__props, { expose: __expose }) {
const progress = vue.ref(0);
const status = vue.ref("loading");
const show = vue.ref(false);
const scheduleStyle = vue.computed(() => {
return {
width: progress.value + "%"
};
});
__expose({
progress,
status,
show
});
return (_ctx, _cache) => {
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "loadingbar" }, {
default: vue.withCtx(() => [
vue.withDirectives(vue.createElementVNode("div", _hoisted_1, [
vue.createElementVNode("div", {
class: vue.normalizeClass(["cu-loadingbar__schedule", status.value]),
style: vue.normalizeStyle(scheduleStyle.value)
}, null, 6)
], 512), [
[vue.vShow, show.value]
])
]),
_: 1
});
};
}
});
exports.default = _sfc_main;