Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
9782cb6b
提交
9782cb6b
编写于
12月 27, 2021
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 更新
上级
bab2d04e
变更
12
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
46 行增加
和
38 行删除
+46
-38
auto-complete.hbs
...c/main/resources/templ/r7/@macro/editor/auto-complete.hbs
+2
-2
data-picker.hbs
...src/main/resources/templ/r7/@macro/editor/data-picker.hbs
+2
-2
date-picker.hbs
...src/main/resources/templ/r7/@macro/editor/date-picker.hbs
+2
-2
dropdown-list.hbs
...c/main/resources/templ/r7/@macro/editor/dropdown-list.hbs
+2
-2
input.hbs
...-core/src/main/resources/templ/r7/@macro/editor/input.hbs
+6
-3
rating.hbs
...core/src/main/resources/templ/r7/@macro/editor/rating.hbs
+0
-1
slider.hbs
...core/src/main/resources/templ/r7/@macro/editor/slider.hbs
+2
-2
stepper.hbs
...ore/src/main/resources/templ/r7/@macro/editor/stepper.hbs
+2
-3
upload.hbs
...core/src/main/resources/templ/r7/@macro/editor/upload.hbs
+12
-6
IbizInput.vue
...empl/r7/app_{{apps}}/src/components/editors/IbizInput.vue
+2
-11
IbizSpan.vue
...templ/r7/app_{{apps}}/src/components/editors/IbizSpan.vue
+1
-1
IbizUpload.vue
...mpl/r7/app_{{apps}}/src/components/editors/IbizUpload.vue
+13
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/auto-complete.hbs
浏览文件 @
9782cb6b
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
{{#if
item
.
valueItemName
}}
{{#if
item
.
valueItemName
}}
valueItem=
"
{{
item
.
valueItemName
}}
"
valueItem=
"
{{
item
.
valueItemName
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
getP
laceHolder
}}
{{#if
item
.
psEditor
.
p
laceHolder
}}
placeholder=
"
{{
item
.
psEditor
.
getP
laceHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
p
laceHolder
}}
"
{{/if}}
{{/if}}
:contextProp=
"state.context"
:contextProp=
"state.context"
:viewParamsProp=
"state.viewParams"
:viewParamsProp=
"state.viewParams"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/data-picker.hbs
浏览文件 @
9782cb6b
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
{{#if
item
.
valueItemName
}}
{{#if
item
.
valueItemName
}}
valueItem=
"
{{
item
.
valueItemName
}}
"
valueItem=
"
{{
item
.
valueItemName
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
getP
laceHolder
}}
{{#if
item
.
psEditor
.
p
laceHolder
}}
placeholder=
"
{{
item
.
psEditor
.
getP
laceHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
p
laceHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/date-picker.hbs
浏览文件 @
9782cb6b
<IbizDatePicker
<IbizDatePicker
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
{{#if
item
.
psEditor
.
getP
laceHolder
}}
{{#if
item
.
psEditor
.
p
laceHolder
}}
placeholder=
"
{{
item
.
psEditor
.
getP
laceHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
p
laceHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/dropdown-list.hbs
浏览文件 @
9782cb6b
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
codeListType=
"
{{
item
.
psEditor
.
codeList
.
codeListType
}}
"
codeListType=
"
{{
item
.
psEditor
.
codeList
.
codeListType
}}
"
valueSeparator=
"
{{
item
.
psEditor
.
codeList
.
valueSeparator
}}
"
valueSeparator=
"
{{
item
.
psEditor
.
codeList
.
valueSeparator
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
getP
laceHolder
}}
{{#if
item
.
psEditor
.
p
laceHolder
}}
placeholder=
"
{{
item
.
psEditor
.
getP
laceHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
p
laceHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/input.hbs
浏览文件 @
9782cb6b
<IbizInput
<IbizInput
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
{{#if
item
.
psEditor
.
getP
laceHolder
}}
{{#if
item
.
psEditor
.
p
laceHolder
}}
placeholder=
"
{{
item
.
psEditor
.
getP
laceHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
p
laceHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
...
@@ -19,9 +19,12 @@
...
@@ -19,9 +19,12 @@
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
maxLength
}}
{{#if
item
.
psEditor
.
maxLength
}}
:maxLength=
"
{{
item
.
psEditor
.
maxLength
}}
"
:maxLength=
"
{{
item
.
psEditor
.
maxLength
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
showMaxLength
}}
:showMaxLength=
"
{{
item
.
psEditor
.
showMaxLength
}}
"
{{/if}}
{{#
eq
item
.
psEditor
.
editorType
"TEXTBOX"
}}
{{#
eq
item
.
psEditor
.
editorType
"TEXTBOX"
}}
type=
"text"
type=
"text"
{{/
eq
}}
{{/
eq
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/rating.hbs
浏览文件 @
9782cb6b
<IbizRating
<IbizRating
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:date=
"state.data"
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
{{/if}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/slider.hbs
浏览文件 @
9782cb6b
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
step
}}
{{#if
item
.
psEditor
.
stepValue
}}
:step=
"
{{
item
.
psEditor
.
editorParams
.
step
}}
"
:step=
"
{{
item
.
psEditor
.
stepValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
min
}}
{{#if
item
.
psEditor
.
editorParams
.
min
}}
:min=
"
{{
item
.
psEditor
.
editorParams
.
min
}}
"
:min=
"
{{
item
.
psEditor
.
editorParams
.
min
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/stepper.hbs
浏览文件 @
9782cb6b
<IbizStepper
<IbizStepper
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:date=
"state.data"
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
{{/if}}
{{/if}}
...
@@ -11,8 +10,8 @@
...
@@ -11,8 +10,8 @@
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
step
}}
{{#if
item
.
psEditor
.
stepValue
}}
:step=
"
{{
item
.
psEditor
.
editorParams
.
step
}}
"
:step=
"
{{
item
.
psEditor
.
stepValue
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
min
}}
{{#if
item
.
psEditor
.
editorParams
.
min
}}
:min=
"
{{
item
.
psEditor
.
editorParams
.
min
}}
"
:min=
"
{{
item
.
psEditor
.
editorParams
.
min
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/upload.hbs
浏览文件 @
9782cb6b
<IbizUpload
<IbizUpload
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
{{#if
item
.
psEditor
.
editorParams
.
accept
}}
accept=
"
{{
item
.
psEditor
.
editorParams
.
accept
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
method
}}
{{#if
item
.
psEditor
.
editorParams
.
method
}}
method=
"
{{
item
.
psEditor
.
editorParams
.
method
}}
"
method=
"
{{
item
.
psEditor
.
editorParams
.
method
}}
"
{{/if}}
{{/if}}
...
@@ -11,10 +8,10 @@
...
@@ -11,10 +8,10 @@
multiple=
"
{{
item
.
psEditor
.
editorParams
.
multiple
}}
"
multiple=
"
{{
item
.
psEditor
.
editorParams
.
multiple
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
showUploadList
}}
{{#if
item
.
psEditor
.
editorParams
.
showUploadList
}}
showUploadList=
"
{{
item
.
psEditor
.
editorParams
.
showUploadList
}}
"
:
showUploadList=
"
{{
item
.
psEditor
.
editorParams
.
showUploadList
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
T
ooltip
}}
{{#if
item
.
psEditor
.
editorParams
.
t
ooltip
}}
Tooltip=
"
{{
item
.
psEditor
.
editorParams
.
T
ooltip
}}
"
tooltip=
"
{{
item
.
psEditor
.
editorParams
.
t
ooltip
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
disabled
}}
{{#if
item
.
psEditor
.
disabled
}}
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
:disabled=
"
{{
item
.
psEditor
.
disabled
}}
"
...
@@ -22,4 +19,13 @@
...
@@ -22,4 +19,13 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxFileCount
}}
:limit=
"
{{
item
.
psEditor
.
maxFileCount
}}
"
{{/if}}
{{#
eq
item
.
psEditor
.
editorType
"PICTURE"
}}
accept=
'image/*'
{{/
eq
}}
{{#
eq
item
.
psEditor
.
editorType
"PICTURE_ONE"
}}
accept=
'image/*'
{{/
eq
}}
@
editorEvent=
"handleEditorEvent"
/>
@
editorEvent=
"handleEditorEvent"
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizInput.vue
浏览文件 @
9782cb6b
...
@@ -73,10 +73,11 @@ const onChange = ($event: any) => {
...
@@ -73,10 +73,11 @@ const onChange = ($event: any) => {
<div
:class=
"['app-editor-container',`app-input-$
{name}`]">
<div
:class=
"['app-editor-container',`app-input-$
{name}`]">
<a-input
<a-input
allowClear
allowClear
v-if=
"Object.is('text', type)"
v-if=
"Object.is('text', type)
|| Object.is('number', type)
"
v-model:value=
"value"
v-model:value=
"value"
:disabled=
"disabled"
:disabled=
"disabled"
:maxlength=
"maxLength"
:maxlength=
"maxLength"
:type=
"type"
@
blur=
"onChange"
@
blur=
"onChange"
:placeholder=
"showMaxLength ? `最大内容长度为$
{maxLength}` : placeholder" />
:placeholder=
"showMaxLength ? `最大内容长度为$
{maxLength}` : placeholder" />
<a-input-password
<a-input-password
...
@@ -87,22 +88,12 @@ const onChange = ($event: any) => {
...
@@ -87,22 +88,12 @@ const onChange = ($event: any) => {
:placeholder=
"placeholder"
/>
:placeholder=
"placeholder"
/>
<a-textarea
<a-textarea
showCount
showCount
allowClear
v-if=
"Object.is('textarea', type)"
v-if=
"Object.is('textarea', type)"
v-model:value=
"value"
v-model:value=
"value"
:disabled=
"disabled"
:disabled=
"disabled"
:maxlength=
"maxLength"
:maxlength=
"maxLength"
@
blur=
"onChange"
@
blur=
"onChange"
:placeholder=
"placeholder"
/>
:placeholder=
"placeholder"
/>
<a-input-number
v-if=
"Object.is('number', type)"
v-model:value=
"value"
:max=
"max"
:min=
"min"
:disabled=
"disabled"
:precision=
"precision"
@
blur=
"onChange"
:placeholder=
"placeholder"
/>
</div>
</div>
</
template
>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizSpan.vue
浏览文件 @
9782cb6b
...
@@ -133,7 +133,7 @@ onBeforeMount(() => {
...
@@ -133,7 +133,7 @@ onBeforeMount(() => {
<
template
>
<
template
>
<div
:class=
"['app-editor-container', `app-span-$
{name}`]">
<div
:class=
"['app-editor-container', `app-span-$
{name}`]">
<span></span>
<span>
{{
text
}}
</span>
</div>
</div>
</
template
>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizUpload.vue
浏览文件 @
9782cb6b
...
@@ -45,12 +45,19 @@ interface UploadProps {
...
@@ -45,12 +45,19 @@ interface UploadProps {
*/
*/
showUploadList
:
boolean
;
showUploadList
:
boolean
;
/**
* 最大文件数
*
* @type {boolean}
*/
limit
:
number
;
/**
/**
* 按钮提示信息
* 按钮提示信息
*
*
* @type {boolean}
* @type {boolean}
*/
*/
T
ooltip
:
string
;
t
ooltip
:
string
;
/**
/**
* 只读模式
* 只读模式
...
@@ -77,7 +84,9 @@ const props = withDefaults(defineProps<UploadProps>(), {
...
@@ -77,7 +84,9 @@ const props = withDefaults(defineProps<UploadProps>(), {
method
:
'post'
,
method
:
'post'
,
multiple
:
true
,
multiple
:
true
,
showUploadList
:
true
,
showUploadList
:
true
,
Tooltip
:
'点击上传'
tooltip
:
'点击上传'
,
accept
:
"*"
,
limit
:
999
,
});
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
emit
=
defineEmits
<
EditorEmit
>
();
const
uploadUrl
=
getUploadUrl
();
const
uploadUrl
=
getUploadUrl
();
...
@@ -101,6 +110,7 @@ const onChange = (value: number) => {
...
@@ -101,6 +110,7 @@ const onChange = (value: number) => {
<a-upload
<a-upload
:action=
"uploadUrl"
:action=
"uploadUrl"
:method=
"method"
:method=
"method"
:accept=
"accept"
v-model:fileList=
"fileList"
v-model:fileList=
"fileList"
:headers=
"headers"
:headers=
"headers"
:multiple=
"multiple"
:multiple=
"multiple"
...
@@ -110,7 +120,7 @@ const onChange = (value: number) => {
...
@@ -110,7 +120,7 @@ const onChange = (value: number) => {
@
change=
"onChange"
>
@
change=
"onChange"
>
<a-button>
<a-button>
<upload-outlined></upload-outlined>
<upload-outlined></upload-outlined>
{{
T
ooltip
}}
{{
t
ooltip
}}
</a-button>
</a-button>
</a-upload>
</a-upload>
</div>
</div>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录