Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
3749de6a
提交
3749de6a
编写于
1月 20, 2022
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
8958c657
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
71 行增加
和
29 行删除
+71
-29
form-button.hbs
...l/r7/@macro/front-end/widgets/form-detail/form-button.hbs
+18
-18
form-druipart.hbs
...r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
+2
-0
form-group-panel.hbs
...@macro/front-end/widgets/form-detail/form-group-panel.hbs
+9
-0
form-item.hbs
...mpl/r7/@macro/front-end/widgets/form-detail/form-item.hbs
+36
-6
form-rawitem.hbs
.../r7/@macro/front-end/widgets/form-detail/form-rawitem.hbs
+1
-1
app-form-group.vue
.../r7/app_{{apps}}/src/components/render/app-form-group.vue
+1
-1
app-form-item.vue
...l/r7/app_{{apps}}/src/components/render/app-form-item.vue
+4
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-button.hbs
浏览文件 @
3749de6a
...
...
@@ -3,16 +3,16 @@
<a-button
type=
"primary"
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
class=
"app-form-button
{{#if
item
.
psSysCss
}}{{
item
.
psSysCss
.
cssName
}}{{/if}}
"
class=
"app-form-button
{{#if
item
.
psSysCss
}}
{{
item
.
psSysCss
.
cssName
}}{{/if}}
"
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px;
{{/if}}
"
>
{{#if
item
.
psSysImage
}}
<template
#
icon
>
<AppIconText
{{#if
item
.
psSysImage
.
cssClass
}}
:iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
imagePath
}}
:imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
/>
</template>
{{/if}}
{{#if
item
.
showCaption
}}
{{
item
.
caption
}}
{{/if}}
{{#if
item
.
psSysImage
}}
<template
#
icon
>
<AppIconText
{{#if
item
.
psSysImage
.
cssClass
}}
:iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
imagePath
}}
:imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
/>
</template>
{{/if}}
{{#if
item
.
showCaption
}}
<span
{{#if
item
.
labelPSSysCss
}}
class=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
>
{{
item
.
caption
}}
</span>
{{/if}}
</a-button>
</div>
{{else}}
...
...
@@ -21,16 +21,16 @@
<a-button
type=
"primary"
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
class=
"app-form-button
{{#if
item
.
psSysCss
}}{{
item
.
psSysCss
.
cssName
}}{{/if}}
"
class=
"app-form-button
{{#if
item
.
psSysCss
}}
{{
item
.
psSysCss
.
cssName
}}{{/if}}
"
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px;
{{/if}}
"
>
{{#if
item
.
psSysImage
}}
<template
#
icon
>
<AppIconText
{{#if
item
.
psSysImage
.
cssClass
}}
:iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
imagePath
}}
:imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
/>
</template>
{{/if}}
{{#if
item
.
showCaption
}}
{{
item
.
caption
}}
{{/if}}
{{#if
item
.
psSysImage
}}
<template
#
icon
>
<AppIconText
{{#if
item
.
psSysImage
.
cssClass
}}
:iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
imagePath
}}
:imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
/>
</template>
{{/if}}
{{#if
item
.
showCaption
}}
<span
{{#if
item
.
labelPSSysCss
}}
class=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
>
{{
item
.
caption
}}
</span>
{{/if}}
</a-button>
</a-col>
{{/
eq
}}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
浏览文件 @
3749de6a
...
...
@@ -3,6 +3,7 @@
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
:context=
"context"
...
...
@@ -27,6 +28,7 @@
<AppFormDruipart
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
:context=
"context"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-group-panel.hbs
浏览文件 @
3749de6a
...
...
@@ -4,10 +4,16 @@
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
{{#if
item
.
psSysImage
}}
{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{else
if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{/if}}
{{#if
item
.
labelPSSysCss
}}
titleStyle=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
:infoGroupMode=
"
{{
item
.
infoGroupMode
}}
"
:titleBarCloseMode=
"
{{
item
.
titleBarCloseMode
}}
"
:showCaption=
"
{{
item
.
showCaption
}}
"
...
...
@@ -38,10 +44,13 @@
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
{{#if
item
.
psSysImage
}}
{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{else
if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{/if}}
{{#if
item
.
labelPSSysCss
}}
titleStyle=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
:infoGroupMode=
"
{{
item
.
infoGroupMode
}}
"
:titleBarCloseMode=
"
{{
item
.
titleBarCloseMode
}}
"
:showCaption=
"
{{
item
.
showCaption
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-item.hbs
浏览文件 @
3749de6a
{{>
@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"
{{#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"
}}
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
{{#if
item
.
labelPSSysCss
}}
titleStyle=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:labelWidth=
"
{{
item
.
labelWidth
}}
"
:required=
"state.detailsModel.
{{
item
.
codeName
}}
.required"
label=
"
{{
item
.
caption
}}
"
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
>
{{#if
item
.
psEditor
}}
<div
class=
"form-editor-container"
style=
"
{{#if
item
.
editorWidth
}}
width:
{{
item
.
editorWidth
}}
px;
{{/if}}{{#if
item
.
editorHeight
}}
height:
{{
item
.
editorHeight
}}
px
{{/if}}
"
>
{{>
(
lookup
.
'item.psEditor.editorType'
)
item
=
item
ctrlType
=
"form"
}}
</div>
{{/if}}
</AppFormItem>
</div>
{{else}}
<a-col
{{>
@macro
/
front-end
/
widgets
/
common
/
layout-pos
.
hbs
item
=
item
.
psLayoutPos
}}
>
<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"
}}
<AppFormItem
v-show=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
{{#if
item
.
labelPSSysCss
}}
titleStyle=
"
{{
item
.
labelPSSysCss
.
cssName
}}
"
{{/if}}
name=
"
{{
item
.
codeName
}}
"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:labelWidth=
"
{{
item
.
labelWidth
}}
"
:required=
"state.detailsModel.
{{
item
.
codeName
}}
.required"
label=
"
{{
item
.
caption
}}
"
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px
{{/if}}
"
>
{{#if
item
.
psEditor
}}
<div
class=
"form-editor-container"
style=
"
{{#if
item
.
editorWidth
}}
width:
{{
item
.
editorWidth
}}
px;
{{/if}}{{#if
item
.
editorHeight
}}
height:
{{
item
.
editorHeight
}}
px
{{/if}}
"
>
{{>
(
lookup
.
'item.psEditor.editorType'
)
item
=
item
ctrlType
=
"form"
}}
</div>
{{/if}}
</AppFormItem>
</a-col>
{{/
eq
}}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-rawitem.hbs
浏览文件 @
3749de6a
...
...
@@ -20,5 +20,5 @@
contentType=
"
{{
item
.
contentType
}}
"
style=
"
{{#if
item
.
rawItemHeight
}}
height:
{{
item
.
rawItemHeight
}}
px;
{{/if}}{{#if
item
.
rawItemWidth
}}
width:
{{
item
.
rawItemWidth
}}
px
{{/if}}
"
{{#if
(
eq
item
.
contentType
'RAW'
)
}}
value=
"
{{
item
.
rawContent
}}
"
{{else
if
(
eq
item
.
contentType
'HTML'
)
}}
:value=
"`
{{
item
.
htmlContent
}}
`"
{{/if}}
/>
</a-col>
</a-col>
{{/
eq
}}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/render/app-form-group.vue
浏览文件 @
3749de6a
...
...
@@ -39,7 +39,7 @@ const handleMenuGroupAction = ($event: IParam) => {
:headStyle="titleStyle"
:bordered="false">
<template
v-if=
"showCaption"
#
title
>
<p
:class=
"['app-form-group-title', `$
{titleStyle}`]
">
<p
class=
"app-form-group-title
"
>
<AppIconText
:iconClass=
"iconClass"
:imgPath=
"imgPath"
:text=
"title"
/>
</p>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/render/app-form-item.vue
浏览文件 @
3749de6a
...
...
@@ -3,11 +3,12 @@ import { IActionParam } from '@core';
interface
FormGroupProps
{
name
:
string
;
error
?:
string
;
label
:
string
;
required
:
boolean
;
rules
?:
any
;
labelWidth
:
number
;
rules
?:
any
;
error
?:
string
;
titleStyle
?:
string
;
}
interface
FormGroupEmit
{
(
name
:
'componentEvent'
,
value
:
IActionParam
):
void
;
...
...
@@ -44,7 +45,7 @@ const initRules = () => {
:validateStatus=
"error ? 'error' : 'validating'"
>
<template
#
label
>
<label
:style=
"
{ width: labelWidth + 'px' }">\
{{
label
}}
</label>
<label
:style=
"
{ width: labelWidth + 'px' }"
:class="titleStyle"
>\
{{
label
}}
</label>
</
template
>
<slot></slot>
</a-form-item>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录