UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

32 lines (29 loc) 1.25 kB
import { defineComponent, computed, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, unref } from 'vue'; import { storeToRefs } from 'pinia'; import '../../stores/index.mjs'; import './topBar/index.vue.mjs'; import './tagsView/tagsView.vue.mjs'; import _sfc_main$1 from './topBar/index.vue2.mjs'; import _sfc_main$2 from './tagsView/tagsView.vue2.mjs'; import { useThemeConfig } from '../../stores/themeConfig.mjs'; const _hoisted_1 = { class: "layout-navbars-container" }; var _sfc_main = /* @__PURE__ */ defineComponent({ __name: "index", setup(__props) { const BreadcrumbIndex = _sfc_main$1; const TagsView = _sfc_main$2; const storesThemeConfig = useThemeConfig(); const { themeConfig } = storeToRefs(storesThemeConfig); const setShowTagsView = computed(() => { let { layout, isTagsview } = themeConfig.value; return layout !== "classic" && isTagsview; }); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", _hoisted_1, [ createVNode(unref(BreadcrumbIndex)), setShowTagsView.value ? (openBlock(), createBlock(unref(TagsView), { key: 0 })) : createCommentVNode("v-if", true) ]); }; } }); export { _sfc_main as default };