Commit 36734100e351cde46be74360304fd8bc5b5c6e77

Authored by vben
1 parent ba068ba1

chore: update menu

CHANGELOG.zh_CN.md
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 ### ✨ Features 3 ### ✨ Features
4 4
5 - 缓存可以配置是否加密 5 - 缓存可以配置是否加密
6 -- 多语言支持  
7 6
8 ### 🎫 Chores 7 ### 🎫 Chores
9 8
src/router/menus/modules/demo/comp.ts
@@ -4,9 +4,7 @@ const menu: MenuModule = { @@ -4,9 +4,7 @@ const menu: MenuModule = {
4 menu: { 4 menu: {
5 name: '组件', 5 name: '组件',
6 path: '/comp', 6 path: '/comp',
7 - tag: {  
8 - dot: true,  
9 - }, 7 +
10 children: [ 8 children: [
11 { 9 {
12 path: 'basic', 10 path: 'basic',
@@ -44,9 +42,6 @@ const menu: MenuModule = { @@ -44,9 +42,6 @@ const menu: MenuModule = {
44 { 42 {
45 path: 'upload', 43 path: 'upload',
46 name: '上传组件', 44 name: '上传组件',
47 - tag: {  
48 - content: 'new',  
49 - },  
50 }, 45 },
51 { 46 {
52 path: 'scroll', 47 path: 'scroll',
src/router/menus/modules/demo/feat.ts
@@ -4,9 +4,7 @@ const menu: MenuModule = { @@ -4,9 +4,7 @@ const menu: MenuModule = {
4 menu: { 4 menu: {
5 name: '功能', 5 name: '功能',
6 path: '/feat', 6 path: '/feat',
7 - tag: {  
8 - dot: true,  
9 - }, 7 +
10 children: [ 8 children: [
11 { 9 {
12 path: 'icon', 10 path: 'icon',
@@ -23,9 +21,6 @@ const menu: MenuModule = { @@ -23,9 +21,6 @@ const menu: MenuModule = {
23 { 21 {
24 path: 'download', 22 path: 'download',
25 name: '文件下载', 23 name: '文件下载',
26 - tag: {  
27 - content: 'new',  
28 - },  
29 }, 24 },
30 { 25 {
31 path: 'click-out-side', 26 path: 'click-out-side',
src/router/menus/modules/demo/form.ts
@@ -4,18 +4,11 @@ const menu: MenuModule = { @@ -4,18 +4,11 @@ const menu: MenuModule = {
4 menu: { 4 menu: {
5 path: '/form', 5 path: '/form',
6 name: 'Form', 6 name: 'Form',
7 - tag: {  
8 - type: 'warn',  
9 - dot: true,  
10 - }, 7 +
11 children: [ 8 children: [
12 { 9 {
13 path: 'basic', 10 path: 'basic',
14 name: '基础表单', 11 name: '基础表单',
15 - tag: {  
16 - type: 'warn',  
17 - dot: true,  
18 - },  
19 }, 12 },
20 { 13 {
21 path: 'useForm', 14 path: 'useForm',
@@ -32,26 +25,14 @@ const menu: MenuModule = { @@ -32,26 +25,14 @@ const menu: MenuModule = {
32 { 25 {
33 path: 'ruleForm', 26 path: 'ruleForm',
34 name: '表单校验', 27 name: '表单校验',
35 - tag: {  
36 - type: 'warn',  
37 - dot: true,  
38 - },  
39 }, 28 },
40 { 29 {
41 path: 'dynamicForm', 30 path: 'dynamicForm',
42 name: '动态表单', 31 name: '动态表单',
43 - tag: {  
44 - type: 'warn',  
45 - dot: true,  
46 - },  
47 }, 32 },
48 { 33 {
49 path: 'customerForm', 34 path: 'customerForm',
50 name: '自定义组件', 35 name: '自定义组件',
51 - tag: {  
52 - type: 'warn',  
53 - dot: true,  
54 - },  
55 }, 36 },
56 ], 37 ],
57 }, 38 },
src/router/menus/modules/demo/page.ts
@@ -11,9 +11,7 @@ const menu: MenuModule = { @@ -11,9 +11,7 @@ const menu: MenuModule = {
11 { 11 {
12 path: 'form', 12 path: 'form',
13 name: '表单页', 13 name: '表单页',
14 - tag: {  
15 - content: 'new',  
16 - }, 14 +
17 children: [ 15 children: [
18 { 16 {
19 path: 'basic', 17 path: 'basic',
@@ -32,9 +30,7 @@ const menu: MenuModule = { @@ -32,9 +30,7 @@ const menu: MenuModule = {
32 { 30 {
33 path: 'desc', 31 path: 'desc',
34 name: '详情页', 32 name: '详情页',
35 - tag: {  
36 - content: 'new',  
37 - }, 33 +
38 children: [ 34 children: [
39 { 35 {
40 path: 'basic', 36 path: 'basic',
@@ -49,9 +45,7 @@ const menu: MenuModule = { @@ -49,9 +45,7 @@ const menu: MenuModule = {
49 { 45 {
50 path: 'result', 46 path: 'result',
51 name: '结果页', 47 name: '结果页',
52 - tag: {  
53 - content: 'new',  
54 - }, 48 +
55 children: [ 49 children: [
56 { 50 {
57 path: 'success', 51 path: 'success',
@@ -92,9 +86,6 @@ const menu: MenuModule = { @@ -92,9 +86,6 @@ const menu: MenuModule = {
92 { 86 {
93 path: 'account', 87 path: 'account',
94 name: '个人页', 88 name: '个人页',
95 - tag: {  
96 - content: 'new',  
97 - },  
98 children: [ 89 children: [
99 { 90 {
100 path: 'center', 91 path: 'center',
src/router/menus/modules/demo/table.ts
@@ -4,9 +4,6 @@ const menu: MenuModule = { @@ -4,9 +4,6 @@ const menu: MenuModule = {
4 menu: { 4 menu: {
5 path: '/table', 5 path: '/table',
6 name: 'Table', 6 name: 'Table',
7 - tag: {  
8 - dot: true,  
9 - },  
10 children: [ 7 children: [
11 { 8 {
12 path: 'basic', 9 path: 'basic',
@@ -67,9 +64,6 @@ const menu: MenuModule = { @@ -67,9 +64,6 @@ const menu: MenuModule = {
67 { 64 {
68 path: 'editRowTable', 65 path: 'editRowTable',
69 name: '可编辑行', 66 name: '可编辑行',
70 - tag: {  
71 - content: 'new',  
72 - },  
73 }, 67 },
74 ], 68 ],
75 }, 69 },
src/views/demo/page/list/card/index.vue
1 <template> 1 <template>
2 <div :class="prefixCls"> 2 <div :class="prefixCls">
3 <a-page-header title="卡片列表" :ghost="false"> 3 <a-page-header title="卡片列表" :ghost="false">
4 - 基于Vue Next, TypeScript, Ant Design实现的一套完整的企业级后台管理系统。 4 + 基于Vue Next, TypeScript, Ant Design Vue实现的一套完整的企业级后台管理系统。
5 <div :class="`${prefixCls}__link`"> 5 <div :class="`${prefixCls}__link`">
6 <a><Icon icon="bx:bx-paper-plane" color="#1890ff" /><span>开始</span></a> 6 <a><Icon icon="bx:bx-paper-plane" color="#1890ff" /><span>开始</span></a>
7 <a><Icon icon="carbon:warning" color="#1890ff" /><span>简介</span></a> 7 <a><Icon icon="carbon:warning" color="#1890ff" /><span>简介</span></a>
@@ -10,36 +10,35 @@ @@ -10,36 +10,35 @@
10 </a-page-header> 10 </a-page-header>
11 11
12 <div :class="`${prefixCls}__content`"> 12 <div :class="`${prefixCls}__content`">
13 - <List> 13 + <a-list>
14 <a-row :gutter="16"> 14 <a-row :gutter="16">
15 <template v-for="(item, index) in list" :key="index"> 15 <template v-for="(item, index) in list" :key="index">
16 <a-col :span="6"> 16 <a-col :span="6">
17 - <ListItem>  
18 - <Card :hoverable="true" :class="`${prefixCls}__card`"> 17 + <a-list-item>
  18 + <a-card :hoverable="true" :class="`${prefixCls}__card`">
19 <div :class="`${prefixCls}__card-title`"> 19 <div :class="`${prefixCls}__card-title`">
20 <Icon class="icon" v-if="item.icon" :icon="item.icon" :color="item.color" /> 20 <Icon class="icon" v-if="item.icon" :icon="item.icon" :color="item.color" />
21 {{ item.title }} 21 {{ item.title }}
22 </div> 22 </div>
23 <div :class="`${prefixCls}__card-detail`"> 23 <div :class="`${prefixCls}__card-detail`">
24 - 基于Vue Next, TypeScript, Ant Design实现的一套完整的企业级后台管理系统 24 + 基于Vue Next, TypeScript, Ant Design Vue实现的一套完整的企业级后台管理系统
25 </div> 25 </div>
26 - </Card>  
27 - </ListItem> 26 + </a-card>
  27 + </a-list-item>
28 </a-col> 28 </a-col>
29 </template> 29 </template>
30 </a-row> 30 </a-row>
31 - </List> 31 + </a-list>
32 </div> 32 </div>
33 </div> 33 </div>
34 </template> 34 </template>
35 <script lang="ts"> 35 <script lang="ts">
36 import { defineComponent } from 'vue'; 36 import { defineComponent } from 'vue';
37 - import { List, Card } from 'ant-design-vue';  
38 import Icon from '/@/components/Icon/index'; 37 import Icon from '/@/components/Icon/index';
39 import { cardList } from './data'; 38 import { cardList } from './data';
40 39
41 export default defineComponent({ 40 export default defineComponent({
42 - components: { Icon, List, ListItem: List.Item, Card }, 41 + components: { Icon },
43 setup() { 42 setup() {
44 return { 43 return {
45 prefixCls: 'list-card', 44 prefixCls: 'list-card',