Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
3993c1e7
提交
3993c1e7
编写于
11月 01, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
f96af98b
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
137 行增加
和
11 行删除
+137
-11
app-register.ts
app_Web/src/app-register.ts
+2
-0
app-scroll-container.vue
...t-container/app-scroll-container/app-scroll-container.vue
+11
-4
app-simpleflex-container.less
...er/app-simpleflex-container/app-simpleflex-container.less
+6
-0
app-simpleflex-container.vue
...ner/app-simpleflex-container/app-simpleflex-container.vue
+102
-0
panel-detail.ts
app_Web/src/model/panel-detail/panel-detail.ts
+15
-6
app-login-view.less
app_Web/src/pages/ungroup/app-login-view/app-login-view.less
+1
-1
未找到文件。
app_Web/src/app-register.ts
浏览文件 @
3993c1e7
...
...
@@ -110,6 +110,7 @@ import Loadding from './directive/loadding/loadding';
import
AppColorSpan
from
'./components/app-color-span/app-color-span.vue'
;
import
AppColorPicker
from
'./components/app-color-picker/app-color-picker.vue'
;
import
AppScrollContainer
from
'./components/layout-container/app-scroll-container/app-scroll-container.vue'
;
import
AppSimpleFlexContainer
from
'./components/layout-container/app-simpleflex-container/app-simpleflex-container.vue'
;
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
...
@@ -235,5 +236,6 @@ export const AppComponents = {
v
.
component
(
'app-color-span'
,
AppColorSpan
);
v
.
component
(
'app-color-picker'
,
AppColorPicker
);
v
.
component
(
'app-scroll-container'
,
AppScrollContainer
);
v
.
component
(
'app-simpleflex-container'
,
AppSimpleFlexContainer
);
},
};
\ No newline at end of file
app_Web/src/components/layout-container/app-scroll-container/app-scroll-container.vue
浏览文件 @
3993c1e7
<
template
>
<div
class=
"app-scroll-container
"
>
<div
:class=
"curClassName
"
>
<div
v-if=
"containerModel.NORTH"
:style=
"containerModel.NORTH.style"
class=
"no-style overflow-auto app-scroll-container__header"
>
<template
v-for=
"name of containerModel.NORTH.name"
>
...
...
@@ -71,6 +71,13 @@ export default class AppScrollContainer extends Vue {
*/
public
middleContainerStyle
:
any
=
{};
/**
* 当前容器样式类
*/
get
curClassName
(){
return
`app-scroll-container
${
this
.
name
}
`
;
}
/**
* 组件初始化
*
...
...
@@ -88,9 +95,9 @@ export default class AppScrollContainer extends Vue {
public
initScrollContainer
()
{
let
minusHeight
=
''
;
let
minusWidth
:
string
=
''
;
const
curLayoutModel
Details
=
this
.
layoutModelDetails
[
this
.
name
];
if
(
curLayoutModel
Details
&&
curLayoutModelDetails
.
details
&&
curLayoutModelDetails
.
details
.
length
>
0
)
{
curLayoutModel
Details
.
details
.
forEach
((
key
:
string
)
=>
{
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
name
];
if
(
curLayoutModel
&&
curLayoutModel
.
details
&&
curLayoutModel
.
details
.
length
>
0
)
{
curLayoutModel
.
details
.
forEach
((
key
:
string
)
=>
{
const
{
name
,
layoutWidth
,
widthMode
,
layoutHeight
,
heightMode
,
layoutPos
}
=
this
.
layoutModelDetails
[
key
];
const
style
=
{};
if
(
layoutWidth
)
{
...
...
app_Web/src/components/layout-container/app-simpleflex-container/app-simpleflex-container.less
0 → 100644
浏览文件 @
3993c1e7
.app-simpleflex-container{
width: 100%;
height: 100%;
display: flex;
border: 1px solid blue;
}
\ No newline at end of file
app_Web/src/components/layout-container/app-simpleflex-container/app-simpleflex-container.vue
0 → 100644
浏览文件 @
3993c1e7
<
template
>
<div
:class=
"curClassName"
:style=
"curStyleContent"
>
<template
v-if=
"containerModel.length > 0"
>
<template
v-for=
"name of containerModel"
>
<slot
:name=
"name"
></slot>
</
template
>
</template>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
'vue-property-decorator'
;
@
Component
({})
export
default
class
AppSimpleFlexContainer
extends
Vue
{
/**
* 名称
*
* @type {string}
* @memberof AppSimpleFlexContainer
*/
@
Prop
()
public
name
!
:
string
;
/**
* 布局模型详情
*
* @type {string}
* @memberof AppSimpleFlexContainer
*/
@
Prop
()
public
layoutModelDetails
:
any
;
/**
* 插槽对象
*
* @memberof AppSimpleFlexContainer
*/
public
containerModel
:
any
[]
=
[];
/**
* 组件初始化
*
* @memberof SimpleFlexContainer
*/
public
created
()
{
this
.
initSimpleFlexContainer
();
}
/**
* 初始化SIMPLEFLEX容器
*
* @memberof SimpleFlexContainer
*/
public
initSimpleFlexContainer
()
{
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
name
];
if
(
curLayoutModel
&&
curLayoutModel
.
details
&&
curLayoutModel
.
details
.
length
>
0
)
{
curLayoutModel
.
details
.
forEach
((
key
:
string
)
=>
{
this
.
containerModel
.
push
(
key
);
})
}
}
/**
* 当前容器样式类
*/
get
curClassName
()
{
return
`app-simpleflex-container
${
this
.
name
}
`
;
}
/**
* 当前容器样式
*/
get
curStyleContent
()
{
let
boxLayoutPosStyle
=
""
;
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
name
];
if
(
curLayoutModel
)
{
const
{
layout
,
flexGrow
}
=
curLayoutModel
;
// 识别FLEX占位属性
if
(
layout
&&
layout
==
'FLEX'
)
{
boxLayoutPosStyle
+=
`'flex-grow':
${
flexGrow
?
flexGrow
:
0
}
;`
;
}
// 识别SIMPLEFLEX占位属性
if
(
layout
==
'SIMPLEFLEX'
)
{
if
(
flexGrow
)
{
boxLayoutPosStyle
+=
`width:
${(
100
/
12
)
*
flexGrow
}
%;height: 100%;`
;
}
else
{
// 简单FLEX布局自适应
boxLayoutPosStyle
+=
`flex-grow:1;min-width:
${(
100
/
12
)}
%;height:100%;`
;
}
}
// 识别边缘布局占位属性
if
(
layout
==
'BORDER'
)
{
boxLayoutPosStyle
+=
`display:flex;`
;
}
}
return
boxLayoutPosStyle
;
}
}
</
script
>
<
style
lang=
'less'
>
@import 'app-simpleflex-container.less';
</
style
>
\ No newline at end of file
app_Web/src/model/panel-detail/panel-detail.ts
浏览文件 @
3993c1e7
...
...
@@ -4,7 +4,7 @@
* @export
* @class PanelDetailModel
*/
export
class
PanelDetailModel
{
export
class
PanelDetailModel
{
/**
* 成员标题
...
...
@@ -142,6 +142,14 @@
*/
public
vAlignSelf
:
string
=
''
;
/**
* Flex延伸
*
* @type {number}
* @memberof PanelDetailModel
*/
public
flexGrow
:
number
=
0
;
/**
* Creates an instance of PanelDetailModel.
* PanelDetailModel 实例
...
...
@@ -150,11 +158,11 @@
* @memberof PanelDetailModel
*/
constructor
(
opts
:
any
=
{})
{
this
.
caption
=
!
Object
.
is
(
opts
.
caption
,
''
)
?
opts
.
caption
:
''
;
this
.
itemType
=
!
Object
.
is
(
opts
.
itemType
,
''
)
?
opts
.
itemType
:
''
;
this
.
panel
=
opts
.
panel
?
opts
.
panel
:
{}
;
this
.
name
=
!
Object
.
is
(
opts
.
name
,
''
)
?
opts
.
name
:
''
;
this
.
visible
=
opts
.
visible
?
true
:
false
;
this
.
caption
=
opts
.
caption
;
this
.
itemType
=
opts
.
itemType
;
this
.
panel
=
opts
.
panel
;
this
.
name
=
opts
.
name
;
this
.
visible
=
opts
.
visible
;
this
.
layout
=
opts
.
layout
;
this
.
layoutPos
=
opts
.
layoutPos
;
this
.
layoutHeight
=
opts
.
layoutHeight
;
...
...
@@ -167,6 +175,7 @@
this
.
spacingTop
=
opts
.
spacingTop
;
this
.
hAlignSelf
=
opts
.
hAlignSelf
;
this
.
vAlignSelf
=
opts
.
vAlignSelf
;
this
.
flexGrow
=
opts
.
flexGrow
;
}
}
\ No newline at end of file
app_Web/src/pages/ungroup/app-login-view/app-login-view.less
浏览文件 @
3993c1e7
...
...
@@ -81,7 +81,7 @@
.app-login-view__footer {
display: block;
padding: 0 16px;
margin
: 48px 0 24px;
padding
: 48px 0 24px;
text-align: center;
a {
color: #fff;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录