Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
61dc240b
提交
61dc240b
编写于
1月 26, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 更新
上级
272ed9fb
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
98 行增加
和
77 行删除
+98
-77
App.vue
...core/src/main/resources/templ/r7/app_{{apps}}/src/App.vue
+3
-0
app-user.vue
.../templ/r7/app_{{apps}}/src/components/common/app-user.vue
+21
-64
ui-base.ts
.../templ/r7/app_{{apps}}/src/core/modules/common/ui-base.ts
+29
-0
app-user.scss
...r7/app_{{apps}}/src/style/components/common/app-user.scss
+22
-0
index.scss
...pl/r7/app_{{apps}}/src/style/components/common/index.scss
+2
-1
app-default-index-view-base-layout.scss
...components/layout/app-default-index-view-base-layout.scss
+12
-6
app-index-view-base-layout.scss
...c/style/components/layout/app-index-view-base-layout.scss
+4
-3
component.scss
...ources/templ/r7/app_{{apps}}/src/style/var/component.scss
+5
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/App.vue
浏览文件 @
61dc240b
...
...
@@ -17,4 +17,7 @@ onMounted(()=>{
height
:
100%
;
width
:
100%
;
}
.app-loading-x
{
display
:
none
;
}
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-user.vue
浏览文件 @
61dc240b
<
script
setup
lang=
"ts"
>
/**
*
*
* @param {*} name
* @param {*} value
* @param {*} bb
* @memberof IbizUser
*/
import
{
toggleFullScreen
}
from
'@core'
;
import
{
FullscreenOutlined
,
FullscreenExitOutlined
,
LockOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons-vue'
;
import
{
Ref
}
from
'vue'
;
let
isFullScreen
:
Ref
<
boolean
>
=
ref
(
false
);
const
dropdownClick
=
(
value
:
any
)
=>
{
const
{
key
}
=
value
;
// todo
switch
(
key
)
{
case
'fullScreen'
:
isFullScreen
.
value
=
toggleFullScreen
();
break
;
case
'screenLock'
:
break
;
...
...
@@ -22,12 +21,11 @@ const dropdownClick = (value: any) => {
break
;
case
'logout'
:
break
;
default
:
break
;
}
};
/**
* 用户数据
*
...
...
@@ -43,68 +41,27 @@ onMounted(() => {
// initUser todo
});
/**
* 用户下拉列表
*
* @memberof IbizUser
*/
const
dropdownList
=
[
{
tag
:
'fullScreen'
,
label
:
'应用全屏'
,
},
{
tag
:
'screenLock'
,
label
:
'应用屏锁'
,
},
{
tag
:
'changeTheme'
,
label
:
'修改主题'
,
},
{
tag
:
'updatePwd'
,
label
:
'修改密码'
,
},
{
tag
:
'logout'
,
label
:
'退出登录'
,
},
];
</
script
>
<
template
>
<div
class=
"app-user"
>
<span
class=
"user-name"
>
{{
user
.
name
}}
</span>
<a-dropdown>
<div
class=
"user-info"
>
<span
class=
"user-name"
>
{{
user
.
name
}}
</span>
<a-avatar
size=
"large"
:src=
"user.avatar"
@
click
.
prevent
>
<template
#
icon
><AppIconText
iconClass=
"fa fa-user-o"
></AppIconText></
template
>
</a-avatar>
</div>
<
template
#
overlay
>
<a-menu
@
click=
"dropdownClick"
>
<a-menu-item
:value=
"item.tag"
v-for=
"item in dropdownList"
:key=
"item.tag"
>
{{
item
.
label
}}
<a-menu-item
value=
"fullScreen"
key=
"fullScreen"
>
<fullscreen-outlined
v-show=
"!isFullScreen"
class=
"app-user-icon"
/>
<fullscreen-exit-outlined
v-show=
"isFullScreen"
class=
"app-user-icon"
/>
应用全屏
</a-menu-item>
<a-menu-item
value=
"screenLock"
key=
"screenLock"
><lock-outlined
class=
"app-user-icon"
/>
应用屏锁
</a-menu-item>
<a-menu-item
value=
"logout"
key=
"logout"
><poweroff-outlined
class=
"app-user-icon"
/>
退出登录
</a-menu-item>
</a-menu>
</
template
>
</a-dropdown>
</div>
</template>
<
style
lang=
'scss'
>
.app-user
{
.user-name
{
padding-right
:
10px
;
}
.app-icon-text
{
text-align
:
center
;
width
:
100%
;
height
:
100%
;
i
{
width
:
100%
;
text-align
:
center
;
font-size
:
20px
;
line-height
:
16px
;
}
}
}
</
style
>
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/common/ui-base.ts
浏览文件 @
61dc240b
...
...
@@ -92,4 +92,33 @@ export class UIBase {
);
return
{
context
:
_context
,
viewParams
:
_viewParams
};
}
}
/**
* @description 切换应用全屏
* @export
* @return {*} {boolean}
*/
export
function
toggleFullScreen
():
boolean
{
const
isFullscreen
=
(
document
as
any
).
isFullScreen
||
(
document
as
any
).
mozIsFullScreen
||
(
document
as
any
).
webkitIsFullScreen
;
if
(
isFullscreen
)
{
if
((
document
as
any
).
documentElement
.
requestFullScreen
)
{
(
document
as
any
).
exitFullScreen
();
}
else
if
((
document
as
any
).
documentElement
.
webkitRequestFullScreen
)
{
(
document
as
any
).
webkitCancelFullScreen
();
}
else
if
((
document
as
any
).
documentElement
.
mozRequestFullScreen
)
{
(
document
as
any
).
mozCancelFullScreen
();
}
return
false
;
}
else
{
if
((
document
as
any
).
documentElement
.
requestFullScreen
)
{
(
document
as
any
).
documentElement
.
requestFullScreen
();
}
else
if
((
document
as
any
).
documentElement
.
webkitRequestFullScreen
)
{
(
document
as
any
).
documentElement
.
webkitRequestFullScreen
();
}
else
if
((
document
as
any
).
documentElement
.
mozRequestFullScreen
)
{
(
document
as
any
).
documentElement
.
mozRequestFullScreen
();
}
return
true
;
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/common/app-user.scss
0 → 100644
浏览文件 @
61dc240b
.app-user
{
.user-info
{
cursor
:
pointer
;
.user-name
{
padding-right
:
10px
;
}
}
.app-icon-text
{
text-align
:
center
;
width
:
100%
;
height
:
100%
;
i
{
width
:
100%
;
text-align
:
center
;
font-size
:
20px
;
line-height
:
16px
;
}
}
}
.app-user-icon
{
margin-right
:
8px
;
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/common/index.scss
浏览文件 @
61dc240b
...
...
@@ -3,3 +3,4 @@
@use
'./icon-text.scss'
;
@use
'./app-quick-group.scss'
;
@use
'./app-menu-center.scss'
;
@use
'./app-user.scss'
;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/app-default-index-view-base-layout.scss
浏览文件 @
61dc240b
...
...
@@ -2,16 +2,22 @@
height
:
100%
;
width
:
100%
;
.index-view-header
{
display
:
flex
;
align-items
:
center
;
font-size
:
18px
;
.sys-title
{
width
:
180px
;
padding-left
:
12px
;
}
.trigger
:hover
{
color
:
var
(
--
app-color-primary
);
}
}
.center-menu-card
{
height
:
100%
;
overflow
:
auto
;
}
.index-view-header
{
font-size
:
18px
;
.trigger
:hover
{
color
:
#1890ff
;
}
.ant-layout-content
{
padding
:
12px
;
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/app-index-view-base-layout.scss
浏览文件 @
61dc240b
...
...
@@ -3,17 +3,18 @@
height
:
100%
;
.ant-layout-sider
{
overflow-y
:
auto
;
background-color
:
var
(
--
app-
view-layout-header
-bg-color
);
background-color
:
var
(
--
app-
index-view-layout-side
-bg-color
);
}
}
.app-index-view-layout__header
{
display
:
flex
;
padding
:
0
20px
;
background-color
:
var
(
--
app-view-layout-header-bg-color
);
color
:
var
(
--
app-index-view-layout-header-color
);
background-color
:
var
(
--
app-index-view-layout-header-bg-color
);
justify-content
:
space-between
;
}
.app-index-view-layout__body
{
background-color
:
var
(
--
app-
view-layout-header
-bg-color
);
background-color
:
var
(
--
app-
index-view-layout-body
-bg-color
);
}
.app-index-view-layout__footer
{
padding
:
0
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/var/component.scss
浏览文件 @
61dc240b
...
...
@@ -13,9 +13,11 @@
// layout 组件样式
.app-index-view-layout
{
--app-view-layout-header-bg-color
:
var
(
--
app-color-white
);
--app-view-layout-body-bg-color
:
var
(
--
app-color-white
);
--app-view-layout-footer-bg-color
:
var
(
--
app-color-white
);
--app-index-view-layout-header-color
:
var
(
--
app-color-white
);
--app-index-view-layout-header-bg-color
:
#0B3F80
;
--app-index-view-layout-side-bg-color
:
var
(
--
app-color-white
);
--app-index-view-layout-body-bg-color
:
#f6f6f6
;
--app-index-view-layout-footer-bg-color
:
var
(
--
app-color-white
);
}
.app-view-layout
{
--app-view-layout-padding
:
8px
12px
10px
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录