yanzhen-design-vue
Version:
25 lines (24 loc) • 768 B
JavaScript
import { defineComponent, openBlock, createBlock, unref, normalizeClass } from "vue";
import { useSpin } from "./use-spin.mjs";
import { spinName, spinProps, spinEmits, spinOptions } from "./spin.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
...{ name: spinName },
__name: "spin",
props: spinProps,
emits: spinEmits,
setup(__props, { expose: __expose, emit: __emit }) {
const { ns } = spinOptions;
const props = __props;
const emit = __emit;
const [{ exposeCtx }, Spin] = useSpin(props, emit);
__expose(exposeCtx);
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(Spin), {
class: normalizeClass([unref(ns).b()])
}, null, 8, ["class"]);
};
}
});
export {
_sfc_main as default
};