mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	feat: update
This commit is contained in:
		
							parent
							
								
									c819554e54
								
							
						
					
					
						commit
						594efc6204
					
				@ -7,7 +7,7 @@ const systemRouter = {
 | 
			
		||||
  name: "system",
 | 
			
		||||
  redirect: "/system/user",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-setting",
 | 
			
		||||
    icon: "Setting",
 | 
			
		||||
    title: "message.hssysManagement",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 6
 | 
			
		||||
@ -38,7 +38,7 @@ const permissionRouter = {
 | 
			
		||||
  redirect: "/permission/page",
 | 
			
		||||
  meta: {
 | 
			
		||||
    title: "message.permission",
 | 
			
		||||
    icon: "el-icon-lollipop",
 | 
			
		||||
    icon: "Lollipop",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 3
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -29,7 +29,7 @@
 | 
			
		||||
    "cropperjs": "^1.5.11",
 | 
			
		||||
    "dayjs": "^1.10.7",
 | 
			
		||||
    "echarts": "^5.2.1",
 | 
			
		||||
    "element-plus": "1.1.0-beta.24",
 | 
			
		||||
    "element-plus": "1.2.0-beta.1",
 | 
			
		||||
    "element-resize-detector": "^1.2.3",
 | 
			
		||||
    "font-awesome": "^4.7.0",
 | 
			
		||||
    "lodash-es": "^4.17.21",
 | 
			
		||||
 | 
			
		||||
@ -57,12 +57,13 @@ function resolvePath(routePath) {
 | 
			
		||||
      :class="{ 'submenu-title-noDropdown': !isNest }"
 | 
			
		||||
      style="display: flex; align-items: center"
 | 
			
		||||
    >
 | 
			
		||||
      <i
 | 
			
		||||
        v-show="props.item.meta.icon"
 | 
			
		||||
        :class="
 | 
			
		||||
          onlyOneChild.meta.icon || (props.item.meta && props.item.meta.icon)
 | 
			
		||||
        "
 | 
			
		||||
      />
 | 
			
		||||
      <el-icon v-show="props.item.meta.icon">
 | 
			
		||||
        <component
 | 
			
		||||
          :is="
 | 
			
		||||
            onlyOneChild.meta.icon || (props.item.meta && props.item.meta.icon)
 | 
			
		||||
          "
 | 
			
		||||
        ></component>
 | 
			
		||||
      </el-icon>
 | 
			
		||||
      <template #title>
 | 
			
		||||
        <div style="display: flex; align-items: center">
 | 
			
		||||
          <span>{{ $t(onlyOneChild.meta.title) }}</span>
 | 
			
		||||
@ -83,7 +84,9 @@ function resolvePath(routePath) {
 | 
			
		||||
    popper-append-to-body
 | 
			
		||||
  >
 | 
			
		||||
    <template #title>
 | 
			
		||||
      <i v-show="props.item.meta.icon" :class="props.item.meta.icon"></i>
 | 
			
		||||
      <el-icon v-show="props.item.meta.icon">
 | 
			
		||||
        <component :is="props.item.meta && props.item.meta.icon"></component>
 | 
			
		||||
      </el-icon>
 | 
			
		||||
      <span>{{ $t(props.item.meta.title) }}</span>
 | 
			
		||||
      <Icon
 | 
			
		||||
        v-if="props.item.meta.extraIcon"
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,18 @@ import {
 | 
			
		||||
} from "element-plus";
 | 
			
		||||
 | 
			
		||||
// https://element-plus.org/zh-CN/component/icon.html
 | 
			
		||||
import { Check } from "@element-plus/icons";
 | 
			
		||||
import {
 | 
			
		||||
  Check,
 | 
			
		||||
  Menu,
 | 
			
		||||
  HomeFilled,
 | 
			
		||||
  SetUp,
 | 
			
		||||
  Edit,
 | 
			
		||||
  Setting,
 | 
			
		||||
  Lollipop,
 | 
			
		||||
  Link,
 | 
			
		||||
  Position,
 | 
			
		||||
  Histogram
 | 
			
		||||
} from "@element-plus/icons";
 | 
			
		||||
 | 
			
		||||
const components = [
 | 
			
		||||
  ElTag,
 | 
			
		||||
@ -75,7 +86,18 @@ const components = [
 | 
			
		||||
  ElDescriptions,
 | 
			
		||||
  ElDescriptionsItem,
 | 
			
		||||
  ElBacktop,
 | 
			
		||||
  Check
 | 
			
		||||
 | 
			
		||||
  // icon
 | 
			
		||||
  Check,
 | 
			
		||||
  Menu,
 | 
			
		||||
  HomeFilled,
 | 
			
		||||
  SetUp,
 | 
			
		||||
  Edit,
 | 
			
		||||
  Setting,
 | 
			
		||||
  Lollipop,
 | 
			
		||||
  Link,
 | 
			
		||||
  Position,
 | 
			
		||||
  Histogram
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
const plugins = [ElLoading];
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const componentsRouter = {
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  redirect: "/components/split-pane",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-menu",
 | 
			
		||||
    icon: "Menu",
 | 
			
		||||
    title: "message.hscomponents",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 4
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const editorRouter = {
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  redirect: "/editor/index",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-edit-outline",
 | 
			
		||||
    icon: "Edit",
 | 
			
		||||
    title: "message.hseditor",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 2
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const errorRouter = {
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  redirect: "/error/401",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-position",
 | 
			
		||||
    icon: "Position",
 | 
			
		||||
    title: "message.hserror",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 7
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@ const externalLink = {
 | 
			
		||||
  name: "external",
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-link",
 | 
			
		||||
    icon: "Link",
 | 
			
		||||
    title: "message.externalLink",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 190
 | 
			
		||||
@ -14,7 +14,6 @@ const externalLink = {
 | 
			
		||||
    {
 | 
			
		||||
      path: "https://github.com/xiaoxian521/vue-pure-admin",
 | 
			
		||||
      meta: {
 | 
			
		||||
        icon: "el-icon-link",
 | 
			
		||||
        title: "message.externalLink",
 | 
			
		||||
        showLink: true,
 | 
			
		||||
        rank: 191
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const flowChartRouter = {
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  redirect: "/flowChart/index",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-set-up",
 | 
			
		||||
    icon: "SetUp",
 | 
			
		||||
    title: "message.hsflowChart",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 1
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const homeRouter = {
 | 
			
		||||
  component: Layout,
 | 
			
		||||
  redirect: "/welcome",
 | 
			
		||||
  meta: {
 | 
			
		||||
    icon: "el-icon-s-home",
 | 
			
		||||
    icon: "HomeFilled",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 0
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,7 @@ const nestedRouter = {
 | 
			
		||||
  name: "Nested",
 | 
			
		||||
  meta: {
 | 
			
		||||
    title: "message.hsmenus",
 | 
			
		||||
    icon: "el-icon-s-data",
 | 
			
		||||
    icon: "Histogram",
 | 
			
		||||
    showLink: true,
 | 
			
		||||
    rank: 5
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ const remainingRouter = [
 | 
			
		||||
    name: "redirect",
 | 
			
		||||
    component: Layout,
 | 
			
		||||
    meta: {
 | 
			
		||||
      icon: "el-icon-s-home",
 | 
			
		||||
      icon: "HomeFilled",
 | 
			
		||||
      title: "message.hshome",
 | 
			
		||||
      showLink: false,
 | 
			
		||||
      rank: 104
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,10 @@
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .el-sub-menu__icon-arrow {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .main-container {
 | 
			
		||||
    height: 100vh;
 | 
			
		||||
    min-height: 100%;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user