Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
d7128fba
提交
d7128fba
编写于
11月 08, 2022
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
000f688a
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
62 行增加
和
82 行删除
+62
-82
app-scroll-container.less
.../structure/app-scroll-container/app-scroll-container.less
+4
-0
app-scroll-container.vue
...t/structure/app-scroll-container/app-scroll-container.vue
+5
-15
app-simpleflex-container.less
...re/app-simpleflex-container/app-simpleflex-container.less
+0
-4
app-simpleflex-container.vue
...ure/app-simpleflex-container/app-simpleflex-container.vue
+1
-1
app-standard-container.less
...ucture/app-standard-container/app-standard-container.less
+3
-5
panel-container.ts
src/model/panel-detail/panel-container.ts
+1
-0
panel-detail.ts
src/model/panel-detail/panel-detail.ts
+42
-57
default.less
src/styles/default.less
+6
-0
未找到文件。
src/components/layout-element/structure/app-scroll-container/app-scroll-container.less
浏览文件 @
d7128fba
...
...
@@ -4,6 +4,8 @@
.app-scroll-container__header,
.app-scroll-container__bottom {
display: flex;
flex-direction: column;
width: 100%;
}
...
...
@@ -13,6 +15,8 @@
.app-scroll-container__left,
.app-scroll-container__center,
.app-scroll-container__right {
display: flex;
flex-direction: column;
height: 100%;
}
}
...
...
src/components/layout-element/structure/app-scroll-container/app-scroll-container.vue
浏览文件 @
d7128fba
...
...
@@ -2,33 +2,33 @@
<div
:class=
"curClassName"
:style=
"curStyle"
>
<div
v-if=
"containerModel.NORTH"
:style=
"containerModel.NORTH.style"
class=
"no-style overflow-auto app-scroll-container__header"
>
<div
v-for=
"name of containerModel.NORTH.name"
class=
"
scroll-item__pos"
:style=
"getItemPosStyle(name)
"
>
<div
v-for=
"name of containerModel.NORTH.name"
class=
"
container-item__pos
"
>
<slot
:name=
"name"
></slot>
</div>
</div>
<div
class=
"app-scroll-container__middle"
:style=
"middleContainerStyle"
>
<div
v-if=
"containerModel.WEST"
:style=
"containerModel.WEST.style"
class=
"no-style overflow-auto app-scroll-container__left"
>
<div
v-for=
"name of containerModel.WEST.name"
class=
"
scroll-item__pos"
:style=
"getItemPosStyle(name)
"
>
<div
v-for=
"name of containerModel.WEST.name"
class=
"
container-item__pos
"
>
<slot
:name=
"name"
></slot>
</div>
</div>
<div
v-if=
"containerModel.CENTER"
:style=
"containerModel.CENTER.style"
class=
"no-style overflow-auto app-scroll-container__center"
>
<div
v-for=
"name of containerModel.CENTER.name"
class=
"
scroll-item__pos"
:style=
"getItemPosStyle(name)
"
>
<div
v-for=
"name of containerModel.CENTER.name"
class=
"
container-item__pos
"
>
<slot
:name=
"name"
></slot>
</div>
</div>
<div
v-if=
"containerModel.EAST"
:style=
"containerModel.EAST.style"
class=
"no-style overflow-auto app-scroll-container__right"
>
<div
v-for=
"name of containerModel.EAST.name"
class=
"
scroll-item__pos"
:style=
"getItemPosStyle(name)
"
>
<div
v-for=
"name of containerModel.EAST.name"
class=
"
container-item__pos
"
>
<slot
:name=
"name"
></slot>
</div>
</div>
</div>
<div
v-if=
"containerModel.SOUTH"
:style=
"containerModel.SOUTH.style"
class=
"no-style overflow-auto app-scroll-container__bottom"
>
<div
v-for=
"name of containerModel.SOUTH.name"
class=
"
scroll-item__pos"
:style=
"getItemPosStyle(name)
"
>
<div
v-for=
"name of containerModel.SOUTH.name"
class=
"
container-item__pos
"
>
<slot
:name=
"name"
></slot>
</div>
</div>
...
...
@@ -119,16 +119,6 @@ export default class AppScrollContainer extends Vue {
}
}
/**
* 获取项布局样式
*/
public
getItemPosStyle
(
name
:
string
)
{
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
)
{
return
layoutModel
.
getBorderLayoutStyle
();
}
}
/**
* 初始化滚动容器
*
...
...
src/components/layout-element/structure/app-simpleflex-container/app-simpleflex-container.less
浏览文件 @
d7128fba
...
...
@@ -2,8 +2,4 @@
width: 100%;
height: 100%;
display: flex;
.simpleflex-item__pos{
height: 100%;
width: 100%;
}
}
\ No newline at end of file
src/components/layout-element/structure/app-simpleflex-container/app-simpleflex-container.vue
浏览文件 @
d7128fba
<
template
>
<div
:class=
"curClassName"
:style=
"curStyle"
>
<template
v-if=
"containerModel.length > 0"
>
<div
v-for=
"name of containerModel"
class=
"
simpleflex
-item__pos"
:style=
"getItemPosStyle(name)"
>
<div
v-for=
"name of containerModel"
class=
"
container
-item__pos"
:style=
"getItemPosStyle(name)"
>
<slot
:name=
"name"
></slot>
</div>
</
template
>
...
...
src/components/layout-element/structure/app-standard-container/app-standard-container.less
浏览文件 @
d7128fba
// 标准容器大小靠内容撑
.app-standard-container{
display: block;
.container-item__pos{
width: 100%;
height: 100%;
}
display: flex;
flex-direction: column;
flex-wrap: nowrap;
}
\ No newline at end of file
src/model/panel-detail/panel-container.ts
浏览文件 @
d7128fba
...
...
@@ -96,6 +96,7 @@ export class PanelContainerModel extends PanelDetailModel {
}
Object
.
assign
(
containerStyle
,
this
.
getBoxSpacingStyle
());
Object
.
assign
(
containerStyle
,
this
.
getSpecificStyle
());
Object
.
assign
(
containerStyle
,
this
.
getBoxSelfAlignStyle
());
return
containerStyle
;
}
...
...
src/model/panel-detail/panel-detail.ts
浏览文件 @
d7128fba
...
...
@@ -318,6 +318,7 @@ export class PanelDetailModel {
Object
.
assign
(
elementStyle
,
this
.
getBoxSizeStyle
());
Object
.
assign
(
elementStyle
,
this
.
getBoxSpacingStyle
());
Object
.
assign
(
elementStyle
,
this
.
getBoxContentStyle
());
Object
.
assign
(
elementStyle
,
this
.
getBoxSelfAlignStyle
());
return
elementStyle
;
}
...
...
@@ -387,54 +388,7 @@ export class PanelDetailModel {
}
/**
* 获取盒子内容样式(元素,包含内容换行模式,内容水平对齐,内容垂直对齐)
*
* @memberof PanelDetailModel
*/
protected
getBoxContentStyle
()
{
const
boxStyle
=
{};
return
boxStyle
;
}
/**
* 获取盒子边框样式(元素)
*
* @memberof PanelDetailModel
*/
protected
getBoxBorderStyle
()
{
const
boxStyle
=
{};
return
boxStyle
;
}
/**
* 获取通用布局样式(SAMPLEFLEX/FLEX)(布局,包含约束内容区布局的样式,包含内容区的对齐方式)
*
* @return {*}
* @memberof PanelDetailModel
*/
public
getCommonLayoutStyle
()
{
const
layoutStyle
=
{};
Object
.
assign
(
layoutStyle
,
this
.
getBoxSelfAlignStyle
());
Object
.
assign
(
layoutStyle
,
this
.
getBoxLayOutStyle
());
return
layoutStyle
;
}
/**
* 获取边缘布局样式
*
* @memberof PanelDetailModel
*/
public
getBorderLayoutStyle
()
{
const
borderLayoutStyle
:
any
=
{
width
:
'100%'
,
height
:
'100%'
};
if
(
this
.
layoutHeight
)
{
Object
.
assign
(
borderLayoutStyle
,
Util
.
getBoxSize
(
"HEIGHT"
,
this
.
heightMode
,
this
.
layoutHeight
));
}
// TODO 合入样式代码
return
borderLayoutStyle
;
}
/**
* 获取自身对齐模式(布局)
* 获取自身对齐模式(元素)
*
* @memberof PanelDetailModel
*/
...
...
@@ -442,17 +396,16 @@ export class PanelDetailModel {
const
boxStyle
=
{};
// 自身对齐方式
if
(
this
.
vAlignSelf
||
this
.
hAlignSelf
)
{
Object
.
assign
(
boxStyle
,
{
'display'
:
'flex'
});
// 自身垂直对齐模式
switch
(
this
.
vAlignSelf
)
{
case
'TOP'
:
Object
.
assign
(
boxStyle
,
{
'align-items'
:
'flex-start'
});
// 默认样式
break
;
case
'MIDDLE'
:
Object
.
assign
(
boxStyle
,
{
'
align-items'
:
'center
'
});
Object
.
assign
(
boxStyle
,
{
'
margin'
:
'auto 0px
'
});
break
;
case
'BOTTOM'
:
Object
.
assign
(
boxStyle
,
{
'
align-items'
:
'flex-end
'
});
Object
.
assign
(
boxStyle
,
{
'
margin-top'
:
'auto
'
});
break
;
default
:
break
;
...
...
@@ -460,16 +413,16 @@ export class PanelDetailModel {
// 自身水平对齐模式
switch
(
this
.
hAlignSelf
)
{
case
'LEFT'
:
Object
.
assign
(
boxStyle
,
{
'
justify-content
'
:
'flex-start'
});
Object
.
assign
(
boxStyle
,
{
'
align-self
'
:
'flex-start'
});
break
;
case
'CENTER'
:
Object
.
assign
(
boxStyle
,
{
'
justify-content
'
:
'center'
});
Object
.
assign
(
boxStyle
,
{
'
align-self
'
:
'center'
});
break
;
case
'RIGHT'
:
Object
.
assign
(
boxStyle
,
{
'
justify-content
'
:
'flex-end'
});
Object
.
assign
(
boxStyle
,
{
'
align-self
'
:
'flex-end'
});
break
;
case
'JUSTIFY'
:
Object
.
assign
(
boxStyle
,
{
'justify-content'
:
'space-between'
});
// 默认样式
break
;
default
:
break
;
...
...
@@ -478,6 +431,38 @@ export class PanelDetailModel {
return
boxStyle
;
}
/**
* 获取盒子内容样式(元素,包含内容换行模式,内容水平对齐,内容垂直对齐)
*
* @memberof PanelDetailModel
*/
protected
getBoxContentStyle
()
{
const
boxStyle
=
{};
return
boxStyle
;
}
/**
* 获取盒子边框样式(元素)
*
* @memberof PanelDetailModel
*/
protected
getBoxBorderStyle
()
{
const
boxStyle
=
{};
return
boxStyle
;
}
/**
* 获取通用布局样式(SAMPLEFLEX/FLEX)(布局,包含约束内容区布局的样式,包含内容区的对齐方式)
*
* @return {*}
* @memberof PanelDetailModel
*/
public
getCommonLayoutStyle
()
{
const
layoutStyle
=
{};
Object
.
assign
(
layoutStyle
,
this
.
getBoxLayOutStyle
());
return
layoutStyle
;
}
/**
* 获取盒子布局样式(布局)
*
...
...
@@ -487,7 +472,7 @@ export class PanelDetailModel {
const
boxStyle
=
{};
// 识别FLEX
if
(
this
.
layout
==
'FLEX'
)
{
Object
.
assign
(
boxStyle
,
{
'
display'
:
'flex'
,
'
flex-grow'
:
this
.
flexGrow
?
this
.
flexGrow
:
0
});
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
this
.
flexGrow
?
this
.
flexGrow
:
0
});
}
// 识别SIMPLEFLEX
if
(
this
.
layout
==
'SIMPLEFLEX'
)
{
...
...
src/styles/default.less
浏览文件 @
d7128fba
...
...
@@ -293,6 +293,12 @@
.app-view-layout{
width: 100%;
height: 100%;
.container-item__pos{
display: flex;
flex-direction: column;
flex-wrap: nowrap;
flex-grow: 1;
}
}
// 看板视图,卡片模式
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录