Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
6c5f1349
提交
6c5f1349
编写于
11月 05, 2022
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
32a9de83
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
36 行增加
和
19 行删除
+36
-19
app-login-button.vue
...ayout-element/login/app-login-button/app-login-button.vue
+4
-0
app-scroll-container.vue
...t/structure/app-scroll-container/app-scroll-container.vue
+28
-19
app-simpleflex-container.vue
...ure/app-simpleflex-container/app-simpleflex-container.vue
+1
-0
app-standard-container.vue
...ructure/app-standard-container/app-standard-container.vue
+1
-0
app-tab-page.vue
...ts/layout-element/structure/app-tab-page/app-tab-page.vue
+1
-0
app-tab-panel.vue
.../layout-element/structure/app-tab-panel/app-tab-panel.vue
+1
-0
未找到文件。
src/components/layout-element/login/app-login-button/app-login-button.vue
浏览文件 @
6c5f1349
...
...
@@ -215,6 +215,8 @@ export default class AppLoginButton extends Vue {
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
)
{
return
layoutModel
.
iconAlign
||
'LEFT'
;
}
else
{
return
'LEFT'
;
}
}
...
...
@@ -227,6 +229,8 @@ export default class AppLoginButton extends Vue {
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
)
{
return
Object
.
is
(
layoutModel
.
buttonStyle
,
'INVERSE'
);
}
else
{
return
false
;
}
}
...
...
src/components/layout-element/structure/app-scroll-container/app-scroll-container.vue
浏览文件 @
6c5f1349
...
...
@@ -114,7 +114,7 @@ export default class AppScrollContainer extends Vue {
*/
get
curStyle
()
{
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
)
{
if
(
layoutModel
)
{
return
layoutModel
.
getElementStyle
();
}
}
...
...
@@ -124,7 +124,7 @@ export default class AppScrollContainer extends Vue {
*/
public
getItemPosStyle
(
name
:
string
)
{
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
)
{
if
(
layoutModel
)
{
return
layoutModel
.
getBorderLayoutStyle
();
}
}
...
...
@@ -137,28 +137,37 @@ export default class AppScrollContainer extends Vue {
public
initScrollContainer
()
{
let
minusHeight
=
''
;
let
minusWidth
:
string
=
''
;
this
.
containerModel
=
{};
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
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
)
{
Object
.
assign
(
style
,
{
width
:
Util
.
getBoxSize
(
'WIDTH'
,
widthMode
,
layoutWidth
).
width
});
if
(
layoutPos
&&
(
Object
.
is
(
layoutPos
,
'WEST'
)
||
Object
.
is
(
layoutPos
,
'EAST'
)))
{
minusWidth
+=
` -
${
Util
.
getBoxSize
(
'WIDTH'
,
widthMode
,
layoutWidth
).
width
}
`
;
}
let
childModelDetail
:
any
;
if
(
this
.
index
)
{
childModelDetail
=
this
.
layoutModelDetails
[
`
${
key
}
_
${
this
.
index
}
`
];
}
else
{
childModelDetail
=
this
.
layoutModelDetails
[
key
];
}
if
(
layoutHeight
)
{
Object
.
assign
(
style
,
{
height
:
Util
.
getBoxSize
(
'HEIGHT'
,
heightMode
,
layoutHeight
).
height
});
if
(
layoutPos
&&
(
Object
.
is
(
layoutPos
,
'NORTH'
)
||
Object
.
is
(
layoutPos
,
'SOUTH'
)))
{
minusHeight
+=
` -
${
Util
.
getBoxSize
(
'HEIGHT'
,
heightMode
,
layoutHeight
).
height
}
`
;
if
(
childModelDetail
)
{
const
{
name
,
layoutWidth
,
widthMode
,
layoutHeight
,
heightMode
,
layoutPos
}
=
childModelDetail
;
const
style
=
{};
if
(
layoutWidth
)
{
Object
.
assign
(
style
,
{
width
:
Util
.
getBoxSize
(
'WIDTH'
,
widthMode
,
layoutWidth
).
width
});
if
(
layoutPos
&&
(
Object
.
is
(
layoutPos
,
'WEST'
)
||
Object
.
is
(
layoutPos
,
'EAST'
)))
{
minusWidth
+=
` -
${
Util
.
getBoxSize
(
'WIDTH'
,
widthMode
,
layoutWidth
).
width
}
`
;
}
}
if
(
layoutHeight
)
{
Object
.
assign
(
style
,
{
height
:
Util
.
getBoxSize
(
'HEIGHT'
,
heightMode
,
layoutHeight
).
height
});
if
(
layoutPos
&&
(
Object
.
is
(
layoutPos
,
'NORTH'
)
||
Object
.
is
(
layoutPos
,
'SOUTH'
)))
{
minusHeight
+=
` -
${
Util
.
getBoxSize
(
'HEIGHT'
,
heightMode
,
layoutHeight
).
height
}
`
;
}
}
if
(
this
.
containerModel
.
hasOwnProperty
(
layoutPos
))
{
Object
.
assign
(
this
.
containerModel
[
layoutPos
],
{
style
});
this
.
containerModel
[
layoutPos
].
name
.
push
(
name
);
}
else
{
this
.
containerModel
[
layoutPos
]
=
{
style
,
name
:
[
name
]
};
}
}
if
(
this
.
containerModel
.
hasOwnProperty
(
layoutPos
))
{
Object
.
assign
(
this
.
containerModel
[
layoutPos
],
{
style
});
this
.
containerModel
[
layoutPos
].
name
.
push
(
name
);
}
else
{
this
.
containerModel
[
layoutPos
]
=
{
style
,
name
:
[
name
]
};
}
});
}
...
...
src/components/layout-element/structure/app-simpleflex-container/app-simpleflex-container.vue
浏览文件 @
6c5f1349
...
...
@@ -70,6 +70,7 @@ export default class AppSimpleFlexContainer extends Vue {
* @memberof SimpleFlexContainer
*/
public
initSimpleFlexContainer
()
{
this
.
containerModel
=
[];
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
curLayoutModel
&&
curLayoutModel
.
details
&&
curLayoutModel
.
details
.
length
>
0
)
{
curLayoutModel
.
details
.
forEach
((
key
:
string
)
=>
{
...
...
src/components/layout-element/structure/app-standard-container/app-standard-container.vue
浏览文件 @
6c5f1349
...
...
@@ -70,6 +70,7 @@ export default class AppStandardContainer extends Vue {
* @memberof AppStandardContainer
*/
public
initStandardContainer
()
{
this
.
containerModel
=
[];
const
curLayoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
curLayoutModel
&&
curLayoutModel
.
details
&&
curLayoutModel
.
details
.
length
>
0
)
{
curLayoutModel
.
details
.
forEach
((
key
:
string
)
=>
{
...
...
src/components/layout-element/structure/app-tab-page/app-tab-page.vue
浏览文件 @
6c5f1349
...
...
@@ -78,6 +78,7 @@ export default class AppTabPage extends Vue {
* @memberof AppTabPage
*/
public
initTabPage
()
{
this
.
containerModel
=
[];
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
&&
layoutModel
.
details
&&
layoutModel
.
details
.
length
>
0
)
{
this
.
currentLayoutModel
=
layoutModel
;
...
...
src/components/layout-element/structure/app-tab-panel/app-tab-panel.vue
浏览文件 @
6c5f1349
...
...
@@ -77,6 +77,7 @@ export default class AppTabPanel extends Vue {
* @memberof AppTabPanel
*/
public
initTabPanel
()
{
this
.
containerModel
=
[];
const
layoutModel
=
this
.
layoutModelDetails
[
this
.
itemName
];
if
(
layoutModel
&&
layoutModel
.
details
&&
layoutModel
.
details
.
length
>
0
)
{
layoutModel
.
details
.
forEach
((
key
:
string
)
=>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录