Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
57615038
提交
57615038
authored
2月 13, 2021
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update layout
上级
b335e751
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
22 行增加
和
37 行删除
+22
-37
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
AppLocalePicker.vue
src/components/Application/src/AppLocalePicker.vue
+1
-0
index.vue
src/layouts/default/feature/index.vue
+1
-4
index.less
src/layouts/default/header/index.less
+8
-7
index.vue
src/layouts/default/header/index.vue
+11
-3
index.vue
src/layouts/default/setting/index.vue
+0
-23
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
57615038
...
...
@@ -9,6 +9,7 @@
### ⚡ Performance Improvements
-
调整获取用户信息接口返回值为数组格式
-
将 error-log 列表固定为系统路由
### 🐛 Bug Fixes
...
...
src/components/Application/src/AppLocalePicker.vue
浏览文件 @
57615038
...
...
@@ -4,6 +4,7 @@
-->
<
template
>
<Dropdown
placement=
"bottomCenter"
:trigger=
"['click']"
:dropMenuList=
"localeList"
:selectedKeys=
"selectedKeys"
...
...
src/layouts/default/feature/index.vue
浏览文件 @
57615038
<
template
>
<LayoutLockPage
/>
<BackTop
v-if=
"getUseOpenBackTop"
:target=
"getTarget"
/>
<SettingDrawer
v-if=
"getShowSettingButton"
/>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
;
...
...
@@ -14,15 +13,13 @@
components
:
{
BackTop
,
LayoutLockPage
:
createAsyncComponent
(()
=>
import
(
'/@/views/sys/lock/index.vue'
)),
SettingDrawer
:
createAsyncComponent
(()
=>
import
(
'/@/layouts/default/setting/index.vue'
)),
},
setup
()
{
const
{
getUseOpenBackTop
,
getShowSettingButton
}
=
useRootSetting
();
const
{
getUseOpenBackTop
}
=
useRootSetting
();
return
{
getTarget
:
()
=>
document
.
body
,
getUseOpenBackTop
,
getShowSettingButton
,
};
},
});
...
...
src/layouts/default/header/index.less
浏览文件 @
57615038
@header-trigger-prefix-cls: ~'@{namespace}-layout-header-trigger';
@header-prefix-cls: ~'@{namespace}-layout-header';
@locale-prefix-cls: ~'@{namespace}-app-locale-picker';
@breadcrumb-prefix-cls: ~'@{namespace}-layout-breadcrumb';
@logo-prefix-cls: ~'@{namespace}-app-logo';
...
...
@@ -104,7 +103,7 @@
&-action {
display: flex;
min-width: 180px;
padding-right: 12px;
//
padding-right: 12px;
align-items: center;
&__item {
...
...
@@ -146,13 +145,15 @@
.@{header-prefix-cls}-action {
&__item {
&:hover {
background: @header-light-bg-hover-color;
color: @text-color-base;
.app-iconify {
padding: 0 10px;
font-size: 16px !important;
}
.@{locale-prefix-cls} {
padding: 0 6px;
color: rgba(0, 0, 0, 0.65);
&:hover {
background: @header-light-bg-hover-color;
}
}
...
...
src/layouts/default/header/index.vue
浏览文件 @
57615038
...
...
@@ -41,14 +41,16 @@
<FullScreen
v-if=
"getShowFullScreen"
:class=
"`$
{prefixCls}-action__item fullscreen-item`" />
<UserDropDown
:theme=
"getHeaderTheme"
/>
<AppLocalePicker
v-if=
"getShowLocale"
:reload=
"true"
:showText=
"false"
:class=
"`$
{prefixCls}-action__item`"
/>
<UserDropDown
:theme=
"getHeaderTheme"
/>
<SettingDrawer
v-if=
"getShowSettingButton"
:class=
"`$
{prefixCls}-action__item`" />
</div>
</Header>
</
template
>
...
...
@@ -76,6 +78,8 @@
import
{
useAppInject
}
from
'/@/hooks/web/useAppInject'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
createAsyncComponent
}
from
'/@/utils/factory/createAsyncComponent'
;
export
default
defineComponent
({
name
:
'LayoutHeader'
,
components
:
{
...
...
@@ -90,6 +94,9 @@
Notify
,
AppSearch
,
ErrorAction
,
SettingDrawer
:
createAsyncComponent
(()
=>
import
(
'/@/layouts/default/setting/index.vue'
),
{
loading
:
true
,
}),
},
props
:
{
fixed
:
propTypes
.
bool
,
...
...
@@ -105,7 +112,7 @@
getIsMixSidebar
,
}
=
useMenuSetting
();
const
{
getShowLocale
}
=
useLocaleSetting
();
const
{
getUseErrorHandle
}
=
useRootSetting
();
const
{
getUseErrorHandle
,
getShowSettingButton
}
=
useRootSetting
();
const
{
getHeaderTheme
,
...
...
@@ -167,6 +174,7 @@
getUseErrorHandle
,
getLogoWidth
,
getIsMixSidebar
,
getShowSettingButton
,
};
},
});
...
...
src/layouts/default/setting/index.vue
浏览文件 @
57615038
...
...
@@ -27,26 +27,3 @@
},
});
</
script
>
<
style
lang=
"less"
>
@prefix-cls
:
~
'@{namespace}-setting-button'
;
.@
{
prefix-cls
}
{
position
:
absolute
;
top
:
45%
;
right
:
0
;
z-index
:
10
;
display
:
flex
;
padding
:
10px
;
color
:
@
white
;
cursor
:
pointer
;
background
:
@
primary-color
;
border-radius
:
6px
0
0
6px
;
justify-content
:
center
;
align-items
:
center
;
svg
{
width
:
1em
;
height
:
1em
;
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论