Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
90d7de51
提交
90d7de51
authored
3月 04, 2023
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 优化菜单 tag 配置、初始菜单路由主题
上级
eb110a42
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
16 行增加
和
8 行删除
+16
-8
SimpleMenuTag.vue
src/components/SimpleMenu/src/SimpleMenuTag.vue
+3
-2
tools.ts
src/router/routes/modules/demo/tools.ts
+1
-0
types.ts
src/router/types.ts
+3
-2
projectSetting.ts
src/settings/projectSetting.ts
+2
-2
vue-router.d.ts
types/vue-router.d.ts
+7
-2
没有找到文件。
src/components/SimpleMenu/src/SimpleMenuTag.vue
浏览文件 @
90d7de51
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
:dot=
"!getContent"
:dot=
"!getContent"
:count=
"getContent"
:count=
"getContent"
:number-style=
"
{
:number-style=
"
{
color: 'f8f8f8',
lineHeight: '18px',
lineHeight: '18px',
boxShadow: `0 0 0 1px #979797`,
boxShadow: `0 0 0 2px #fff`,
color: item.tag?.color ?? 'f8f8f8',
backgroundColor: item.tag?.background ?? '#ff4d4f',
}"
}"
/>
/>
</
template
>
</
template
>
...
...
src/router/routes/modules/demo/tools.ts
浏览文件 @
90d7de51
...
@@ -76,6 +76,7 @@ const tools: AppRouteModule = {
...
@@ -76,6 +76,7 @@ const tools: AppRouteModule = {
component
:
()
=>
import
(
'/@/views/demo/tools/online/form/index.vue'
),
component
:
()
=>
import
(
'/@/views/demo/tools/online/form/index.vue'
),
tag
:
{
tag
:
{
content
:
'开发中'
,
content
:
'开发中'
,
background
:
'#f50'
,
},
},
},
},
{
{
...
...
src/router/types.ts
浏览文件 @
90d7de51
...
@@ -21,9 +21,10 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
...
@@ -21,9 +21,10 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
}
}
export
interface
MenuTag
{
export
interface
MenuTag
{
type
?:
'default'
|
'warning'
|
'error'
|
'success'
|
'processing'
content
?:
string
dot
?:
boolean
dot
?:
boolean
content
?:
string
color
?:
string
background
?:
string
}
}
export
interface
Menu
{
export
interface
Menu
{
...
...
src/settings/projectSetting.ts
浏览文件 @
90d7de51
...
@@ -79,7 +79,7 @@ const setting: ProjectConfig = {
...
@@ -79,7 +79,7 @@ const setting: ProjectConfig = {
// Menu configuration
// Menu configuration
menuSetting
:
{
menuSetting
:
{
// sidebar menu bg color
// sidebar menu bg color
bgColor
:
SIDE_BAR_BG_COLOR_LIST
[
3
],
bgColor
:
SIDE_BAR_BG_COLOR_LIST
[
0
],
// Whether to fix the left menu
// Whether to fix the left menu
fixed
:
true
,
fixed
:
true
,
// Menu collapse
// Menu collapse
...
@@ -100,7 +100,7 @@ const setting: ProjectConfig = {
...
@@ -100,7 +100,7 @@ const setting: ProjectConfig = {
// Menu mode
// Menu mode
mode
:
MenuModeEnum
.
INLINE
,
mode
:
MenuModeEnum
.
INLINE
,
// Menu type
// Menu type
type
:
MenuTypeEnum
.
MIX
,
type
:
MenuTypeEnum
.
SIDEBAR
,
// Menu theme
// Menu theme
theme
:
ThemeEnum
.
LIGHT
,
theme
:
ThemeEnum
.
LIGHT
,
// Split menu
// Split menu
...
...
types/vue-router.d.ts
浏览文件 @
90d7de51
...
@@ -49,9 +49,14 @@ declare module 'vue-router' {
...
@@ -49,9 +49,14 @@ declare module 'vue-router' {
autoFullScreen
?:
boolean
autoFullScreen
?:
boolean
// tag
// tag
tag
?:
{
tag
?:
{
type
?:
'primary'
|
'error'
|
'warn'
|
'success'
// 是否以小圆点显示
content
?:
string
dot
?:
boolean
dot
?:
boolean
// tag 文本
content
?:
string
// tag 颜色
color
?:
string
// tag 背景色
background
?:
string
}
}
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论