Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
85348837
提交
85348837
编写于
3月 18, 2022
作者:
邱定凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新编辑器发布逻辑
上级
366b75a1
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
91 行增加
和
67 行删除
+91
-67
checkbox.hbs
.../resources/templ/r7/@macro/front-end/editors/checkbox.hbs
+1
-1
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+13
-9
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+10
-6
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+13
-9
span.hbs
...main/resources/templ/r7/@macro/front-end/editors/span.hbs
+11
-9
stepper.hbs
...n/resources/templ/r7/@macro/front-end/editors/stepper.hbs
+1
-1
switch.hbs
...in/resources/templ/r7/@macro/front-end/editors/switch.hbs
+8
-4
upload.hbs
...in/resources/templ/r7/@macro/front-end/editors/upload.hbs
+19
-13
app-checkbox.vue
...l/r7/app_{{apps}}/src/components/editors/app-checkbox.vue
+3
-3
app-rating.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-rating.vue
+3
-3
app-slider.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-slider.vue
+3
-3
app-stepper.vue
...pl/r7/app_{{apps}}/src/components/editors/app-stepper.vue
+3
-3
app-switch.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-switch.vue
+3
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox.hbs
浏览文件 @
85348837
...
...
@@ -22,7 +22,7 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
85348837
...
...
@@ -25,16 +25,20 @@
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
item
.
psEditor
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
maxValue
}}
"
{{/if}}
{{#if
item
.
psEditor
.
minValue
}}
:min=
"
{{
item
.
psEditor
.
minValue
}}
"
{{/if}}
{{#if
item
.
psEditor
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
precision
}}
"
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
max
}}
:max=
"
{{
max
}}
"
{{/if}}
{{#if
min
}}
:min=
"
{{
min
}}
"
{{/if}}
{{#if
precision
}}
:precision=
"
{{
precision
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
item
.
psEditor
.
maxLength
}}
:maxLength=
"
{{
item
.
psEditor
.
maxLength
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
85348837
...
...
@@ -22,13 +22,17 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
allowHalf
}}
:allowHalf=
"
{{
item
.
psEditor
.
editorParams
.
allowHalf
}}
"
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
max
}}
:max=
"
{{
max
}}
"
{{/if}}
{{#if
allowHalf
}}
:allowHalf=
"
{{
allowHalf
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
85348837
...
...
@@ -23,16 +23,20 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
stepValue
}}
:step=
"
{{
item
.
psEditor
.
editorParams
.
stepValue
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
minValue
}}
:min=
"
{{
item
.
psEditor
.
editorParams
.
minValue
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
step
}}
:step=
"
{{
step
}}
"
{{/if}}
{{#if
min
}}
:min=
"
{{
min
}}
"
{{/if}}
{{#if
max
}}
:max=
"
{{
max
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/span.hbs
浏览文件 @
85348837
...
...
@@ -28,19 +28,21 @@
{{#if
item
.
dataType
}}
:dataType=
"
{{
item
.
dataType
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
unitName
}}
unitName=
"
{{
item
.
psEditor
.
editorParams
.
unitName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
valueFormat
}}
valueFormat=
"
{{
item
.
psEditor
.
editorParams
.
valueFormat
}}
"
{{else
if
item
.
valueFormat
}}
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
unitName
}}
unitName=
"
{{
unitName
}}
"
{{/if}}
{{#if
precision
}}
:precision=
"
{{
precision
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
item
.
valueFormat
}}
valueFormat=
"
{{
item
.
valueFormat
}}
"
{{else
if
item
.
psAppDEField
.
valueFormat
}}
valueFormat=
"
{{
item
.
psAppDEField
.
valueFormat
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{#if
item
.
psEditor
.
psNavigateContexts
}}
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateContexts
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
85348837
...
...
@@ -22,7 +22,7 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/switch.hbs
浏览文件 @
85348837
...
...
@@ -21,11 +21,15 @@
{{else
if
(
eq
ctrlType
'panel'
)
}}
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{#if}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
size
}}
:size=
"
{{
size
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
(
and
item
.
psEditor
.
editorParams
item
.
psEditor
.
editorParams
.
size
)
}}
size=
"
{{
item
.
psEditor
.
editorParams
.
size
}}
"
{{#if
item
.
psEditor
.
readOnly
}}
:readOnly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/upload.hbs
浏览文件 @
85348837
...
...
@@ -8,17 +8,18 @@
{{#
eq
ctrlType
'form'
}}
name=
"
{{
item
.
codeName
}}
"
{{/
eq
}}
{{#if
item
.
psEditor
.
editorParams
.
method
}}
method=
"
{{
item
.
psEditor
.
editorParams
.
method
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
multiple
}}
multiple=
"
{{
item
.
psEditor
.
editorParams
.
multiple
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
showUploadList
}}
:showUploadList=
"
{{
item
.
psEditor
.
editorParams
.
showUploadList
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
tooltip
}}
tooltip=
"
{{
item
.
psEditor
.
editorParams
.
tooltip
}}
"
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
method
}}
method=
"
{{
method
}}
"
{{/if}}
{{#if
multiple
}}
multiple=
"
{{
multiple
}}
"
{{/if}}
{{#if
showUploadList
}}
:showUploadList=
"
{{
showUploadList
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
(
eq
ctrlType
'form'
)
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
...
@@ -36,8 +37,13 @@
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{#if
item
.
psEditor
.
maxFileCount
}}
:limit=
"
{{
item
.
psEditor
.
maxFileCount
}}
"
{{!-- TODO maxFileContent识别 --}}
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
limit
}}
:limit=
"
{{
limit
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#
eq
item
.
psEditor
.
editorType
"PICTURE"
}}
accept=
'image/*'
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-checkbox.vue
浏览文件 @
85348837
...
...
@@ -26,7 +26,7 @@ interface CheckboxProps {
*
* @type {boolean}
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
}
interface
EditorEmit
{
...
...
@@ -35,7 +35,7 @@ interface EditorEmit {
const
props
=
withDefaults
(
defineProps
<
CheckboxProps
>
(),
{
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
curValue
:
Ref
<
boolean
>
=
computed
(()
=>
{
...
...
@@ -61,7 +61,7 @@ const onChange = ($event: any) => {
<a-checkbox
@
change=
"onChange"
:checked=
"curValue"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
></a-checkbox>
</div>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-rating.vue
浏览文件 @
85348837
...
...
@@ -27,7 +27,7 @@ interface RatingProps {
*
* @type {boolean}
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
* 下发数据
...
...
@@ -59,7 +59,7 @@ const props = withDefaults(defineProps<RatingProps>(), {
max
:
5
,
allowHalf
:
false
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
const
emit
=
defineEmits
<
EditorEmit
>
();
...
...
@@ -78,7 +78,7 @@ const onChange = (value: number) => {
:value=
"value"
:allowHalf=
"allowHalf"
:count=
"max"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
change=
"onChange"
/>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-slider.vue
浏览文件 @
85348837
...
...
@@ -42,7 +42,7 @@ interface sliderProps {
*
* @type {boolean}
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
* 是否禁用
...
...
@@ -61,7 +61,7 @@ const props = withDefaults(defineProps<sliderProps>(), {
max
:
100
,
step
:
1
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
const
emit
=
defineEmits
<
EditorEmit
>
();
...
...
@@ -81,7 +81,7 @@ const onChange = (value: number) => {
:min=
"min"
:max=
"max"
:step=
"step"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
afterChange=
"onChange"
/>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-stepper.vue
浏览文件 @
85348837
<
template
>
<div
class=
"app-stepper"
>
<a-input-number
v-model:value=
"result"
:min=
"min"
:max=
"max"
:step=
"step"
:precision=
"precision"
:disabled=
"disabled || read
o
nly"
:controls=
"false"
>
<a-input-number
v-model:value=
"result"
:min=
"min"
:max=
"max"
:step=
"step"
:precision=
"precision"
:disabled=
"disabled || read
O
nly"
:controls=
"false"
>
<template
#
addonBefore
>
<a-button
type=
"text"
:disabled=
"disabled || read
o
nly || result
<
=
min
"
@
click=
"btnReduce"
>
-
</a-button>
<a-button
type=
"text"
:disabled=
"disabled || read
O
nly || result
<
=
min
"
@
click=
"btnReduce"
>
-
</a-button>
</
template
>
<
template
#
addonAfter
>
<a-button
type=
"text"
:disabled=
"disabled || read
o
nly || result >= max"
@
click=
"btnIcrease"
>
+
</a-button>
<a-button
type=
"text"
:disabled=
"disabled || read
O
nly || result >= max"
@
click=
"btnIcrease"
>
+
</a-button>
</
template
>
</a-input-number>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-switch.vue
浏览文件 @
85348837
...
...
@@ -31,7 +31,7 @@ interface SwitchProps {
*
* @type {boolean}
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
* 大小
...
...
@@ -47,7 +47,7 @@ interface EditorEmit {
const
props
=
withDefaults
(
defineProps
<
SwitchProps
>
(),
{
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
size
:
'default'
,
});
const
emit
=
defineEmits
<
EditorEmit
>
();
...
...
@@ -72,7 +72,7 @@ const onChange = (value: number) => {
<a-switch
:checked=
"curValue"
:size=
"size"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
change=
"onChange"
/>
</div>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录