Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
79700e8b
提交
79700e8b
编写于
1月 17, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复打包报错
上级
705edc70
变更
25
隐藏空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
38 行增加
和
38 行删除
+38
-38
auto-complete.hbs
...urces/templ/r7/@macro/front-end/editors/auto-complete.hbs
+1
-1
checkbox-list.hbs
...urces/templ/r7/@macro/front-end/editors/checkbox-list.hbs
+1
-1
checkbox.hbs
.../resources/templ/r7/@macro/front-end/editors/checkbox.hbs
+1
-1
code.hbs
...main/resources/templ/r7/@macro/front-end/editors/code.hbs
+1
-1
data-picker-view.hbs
...es/templ/r7/@macro/front-end/editors/data-picker-view.hbs
+1
-1
data-picker.hbs
...sources/templ/r7/@macro/front-end/editors/data-picker.hbs
+1
-1
date-picker.hbs
...sources/templ/r7/@macro/front-end/editors/date-picker.hbs
+1
-1
dropdown-list.hbs
...urces/templ/r7/@macro/front-end/editors/dropdown-list.hbs
+1
-1
input-ip.hbs
.../resources/templ/r7/@macro/front-end/editors/input-ip.hbs
+1
-1
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+1
-1
list-box.hbs
.../resources/templ/r7/@macro/front-end/editors/list-box.hbs
+1
-1
radio-group.hbs
...sources/templ/r7/@macro/front-end/editors/radio-group.hbs
+1
-1
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+1
-1
raw.hbs
.../main/resources/templ/r7/@macro/front-end/editors/raw.hbs
+1
-1
rich-text.hbs
...resources/templ/r7/@macro/front-end/editors/rich-text.hbs
+1
-1
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+1
-1
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
+1
-1
upload.hbs
...in/resources/templ/r7/@macro/front-end/editors/upload.hbs
+1
-1
grid-column.hbs
...l/r7/@macro/front-end/widgets/grid-detail/grid-column.hbs
+1
-1
grid-control.ts
...s}}/src/core/modules/widgets/grid-control/grid-control.ts
+7
-6
{{pages@DEPICKUPVIEW}}.vue.hbs
...s}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
+1
-1
{{pages@DETREEEXPVIEW}}.vue.hbs
...}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
+2
-2
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+8
-8
{{ctrls@SEARCHFORM}}-search-form.vue.hbs
...RM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
+0
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/auto-complete.hbs
浏览文件 @
79700e8b
...
...
@@ -44,6 +44,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox-list.hbs
浏览文件 @
79700e8b
...
...
@@ -26,6 +26,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox.hbs
浏览文件 @
79700e8b
...
...
@@ -12,6 +12,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/code.hbs
浏览文件 @
79700e8b
...
...
@@ -9,7 +9,7 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
:context=
"state.context"
:viewParams=
"state.viewParams"
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker-view.hbs
浏览文件 @
79700e8b
...
...
@@ -30,6 +30,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker.hbs
浏览文件 @
79700e8b
...
...
@@ -57,6 +57,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/date-picker.hbs
浏览文件 @
79700e8b
...
...
@@ -51,6 +51,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/dropdown-list.hbs
浏览文件 @
79700e8b
...
...
@@ -33,6 +33,6 @@
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:data=
"record"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input-ip.hbs
浏览文件 @
79700e8b
...
...
@@ -12,7 +12,7 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
79700e8b
...
...
@@ -42,6 +42,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/list-box.hbs
浏览文件 @
79700e8b
...
...
@@ -42,6 +42,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/radio-group.hbs
浏览文件 @
79700e8b
...
...
@@ -26,6 +26,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
79700e8b
...
...
@@ -18,6 +18,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/raw.hbs
浏览文件 @
79700e8b
...
...
@@ -16,6 +16,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rich-text.hbs
浏览文件 @
79700e8b
...
...
@@ -25,6 +25,6 @@
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:data=
"record"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
79700e8b
...
...
@@ -22,6 +22,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
79700e8b
...
...
@@ -24,6 +24,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/switch.hbs
浏览文件 @
79700e8b
...
...
@@ -15,6 +15,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/upload.hbs
浏览文件 @
79700e8b
...
...
@@ -35,6 +35,6 @@
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) => onEditorEvent(index,$event)"
@
editorEvent=
"($event
: IActionParam
) => onEditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/grid-detail/grid-column.hbs
浏览文件 @
79700e8b
...
...
@@ -28,7 +28,7 @@
mode=
"link"
name=
"
{{
lowerCase
item
.
codeName
}}
"
:actionModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
@
toolbarEvent=
"($event) => handle
ToolbarEvent(record, $event)"
/>
@
onToolbarEvent=
"($event: IActionParam) => on
ToolbarEvent(record, $event)"
/>
{{/if}}
</div>
{{/
unless
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
79700e8b
...
...
@@ -55,16 +55,16 @@ export class GridControl extends MDControl {
if
(
!
rowEditState
)
{
selectedRowKeys
.
value
=
[
record
.
srfkey
];
if
(
!
record
.
children
)
{
this
.
emit
(
"
ctrle
vent"
,
{
tag
:
controlName
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
onCtrlE
vent"
,
{
tag
:
controlName
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
record
)]
})
if
(
Object
.
is
(
rowActiveMode
,
1
))
{
this
.
emit
(
"
ctrle
vent"
,
{
tag
:
controlName
,
action
:
"rowClick"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
onCtrlE
vent"
,
{
tag
:
controlName
,
action
:
"rowClick"
,
data
:
[
deepCopy
(
record
)]
})
}
}
}
},
onDblclick
:
()
=>
{
if
(
!
record
.
children
&&
Object
.
is
(
rowActiveMode
,
2
))
{
this
.
emit
(
"
ctrle
vent"
,
{
tag
:
controlName
,
action
:
"rowDbClick"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
onCtrlE
vent"
,
{
tag
:
controlName
,
action
:
"rowDbClick"
,
data
:
[
deepCopy
(
record
)]
})
}
}
};
...
...
@@ -86,7 +86,7 @@ export class GridControl extends MDControl {
selection
.
push
(
select
);
}
})
this
.
emit
(
"
ctrle
vent"
,
{
tag
:
controlName
,
action
:
"selectionChange"
,
data
:
selection
})
this
.
emit
(
"
onCtrlE
vent"
,
{
tag
:
controlName
,
action
:
"selectionChange"
,
data
:
selection
})
},
};
});
...
...
@@ -179,7 +179,7 @@ export class GridControl extends MDControl {
selectedRowKeys
.
value
=
_selectedRowKeys
;
}
else
if
(
isSelectDefault
)
{
if
(
items
&&
items
.
length
>
0
)
{
this
.
emit
(
"
ctrle
vent"
,
{
this
.
emit
(
"
onCtrlE
vent"
,
{
tag
:
controlName
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
items
[
0
])],
...
...
@@ -431,7 +431,8 @@ export class GridControl extends MDControl {
const
superParams
=
super
.
moduleInstall
();
return
{
...
superParams
,
useCustom
:
this
.
useCustom
()
useCustom
:
this
.
useCustom
(),
onEditorEvent
:
this
.
onEditorEvent
.
bind
(
this
),
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
浏览文件 @
79700e8b
...
...
@@ -44,7 +44,7 @@ const { state, cancel, confirm,handleCtrlEvent } = new PickupView(viewState, pro
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.viewToolbarModel"
@
toolbarEvent=
"handle
ToolbarEvent"
/>
@
onToolbarEvent=
"on
ToolbarEvent"
/>
</template>
{{/
eq
}}
{{#
eq
controlType
"PICKUPVIEWPANEL"
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
浏览文件 @
79700e8b
...
...
@@ -25,7 +25,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块
const
{
state
,
handleCtrlEvent
,
handle
ToolbarEvent
}
=
new
TreeExpView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
handleCtrlEvent
,
on
ToolbarEvent
}
=
new
TreeExpView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -40,7 +40,7 @@ const { state, handleCtrlEvent, handleToolbarEvent } = new TreeExpView(viewState
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.toolbar"
@
toolbarEvent=
"handle
ToolbarEvent"
/>
@
onToolbarEvent=
"on
ToolbarEvent"
/>
</template>
{{/
eq
}}
{{#
eq
controlType
"TREEEXPBAR"
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
浏览文件 @
79700e8b
...
...
@@ -6,14 +6,14 @@ import { GridControl, IActionParam, IParam, IContext, ControlAction, deepCopy }
interface
Props
{
context
:
IContext
;
isMultiple
:
boolean
;
viewParams
:
IParam
;
multiple
:
boolean
;
rowEditState
:
boolean
;
rowActiveMode
:
0
|
1
|
2
;
selectedData
:
IParam
[];
isSelectDefault
:
boolean
;
viewParams
?:
IParam
;
selectedData
?:
IParam
[];
isSelectDefault
?:
boolean
;
controlAction
:
ControlAction
;
showBusyIndicator
?
:
boolean
;
showBusyIndicator
:
boolean
;
viewSubject
:
Subject
<
IActionParam
>
;
}
...
...
@@ -30,7 +30,7 @@ const props = withDefaults(defineProps < Props > (), {
const
emit
=
defineEmits
<
{(
event
:
'onCtrlevent'
,
value
:
IActionParam
):
void
;}
>
();
// 安装功能模块,提供状态和能力
const
{
state
,
useCustom
}
=
new
GridControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
useCustom
,
onEditorEvent
,
onToolbarEvent
}
=
new
GridControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
useScrollOption
,
useRowKey
,
useRowClassName
,
useCustomRow
,
useRowSelectionOption
,
onResizeColumn
,
onGridChange
}
=
useCustom
;
// 暴露内部状态及能力
...
...
@@ -49,8 +49,8 @@ defineExpose({ state, name: '{{ctrl.name}}' });
:row-selection=
"rowSelectionOption"
:columns=
"state.columnsModel"
:pagination=
"state.mdCtrlPaging.pagination"
:customRow=
"
c
ustomRow"
:rowClassName=
"
r
owClassName"
:customRow=
"
useC
ustomRow"
:rowClassName=
"
useR
owClassName"
@
change=
"onGridChange"
@
resizeColumn=
"onResizeColumn"
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
浏览文件 @
79700e8b
...
...
@@ -61,7 +61,6 @@ const { state, onEditorEvent, onComponentEvent, onSearch, loadDraft, onSaveHisto
class=
"search-form-history"
v-show=
"state.historyItems.length > 0"
v-model:Value=
"state.selectHistoryItem"
@
change=
"handleChange"
>
<a-select-option
class=
"search-form-history-option"
v-for=
"(item,index) in state.historyItems"
:key=
"index"
:value=
"item.value"
>
\{{item.name}}
<close-outlined
@
click=
"() => onRemoveHistoryItem(item)"
/></a-select-option>
</a-select>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录