Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
792791c5
提交
792791c5
编写于
2月 17, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新表单布局
上级
9aef90da
变更
16
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
54 行增加
和
25 行删除
+54
-25
form-details-model.hbs
...acro/front-end/widgets/form-detail/form-details-model.hbs
+1
-1
form-druipart.hbs
...r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
+1
-1
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
+1
-1
form-page.hbs
...mpl/r7/@macro/front-end/widgets/form-detail/form-page.hbs
+1
-1
form-rawitem.hbs
.../r7/@macro/front-end/widgets/form-detail/form-rawitem.hbs
+20
-6
include-form.hbs
.../r7/@macro/front-end/widgets/form-detail/include-form.hbs
+2
-1
app-col.vue
...s/templ/r7/app_{{apps}}/src/components/common/app-col.vue
+3
-1
app-form-button.vue
...r7/app_{{apps}}/src/components/common/app-form-button.vue
+1
-1
app-form-group.vue
.../r7/app_{{apps}}/src/components/common/app-form-group.vue
+4
-0
app-form-iframe.vue
...r7/app_{{apps}}/src/components/common/app-form-iframe.vue
+2
-2
app-form-page.vue
...l/r7/app_{{apps}}/src/components/common/app-form-page.vue
+1
-1
app-form-raw.vue
...pl/r7/app_{{apps}}/src/components/common/app-form-raw.vue
+5
-2
app-form-tab-page.vue
.../app_{{apps}}/src/components/common/app-form-tab-page.vue
+1
-1
app-form-tab-panel.vue
...app_{{apps}}/src/components/common/app-form-tab-panel.vue
+1
-1
app-raw.vue
.../templ/r7/app_{{apps}}/src/components/editors/app-raw.vue
+9
-4
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-details-model.hbs
浏览文件 @
792791c5
...
...
@@ -42,7 +42,7 @@
{{/if}}
{{#if
(
and
(
eq
item
.
detailType
"BUTTON"
)
item
.
psUIAction
)
}}
{{!-- TODO 补充显示图标和文字模式 --}}
uIAction: { caption: '
{{
item
.
psUIAction
.
caption
}}
', uIActionMode: "
{{
item
.
psUIAction
.
uIActionMode
}}
", disabled: false, visible: true, uIActionTag: '
{{
detail
.
psUIAction
.
uIActionTag
}}
', showCaption:
{{
item
.
showCaption
}}
,
{{#if
item
.
psUIAction
.
psSysImage
}}{{#if
item
.
psUIAction
.
psSysImage
.
imagePath
}}
imgPath: "
{{
item
.
psUIAction
.
psSysImage
.
imagePath
}}
",
{{/if}}{{#if
item
.
psUIAction
.
psSysImage
.
cssClass
}}
iconClass: "
{{
item
.
psUIAction
.
psSysImage
.
cssClass
}}
",
{{/if}}{{/if}}
},
uIAction: { caption: '
{{
item
.
psUIAction
.
caption
}}
', uIActionMode: "
{{
item
.
psUIAction
.
uIActionMode
}}
", disabled: false, visible: true, uIActionTag: '
{{
item
.
psUIAction
.
uIActionTag
}}
', showCaption:
{{
item
.
showCaption
}}
,
{{#if
item
.
psUIAction
.
psSysImage
}}{{#if
item
.
psUIAction
.
psSysImage
.
imagePath
}}
imgPath: "
{{
item
.
psUIAction
.
psSysImage
.
imagePath
}}
",
{{/if}}{{#if
item
.
psUIAction
.
psSysImage
.
cssClass
}}
iconClass: "
{{
item
.
psUIAction
.
psSysImage
.
cssClass
}}
",
{{/if}}{{/if}}
},
{{/if}}
{{#if
(
and
(
eq
item
.
detailType
"GROUPPANEL"
)
item
.
psUIActionGroup
)
}}
uIActionGroup: {
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
浏览文件 @
792791c5
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-iframe.hbs
浏览文件 @
792791c5
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-item.hbs
浏览文件 @
792791c5
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-page.hbs
浏览文件 @
792791c5
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-rawitem.hbs
浏览文件 @
792791c5
<AppRaw
<App
Form
Raw
name=
"
{{
item
.
codeName
}}
"
:visible=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
{{#if
item
.
psSysImage
}}
{{#if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}
{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}
{{/if}}
contentType=
"
{{
item
.
contentType
}}
"
{{#if
(
or
item
.
rawItemHeight
item
.
rawItemWidth
)
}}
style=
"
{{#if
item
.
rawItemHeight
}}
height:
{{
item
.
rawItemHeight
}}
px;
{{/if}}{{#if
item
.
rawItemWidth
}}
width:
{{
item
.
rawItemWidth
}}
px;
{{/if}}
"
{{#if
(
and
item
.
psLayoutPos
(
or
item
.
psLayoutPos
.
width
item
.
psLayoutPos
.
height
))
}}
style=
"
{{#if
item
.
psLayoutPos
.
width
}}
width:
{{
item
.
psLayoutPos
.
width
}}
px;
{{/if}}{{#if
item
.
psLayoutPos
.
height
}}
height:
{{
item
.
psLayoutPos
.
height
}}
px;
{{/if}}
"
{{/if}}
{{#if
(
or
(
gt
item
.
rawItemWidth
0
)
(
gt
item
.
rawItemHeight
0
))
}}
rawStyle=
"
{{#
gt
item
.
rawItemWidth
0
}}
width:
{{
item
.
rawItemWidth
}}
px;
{{/
gt
}}{{#
gt
item
.
rawItemHeight
0
}}
height:
{{
item
.
rawItemHeight
}}
px;
{{/
gt
}}
"
{{/if}}
{{#if
(
eq
item
.
contentType
'RAW'
)
}}
value=
"
{{
item
.
rawContent
}}
"
{{else
if
(
eq
item
.
contentType
'HTML'
)
}}
:value=
"`
{{
item
.
htmlContent
}}
`"
{{/if}}
/>
contentType=
"
{{
item
.
contentType
}}
"
:layoutOpts=
"
{{>
@macro
/
front-end
/
common
/
layoutPos
.
hbs
layout
=
item
.
psLayout
layoutPos
=
item
.
psLayoutPos
}}
"
{{#if
(
eq
item
.
contentType
'RAW'
)
}}
value=
"
{{
item
.
rawContent
}}
"
{{else
if
(
eq
item
.
contentType
'HTML'
)
}}
:value=
"`
{{
item
.
htmlContent
}}
`"
{{/if}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/include-form.hbs
浏览文件 @
792791c5
...
...
@@ -5,7 +5,8 @@
{{#
eq
type
"BUTTON"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-button
.
hbs
}}{{/
eq
}}
{{#
eq
type
"IFRAME"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-iframe
.
hbs
}}{{/
eq
}}
{{#
eq
type
"FORMPART"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-formpart
.
hbs
}}{{/
eq
}}
{{#
eq
type
"TABPAGE"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-
druipart
.
hbs
}}{{/
eq
}}
{{#
eq
type
"TABPAGE"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-
tabpage
.
hbs
}}{{/
eq
}}
{{#
eq
type
"DRUIPART"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-druipart
.
hbs
}}{{/
eq
}}
{{#
eq
type
"RAWITEM"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-rawitem
.
hbs
}}{{/
eq
}}
{{#
eq
type
"FORMDETAILSMODEL"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-details-model
.
hbs
}}{{/
eq
}}
{{#
eq
type
"FORMACTIONMODEL"
}}{{>
@macro
/
front-end
/
widgets
/
form-detail
/
form-action-model
.
hbs
}}{{/
eq
}}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-col.vue
浏览文件 @
792791c5
...
...
@@ -28,7 +28,9 @@ let slotStyle = computed(() => {
return
''
}
let
result
=
''
;
if
(
attrs
.
style
)
{
result
+=
isObject
(
attrs
.
style
)
?
styleObj2Str
(
attrs
.
style
)
:
attrs
.
style
;
}
if
(
layout
?.
value
?.
colStyle
)
{
result
+=
layout
.
value
.
colStyle
;
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-button.vue
浏览文件 @
792791c5
...
...
@@ -26,7 +26,7 @@ const emit = defineEmits<FormButtonEmits>();
const
click
=
(
event
:
MouseEvent
)
=>
{
const
data
=
deepCopy
(
props
.
uIAction
);
Object
.
assign
(
data
,
{
event
:
event
});
emit
(
'action'
,
{
tag
:
name
,
action
:
'formButtonAction'
,
data
:
data
});
emit
(
'action'
,
{
tag
:
props
.
name
,
action
:
'formButtonAction'
,
data
:
data
});
}
</
script
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-group.vue
浏览文件 @
792791c5
...
...
@@ -105,9 +105,13 @@ const handleMenuGroupAction = ($event: IParam) => {
.app-form-group
{
.ant-card-head
{
text-align
:
left
;
max-height
:
60px
;
.app-form-group-title
{
margin
:
0px
;
}
}
.ant-card-body
{
height
:
calc
(
100%
-
60px
);
}
}
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-iframe.vue
浏览文件 @
792791c5
...
...
@@ -14,8 +14,8 @@ const props = withDefaults(defineProps<FormIframeProps>(), {
</
script
>
<
template
>
<AppCol
class=
"app-form
Druipart
"
:visible=
"visible"
:layoutOpts=
"layoutOpts"
v-show=
"visible"
>
<iframe
class=
"app-form
Druipart__iframe
"
:src=
"iFrameUrl"
style=
"height: 100%;width: 100%;border: 0"
></iframe>
<AppCol
class=
"app-form
-iframe
"
:visible=
"visible"
:layoutOpts=
"layoutOpts"
v-show=
"visible"
>
<iframe
class=
"app-form
-iframe__content
"
:src=
"iFrameUrl"
style=
"height: 100%;width: 100%;border: 0"
></iframe>
</AppCol>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-page.vue
浏览文件 @
792791c5
...
...
@@ -12,7 +12,7 @@ const props = withDefaults(defineProps<FormPageProps>(), {
</
script
>
<
template
>
<a-tab-pane
class=
"app-form
P
age"
:key=
"$attrs.key"
:tab=
"tab"
>
<a-tab-pane
class=
"app-form
-p
age"
:key=
"$attrs.key"
:tab=
"tab"
>
<AppRow
:layoutOpts=
"layoutOpts"
>
<slot></slot>
</AppRow>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-raw.vue
浏览文件 @
792791c5
...
...
@@ -9,6 +9,7 @@ interface FormRawProps{
imgPath
?:
string
;
value
?:
any
;
contentType
?:
string
;
rawStyle
?:
IParam
}
const
props
=
withDefaults
(
defineProps
<
FormRawProps
>
(),
{
visible
:
true
,
...
...
@@ -17,13 +18,15 @@ const props = withDefaults(defineProps<FormRawProps>(), {
</
script
>
<
template
>
<AppCol
:visible=
"visible"
noRoot
:layoutOpts=
"layoutOpts"
class=
"app-form
R
aw"
>
<AppCol
:visible=
"visible"
noRoot
:layoutOpts=
"layoutOpts"
class=
"app-form
-r
aw"
>
<template
#
default=
"
{slotStyle, slotClass}">
<AppRaw
:name=
"name"
:class=
"slotClass"
:style=
"slotStyle"
:iconClass=
"iconClass"
:value=
"value"
:rawStyle=
"rawStyle"
:contentType=
"contentType"
>
</AppRaw>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-tab-page.vue
浏览文件 @
792791c5
...
...
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<FormTabPageProps>(), {
</
script
>
<
template
>
<a-tab-pane
class=
"app-form
TabP
age"
v-show=
"visible"
:tab=
"caption"
>
<a-tab-pane
class=
"app-form
-tabp
age"
v-show=
"visible"
:tab=
"caption"
>
<AppRow
:layoutOpts=
"layoutOpts"
>
<slot></slot>
</AppRow>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-tab-panel.vue
浏览文件 @
792791c5
...
...
@@ -14,7 +14,7 @@ const props = withDefaults(defineProps<FormTabPanelProps>(), {
</
script
>
<
template
>
<AppCol
:visible=
"visible"
noRoot
:layoutOpts=
"layoutOpts"
class=
"app-form
TabP
anel"
>
<AppCol
:visible=
"visible"
noRoot
:layoutOpts=
"layoutOpts"
class=
"app-form
-tabp
anel"
>
<template
v-slot:default=
"
{ slotStyle, slotClass }">
<a-tabs
:class=
"slotClass"
:style=
"slotStyle"
>
<slot></slot>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-raw.vue
浏览文件 @
792791c5
<
script
setup
lang=
"ts"
>
import
{
IActionParam
}
from
"@core"
;
import
{
IActionParam
,
IParam
}
from
"@core"
;
interface
RawProps
{
/**
* @description 编辑器名称
...
...
@@ -30,6 +30,11 @@ interface RawProps {
* @description 标题
*/
caption
?:
string
;
/**
* @description 直接内容样式
*/
rawStyle
?:
IParam
;
}
interface
EditorEmit
{
...
...
@@ -45,12 +50,12 @@ const emit = defineEmits<EditorEmit>();
<
template
>
<div
:class=
"['app-raw-item', 'app-raw', `app-raw-$
{name}`]">
<div
class=
"raw-caption"
v-if=
"caption"
>
{{
caption
}}
</div>
<div
class=
"raw-caption"
v-if=
"caption"
:style=
"rawStyle"
>
{{
caption
}}
</div>
<div
v-if=
"Object.is(contentType, 'RAW')"
>
{{
value
}}
</div>
<div
v-else-if=
"Object.is(contentType, 'HTML')"
v-html=
"value"
/>
<div
v-else-if=
"Object.is(contentType, 'IMAGE')"
>
<div
v-else-if=
"Object.is(contentType, 'HTML')"
v-html=
"value"
:style=
"rawStyle"
/>
<div
v-else-if=
"Object.is(contentType, 'IMAGE')"
:style=
"rawStyle"
>
<AppIconText
:iconClass=
"iconClass"
:imgPath=
"imgPath"
/>
</div>
</div>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录