UNPKG

tav-ui

Version:
30 lines (27 loc) 1.3 kB
import { defineComponent, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, mergeProps, vShow } from 'vue'; import { Spin } from 'ant-design-vue'; import { loadingProps } from './types2.mjs'; import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs'; const _sfc_main = defineComponent({ name: "TaLoading", components: { Spin }, props: loadingProps }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_Spin = resolveComponent("Spin"); return withDirectives((openBlock(), createElementBlock("section", { class: normalizeClass(["full-loading", { absolute: _ctx.absolute, [_ctx.theme]: !!_ctx.theme }]), style: normalizeStyle([_ctx.background ? `background-color: ${_ctx.background}` : ""]) }, [ createVNode(_component_Spin, mergeProps(_ctx.$attrs, { tip: _ctx.tip, size: _ctx.size, spinning: _ctx.loading }), null, 16, ["tip", "size", "spinning"]) ], 6)), [ [vShow, _ctx.loading] ]); } var Loading = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/tav-ui/tav-ui/packages/components/loading/src/loading.vue"]]); export { Loading as default }; //# sourceMappingURL=loading2.mjs.map