ele-admin-plus 1.1.0-beta.1 → 1.1.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, normalizeStyle, createElementBlock, Fragment, renderList, renderSlot, normalizeProps, resolveDynamicComponent, createCommentVNode, toDisplayString } from "vue";
2
- import { ElDropdown, ElDropdownMenu, ElDropdownItem } from "element-plus";
2
+ import { ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon } from "element-plus";
3
3
  import { useLicense } from "../ele-config-provider/receiver";
4
4
  import { omit } from "../utils/core";
5
5
  import { dropdownProps, dropdownEmits } from "./props";
6
6
  const _sfc_main = defineComponent({
7
7
  name: "EleDropdown",
8
- components: { ElDropdown, ElDropdownMenu, ElDropdownItem },
8
+ components: { ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon },
9
9
  props: dropdownProps,
10
10
  emits: dropdownEmits,
11
11
  setup(props, { emit }) {
@@ -1,5 +1,6 @@
1
1
  import 'element-plus/es/components/dropdown/style/index';
2
2
  import 'element-plus/es/components/dropdown-menu/style/index';
3
3
  import 'element-plus/es/components/dropdown-item/style/index';
4
+ import 'element-plus/es/components/icon/style/index';
4
5
  import '../../ele-popover/style/index';
5
6
  import './index.scss';
@@ -493,6 +493,7 @@ const _hoisted_3 = {
493
493
  };
494
494
  const _hoisted_4 = {
495
495
  key: 2,
496
+ class: "ele-admin-content",
496
497
  style: { "padding": "26px" }
497
498
  };
498
499
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -557,7 +558,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
557
558
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "compact", "collapse", "popperEffect", "titleSlot", "iconSlot"])) : createCommentVNode("", true),
558
559
  _ctx.sidebar ? (openBlock(), createBlock(_component_ProSidebar, {
559
560
  key: 1,
560
- menus: _ctx.sidebarData,
561
+ menus: _ctx.authenticated ? _ctx.sidebarData : [],
561
562
  sidebarStyle: _ctx.sidebarTheme,
562
563
  colorfulIcon: _ctx.colorfulIcon,
563
564
  active: _ctx.sidebarActive,
@@ -580,7 +581,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
580
581
  })
581
582
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "collapse", "uniqueOpened", "defaultOpeneds", "popperEffect", "titleSlot", "iconSlot", "onOpen", "onClsoe"])) : createCommentVNode("", true),
582
583
  createElementVNode("div", _hoisted_2, [
583
- _ctx.tabBar ? (openBlock(), createBlock(_component_ProTabs, {
584
+ _ctx.authenticated && _ctx.tabBar ? (openBlock(), createBlock(_component_ProTabs, {
584
585
  key: 0,
585
586
  tabs: _ctx.tabData,
586
587
  active: _ctx.tabActive,
@@ -6,7 +6,7 @@ const core = require("../utils/core");
6
6
  const props = require("./props");
7
7
  const _sfc_main = vue.defineComponent({
8
8
  name: "EleDropdown",
9
- components: { ElDropdown: elementPlus.ElDropdown, ElDropdownMenu: elementPlus.ElDropdownMenu, ElDropdownItem: elementPlus.ElDropdownItem },
9
+ components: { ElDropdown: elementPlus.ElDropdown, ElDropdownMenu: elementPlus.ElDropdownMenu, ElDropdownItem: elementPlus.ElDropdownItem, ElIcon: elementPlus.ElIcon },
10
10
  props: props.dropdownProps,
11
11
  emits: props.dropdownEmits,
12
12
  setup(props2, { emit }) {
@@ -2,5 +2,6 @@
2
2
  require("element-plus/es/components/dropdown/style/index");
3
3
  require("element-plus/es/components/dropdown-menu/style/index");
4
4
  require("element-plus/es/components/dropdown-item/style/index");
5
+ require("element-plus/es/components/icon/style/index");
5
6
  require("../../ele-popover/style/index");
6
7
  require("./index.scss");
@@ -494,6 +494,7 @@ const _hoisted_3 = {
494
494
  };
495
495
  const _hoisted_4 = {
496
496
  key: 2,
497
+ class: "ele-admin-content",
497
498
  style: { "padding": "26px" }
498
499
  };
499
500
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -558,7 +559,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
558
559
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "compact", "collapse", "popperEffect", "titleSlot", "iconSlot"])) : vue.createCommentVNode("", true),
559
560
  _ctx.sidebar ? (vue.openBlock(), vue.createBlock(_component_ProSidebar, {
560
561
  key: 1,
561
- menus: _ctx.sidebarData,
562
+ menus: _ctx.authenticated ? _ctx.sidebarData : [],
562
563
  sidebarStyle: _ctx.sidebarTheme,
563
564
  colorfulIcon: _ctx.colorfulIcon,
564
565
  active: _ctx.sidebarActive,
@@ -581,7 +582,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
581
582
  })
582
583
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "collapse", "uniqueOpened", "defaultOpeneds", "popperEffect", "titleSlot", "iconSlot", "onOpen", "onClsoe"])) : vue.createCommentVNode("", true),
583
584
  vue.createElementVNode("div", _hoisted_2, [
584
- _ctx.tabBar ? (vue.openBlock(), vue.createBlock(_component_ProTabs, {
585
+ _ctx.authenticated && _ctx.tabBar ? (vue.openBlock(), vue.createBlock(_component_ProTabs, {
585
586
  key: 0,
586
587
  tabs: _ctx.tabData,
587
588
  active: _ctx.tabActive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ele-admin-plus",
3
- "version": "1.1.0-beta.1",
3
+ "version": "1.1.1-beta.1",
4
4
  "description": "EleAdminPlus Library",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",