UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

35 lines (32 loc) 1.26 kB
import { defineComponent, resolveComponent, createElementBlock, createCommentVNode, unref, openBlock, createElementVNode, createVNode } from 'vue'; import { storeToRefs } from 'pinia'; import '../../../stores/index.mjs'; import { useTagsViewRoutes } from '../../../stores/tagsViewRoutes.mjs'; const _hoisted_1 = { key: 0, class: "layout-navbars-close-full" }; const _hoisted_2 = { class: "layout-navbars-close-full-icon" }; var _sfc_main = /* @__PURE__ */ defineComponent({ __name: "closeFull", setup(__props) { const stores = useTagsViewRoutes(); const { isTagsViewCurrenFull } = storeToRefs(stores); const onCloseFullscreen = () => { stores.setCurrenFullscreen(false); }; return (_ctx, _cache) => { const _component_SvgIcon = resolveComponent("SvgIcon"); return unref(isTagsViewCurrenFull) ? (openBlock(), createElementBlock("div", _hoisted_1, [ createElementVNode("div", _hoisted_2, [ createVNode(_component_SvgIcon, { name: "ele-Close", title: _ctx.$t("message.tagsView.closeFullscreen"), onClick: onCloseFullscreen }, null, 8, ["title"]) ]) ])) : createCommentVNode("v-if", true); }; } }); export { _sfc_main as default };