Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
6114a45e
提交
6114a45e
编写于
1月 19, 2022
作者:
zhangkang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 容器样式表和表单宽度支持
上级
0b956f51
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
15 行增加
和
9 行删除
+15
-9
form-druipart.hbs
...r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
+2
-2
form-group-panel.hbs
...@macro/front-end/widgets/form-detail/form-group-panel.hbs
+3
-0
form-iframe.hbs
...l/r7/@macro/front-end/widgets/form-detail/form-iframe.hbs
+1
-1
form-item.hbs
...mpl/r7/@macro/front-end/widgets/form-detail/form-item.hbs
+2
-2
form-page.hbs
...mpl/r7/@macro/front-end/widgets/form-detail/form-page.hbs
+1
-1
form-tabpage.hbs
.../r7/@macro/front-end/widgets/form-detail/form-tabpage.hbs
+1
-1
form-tabpanel.hbs
...r7/@macro/front-end/widgets/form-detail/form-tabpanel.hbs
+1
-1
app-form-item.vue
...l/r7/app_{{apps}}/src/components/render/app-form-item.vue
+4
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
浏览文件 @
6114a45e
{{#
eq
item
.
psLayoutPos
'FLEX'
}}
<div
style=
"flex-grow:
{{#if
item
.
psLayoutPos
.
grow
}}{{
item
.
psLayoutPos
.
grow
}}{{else}}
0
{{/if}}
;"
>
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
v-slot=
"druipartParams"
>
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
v-slot=
"druipartParams"
>
<
{{
item
.
psAppView
.
codeName
}}
:class
="['
app-view-layout--from-druipart
']"
:context=
"druipartParams.context"
...
...
@@ -15,7 +15,7 @@
{{else}}
<a-col
{{>
@macro
/
front-end
/
widgets
/
common
/
layout-pos
.
hbs
item
=
item
.
psLayoutPos
}}
>
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
v-slot=
"druipartParams"
>
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
v-slot=
"druipartParams"
>
<
{{
item
.
psAppView
.
codeName
}}
:class
="['
app-view-layout--from-druipart
']"
:context=
"druipartParams.context"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-group-panel.hbs
浏览文件 @
6114a45e
...
...
@@ -35,6 +35,9 @@
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
{{#if
item
.
psSysImage
}}
{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{else
if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-iframe.hbs
浏览文件 @
6114a45e
...
...
@@ -7,7 +7,7 @@
{{else}}
<a-col
{{>
@macro
/
front-end
/
widgets
/
common
/
layout-pos
.
hbs
item
=
item
.
psLayoutPos
}}
>
<div
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
class=
"app-form-iframe"
style=
"
{{#if
item
.
contentHeight
}}
height:
{{
item
.
contentHeight
}}
px;
{{/if}}{{#if
item
.
contentWidth
}}
width:
{{
item
.
contentWidth
}}
px
{{/if}}
"
>
<div
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
class=
"app-form-iframe
{{#if
item
.
psSysCss
}}{{
item
.
psSysCss
.
cssName
}}{{/if}}
"
style=
"
{{#if
item
.
contentHeight
}}
height:
{{
item
.
contentHeight
}}
px;
{{/if}}{{#if
item
.
contentWidth
}}
width:
{{
item
.
contentWidth
}}
px
{{/if}}
"
>
<iframe
src=
"
{{
item
.
iFrameUrl
}}
"
style=
"height: 100%;width: 100%;border: 0"
></iframe>
</div>
</a-col>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-item.hbs
浏览文件 @
6114a45e
{{>
@macro
/
front-end
/
editors
/
include-editor
.
hbs
}}
{{#
eq
item
.
psLayoutPos
'FLEX'
}}
<div
style=
"flex-grow:
{{#if
item
.
psLayoutPos
.
grow
}}{{
item
.
psLayoutPos
.
grow
}}{{else}}
0
{{/if}}
;"
>
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
label=
"
{{
item
.
caption
}}
"
>
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:labelWidth=
"
{{
item
.
labelWidth
}}
"
label=
"
{{
item
.
caption
}}
"
>
{{#if
item
.
psEditor
}}
{{>
(
lookup
.
'item.psEditor.editorType'
)
item
=
item
ctrlType
=
"form"
}}
{{/if}}
...
...
@@ -10,7 +10,7 @@
{{else}}
<a-col
{{>
@macro
/
front-end
/
widgets
/
common
/
layout-pos
.
hbs
item
=
item
.
psLayoutPos
}}
>
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:required=
"state.detailsModel.
{{
item
.
codeName
}}
.required"
label=
"
{{
item
.
caption
}}
"
>
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:labelWidth=
"
{{
item
.
labelWidth
}}
"
:required=
"state.detailsModel.
{{
item
.
codeName
}}
.required"
label=
"
{{
item
.
caption
}}
"
>
{{#if
item
.
psEditor
}}
{{>
(
lookup
.
'item.psEditor.editorType'
)
item
=
item
ctrlType
=
"form"
}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-page.hbs
浏览文件 @
6114a45e
<a-tab-pane
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
<a-tab-pane
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-tabpage.hbs
浏览文件 @
6114a45e
<a-tab-pane
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
<a-tab-pane
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-tabpanel.hbs
浏览文件 @
6114a45e
{{#
eq
item
.
psLayoutPos
'FLEX'
}}
<div
style=
"flex-grow:
{{#if
item
.
psLayoutPos
.
grow
}}{{
item
.
psLayoutPos
.
grow
}}{{else}}
0
{{/if}}
;"
>
<div
style=
"flex-grow:
{{#if
item
.
psLayoutPos
.
grow
}}{{
item
.
psLayoutPos
.
grow
}}{{else}}
0
{{/if}}
;"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
>
<a-tabs
class=
"app-form-page"
>
{{#
each
item
.
psDEFormPages
as
|
formPage
|
}}
{{>
(
lookup
.
'formPage.detailType'
)
item
=
formPage
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/render/app-form-item.vue
浏览文件 @
6114a45e
...
...
@@ -7,6 +7,7 @@ interface FormGroupProps {
label
:
string
;
required
:
boolean
;
rules
?:
any
;
labelWidth
:
number
;
}
interface
FormGroupEmit
{
(
name
:
'componentEvent'
,
value
:
IActionParam
):
void
;
...
...
@@ -38,11 +39,13 @@ const initRules = () => {
<a-form-item
:name=
"name"
:rules=
"itemRules"
:label=
"label"
:help=
"error"
:required=
"required"
:validateStatus=
"error ? 'error' : 'validating'"
>
<template
#
label
>
<label
:style=
"
{ width: labelWidth + 'px' }">\
{{
label
}}
</label>
</
template
>
<slot></slot>
</a-form-item>
</template>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录