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