myprint-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
35 lines (32 loc) • 1.12 kB
JavaScript
import { defineComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, toDisplayString, unref } from 'vue';
import { elementTypeFormat } from '../../../types/entity.mjs';
import baseWidget from './base-widget.vue.mjs';
const _hoisted_1 = { class: "options" };
const _hoisted_2 = { class: "icon-tip" };
var _sfc_main = /* @__PURE__ */ defineComponent({
__name: "basic",
props: {
data: { default: () => ({}) },
pageUnit: {}
},
setup(__props) {
return (_ctx, _cache) => {
return openBlock(), createBlock(baseWidget, {
data: _ctx.data,
pageUnit: _ctx.pageUnit
}, {
default: withCtx(() => [
createElementVNode("div", _hoisted_1, [
createElementVNode("div", {
class: normalizeClass([_ctx.data.iconClass, "icon"])
}, null, 2),
createElementVNode("div", _hoisted_2, toDisplayString(unref(elementTypeFormat)[_ctx.data.type]), 1)
])
]),
_: 1
}, 8, ["data", "pageUnit"]);
};
}
});
export { _sfc_main as default };
//# sourceMappingURL=basic.vue2.mjs.map