Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
96aecdbc
提交
96aecdbc
编写于
2月 08, 2022
作者:
zhujiamin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:调整编辑器
上级
67325e68
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
31 行增加
和
25 行删除
+31
-25
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+0
-3
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+2
-2
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+6
-6
span.hbs
...main/resources/templ/r7/@macro/front-end/editors/span.hbs
+2
-2
stepper.hbs
...n/resources/templ/r7/@macro/front-end/editors/stepper.hbs
+8
-8
app-input.vue
...empl/r7/app_{{apps}}/src/components/editors/app-input.vue
+9
-4
index.scss
...resources/templ/r7/app_{{apps}}/src/style/base/index.scss
+4
-0
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
96aecdbc
...
@@ -6,9 +6,6 @@
...
@@ -6,9 +6,6 @@
{{#if
item
.
psEditor
.
placeHolder
}}
{{#if
item
.
psEditor
.
placeHolder
}}
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
96aecdbc
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxValue
}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
maxValue
}}
"
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
allowHalf
}}
{{#if
item
.
psEditor
.
editorParams
.
allowHalf
}}
:allowHalf=
"
{{
item
.
psEditor
.
editorParams
.
allowHalf
}}
"
:allowHalf=
"
{{
item
.
psEditor
.
editorParams
.
allowHalf
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
96aecdbc
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
stepValue
}}
{{#if
item
.
psEditor
.
editorParams
.
stepValue
}}
:step=
"
{{
item
.
psEditor
.
stepValue
}}
"
:step=
"
{{
item
.
psEditor
.
editorParams
.
stepValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
minValue
}}
{{#if
item
.
psEditor
.
editorParams
.
minValue
}}
:min=
"
{{
item
.
psEditor
.
minValue
}}
"
:min=
"
{{
item
.
psEditor
.
editorParams
.
minValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxValue
}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
maxValue
}}
"
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/span.hbs
浏览文件 @
96aecdbc
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
{{else
if
(
item
.
psAppDEField
.
valueFormat
)
}}
{{else
if
(
item
.
psAppDEField
.
valueFormat
)
}}
valueFormat=
"
{{
item
.
psAppDEField
.
valueFormat
}}
"
valueFormat=
"
{{
item
.
psAppDEField
.
valueFormat
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
precision
}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
precision
}}
"
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
psNavigateContexts
}}
{{#if
item
.
psEditor
.
psNavigateContexts
}}
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateContexts
}}
"
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateContexts
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
96aecdbc
...
@@ -6,17 +6,17 @@
...
@@ -6,17 +6,17 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
precision
}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
precision
}}
"
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
stepValue
}}
{{#if
item
.
psEditor
.
editorParams
.
stepValue
}}
:step=
"
{{
item
.
psEditor
.
stepValue
}}
"
:step=
"
{{
item
.
psEditor
.
editorParams
.
stepValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
minValue
}}
{{#if
item
.
psEditor
.
editorParams
.
minValue
}}
:min=
"
{{
item
.
psEditor
.
minValue
}}
"
:min=
"
{{
item
.
psEditor
.
editorParams
.
minValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxValue
}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:max=
"
{{
item
.
psEditor
.
maxValue
}}
"
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-input.vue
浏览文件 @
96aecdbc
...
@@ -63,7 +63,12 @@ const props = withDefaults(defineProps<InputProps>(), {
...
@@ -63,7 +63,12 @@ const props = withDefaults(defineProps<InputProps>(), {
const
emit
=
defineEmits
<
EditorEmit
>
()
const
emit
=
defineEmits
<
EditorEmit
>
()
const
onChange
=
(
$event
:
any
)
=>
{
const
onChange
=
(
$event
:
any
)
=>
{
const
value
=
$event
.
target
.
value
;
let
value
;
if
(
props
.
type
==
'number'
)
{
value
=
$event
;
}
else
{
value
=
$event
.
target
.
value
;
}
emit
(
'editorEvent'
,
{
tag
:
props
.
name
,
action
:
"valueChange"
,
data
:
value
});
emit
(
'editorEvent'
,
{
tag
:
props
.
name
,
action
:
"valueChange"
,
data
:
value
});
}
}
...
@@ -93,15 +98,15 @@ const onChange = ($event: any) => {
...
@@ -93,15 +98,15 @@ const onChange = ($event: any) => {
:disabled=
"disabled"
:disabled=
"disabled"
:maxlength=
"maxLength"
:maxlength=
"maxLength"
@
blur=
"onChange"
@
blur=
"onChange"
:placeholder=
"showMaxLength ? `最大内容长度为$
{maxLength}` : placeholder"/>
:placeholder=
"showMaxLength
&& maxLength
? `最大内容长度为$
{maxLength}` : placeholder"/>
<a-input
<a-input
allowClear
allowClear
v-else=
"Object.is('text', type)"
v-else
-if
=
"Object.is('text', type)"
v-model:value=
"value"
v-model:value=
"value"
:disabled=
"disabled"
:disabled=
"disabled"
:maxlength=
"maxLength"
:maxlength=
"maxLength"
:type=
"type"
:type=
"type"
@
blur=
"onChange"
@
blur=
"onChange"
:placeholder=
"showMaxLength ? `最大内容长度为$
{maxLength}` : placeholder" />
:placeholder=
"showMaxLength
&& maxLength
? `最大内容长度为$
{maxLength}` : placeholder" />
</div>
</div>
</
template
>
</
template
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/base/index.scss
浏览文件 @
96aecdbc
...
@@ -30,4 +30,8 @@ body{
...
@@ -30,4 +30,8 @@ body{
// 去除antd 卡片自带样式
// 去除antd 卡片自带样式
.ant-card-body
{
.ant-card-body
{
padding
:
0
;
padding
:
0
;
}
// 去除antd 表单项自带样式
.ant-form-horizontal
.ant-form-item-control
{
flex
:
1
;
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录