label-print-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
65 lines (62 loc) • 2.8 kB
JavaScript
import { defineComponent, resolveComponent, resolveDirective, openBlock, createElementBlock, createVNode, createElementVNode, createCommentVNode, withDirectives, createBlock, withCtx, createTextVNode } from 'vue';
import Toolbar from '../toolbar/toolbar.vue.mjs';
import MyPanel from './my-panel.vue.mjs';
import { useConfigStore } from '../../../stores/config.mjs';
import MinimapPanel from '../handle-panel/minimap-panel.vue.mjs';
const _hoisted_1 = { class: "design-panel-container" };
const _hoisted_2 = { class: "display-flex design-panel-container-height" };
const _hoisted_3 = { class: "design-panel-footer" };
var _sfc_main = /* @__PURE__ */ defineComponent({
__name: "index",
props: {
designProps: {}
},
setup(__props) {
const configStore = useConfigStore();
function clickHandlePanelIcon(key) {
configStore.settingPanel[key].visible = !configStore.settingPanel[key].visible;
}
return (_ctx, _cache) => {
const _component_el_button = resolveComponent("el-button");
const _directive_repeat = resolveDirective("repeat");
return openBlock(), createElementBlock("div", _hoisted_1, [
createVNode(Toolbar, { designProps: _ctx.designProps }, null, 8, ["designProps"]),
createElementVNode("div", _hoisted_2, [
createVNode(MyPanel),
createCommentVNode(` <div style="background: white;" class="display-flex-column width-20">
<div v-for="(value, key) in handlePanelElementList"
="clickHandlePanelIcon(key)"
:class="['my-icon handle-panel-icon iconfont',{'handle-panel-icon-active': configStore.settingPanel[key].visible}, value.icon]"
:key="key" />
<history-panel />
<operation-panel />
<setting-panel />
</div> `),
createVNode(MinimapPanel)
]),
createElementVNode("div", _hoisted_3, [
createCommentVNode(` <el-button v-repeat type="primary" ="submit('')">\u4FDD\u5B58</el-button>
<el-button ="closeDrawer()">\u53D6\u6D88</el-button> `),
withDirectives((openBlock(), createBlock(_component_el_button, { type: "primary" }, {
default: withCtx(() => _cache[0] || (_cache[0] = [
createTextVNode("\u4FDD\u5B58")
])),
_: 1
/* STABLE */
})), [
[_directive_repeat]
]),
createVNode(_component_el_button, null, {
default: withCtx(() => _cache[1] || (_cache[1] = [
createTextVNode("\u53D6\u6D88")
])),
_: 1
/* STABLE */
})
])
]);
};
}
});
export { _sfc_main as default };
//# sourceMappingURL=index.vue2.mjs.map