Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
3031388a
提交
3031388a
编写于
1月 18, 2022
作者:
WodahsOrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 统一事件规范
上级
ed79749d
变更
22
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
47 行增加
和
43 行删除
+47
-43
grid-view.ts
...pp_{{apps}}/src/core/modules/views/grid-view/grid-view.ts
+2
-2
md-view.ts
...r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
+1
-1
pickup-grid-view.ts
...c/core/modules/views/pickup-grid-view/pickup-grid-view.ts
+1
-1
pickup-view.ts
...{apps}}/src/core/modules/views/pickup-view/pickup-view.ts
+1
-1
exp-bar-control.ts
...c/core/modules/widgets/exp-bar-control/exp-bar-control.ts
+2
-2
grid-control.ts
...s}}/src/core/modules/widgets/grid-control/grid-control.ts
+6
-6
md-control.ts
...{apps}}/src/core/modules/widgets/md-control/md-control.ts
+2
-2
pickup-view-panel-control.ts
...ts/pickup-view-panel-control/pickup-view-panel-control.ts
+1
-1
quick-search-form-control.ts
...ts/quick-search-form-control/quick-search-form-control.ts
+2
-2
search-form-control.ts
...odules/widgets/search-form-control/search-form-control.ts
+2
-3
tree-control.ts
...s}}/src/core/modules/widgets/tree-control/tree-control.ts
+2
-2
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+4
-4
{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
...ges@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
+2
-2
{{pages@DEPICKUPVIEW}}.vue.hbs
...s}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
+2
-2
{{pages@DETREEEXPVIEW}}.vue.hbs
...}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
+2
-2
{{ctrls@APPMENU}}-menu.vue.hbs
...s}}/{{ctrls@APPMENU}}-menu/{{ctrls@APPMENU}}-menu.vue.hbs
+1
-1
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+2
-2
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+6
-1
{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
...w-panel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
+1
-1
{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
...-form/{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
+1
-1
{{ctrls@SEARCHFORM}}-search-form.vue.hbs
...RM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
+1
-1
{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
...}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
+3
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/grid-view/grid-view.ts
浏览文件 @
3031388a
...
...
@@ -41,12 +41,12 @@ public declare state: GridViewState;
* @param {IActionParam} actionParam
* @memberof MDView
*/
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
if
(
Object
.
is
(
tag
,
'grid'
))
{
this
.
MDCtrlEvent
(
action
,
data
);
}
super
.
handle
CtrlEvent
(
actionParam
);
super
.
on
CtrlEvent
(
actionParam
);
}
/**
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
浏览文件 @
3031388a
...
...
@@ -66,7 +66,7 @@ export class MDView extends MainView {
* @param {IActionParam} actionParam
* @memberof MDView
*/
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
if
(
Object
.
is
(
tag
,
'searchform'
))
{
this
.
handleSearchFormEvent
(
action
,
data
);
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/pickup-grid-view/pickup-grid-view.ts
浏览文件 @
3031388a
...
...
@@ -38,7 +38,7 @@ export class PickupGridView extends PickupView {
* @param {IActionParam} actionParam
* @memberof PickupGridView
*/
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
if
(
tag
!==
'grid'
)
{
return
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/pickup-view/pickup-view.ts
浏览文件 @
3031388a
...
...
@@ -49,7 +49,7 @@ export class PickupView extends MainView {
this
.
emit
(
'viewEvent'
,
{
data
:
this
.
selectData
,
tag
:
''
,
action
:
'close'
})
}
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
// TODO
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/exp-bar-control/exp-bar-control.ts
浏览文件 @
3031388a
...
...
@@ -21,7 +21,7 @@ export class ExpBarControl extends MainControl {
* @param {IActionParam} actionParam
* @memberof ExpBarControl
*/
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
const
{
selection
}
=
this
.
state
;
switch
(
action
)
{
...
...
@@ -73,7 +73,7 @@ export class ExpBarControl extends MainControl {
const
superParams
=
super
.
moduleInstall
();
return
{
...
superParams
,
handleCtrlEvent
:
this
.
handle
CtrlEvent
.
bind
(
this
)
onCtrlEvent
:
this
.
on
CtrlEvent
.
bind
(
this
)
};
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
3031388a
...
...
@@ -55,16 +55,16 @@ export class GridControl extends MDControl {
if
(
!
rowEditState
)
{
selectedRowKeys
.
value
=
[
record
.
srfkey
];
if
(
!
record
.
children
)
{
this
.
emit
(
"
onCtrlEvent"
,
{
tag
:
controlN
ame
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
record
)]
})
if
(
Object
.
is
(
rowActiveMode
,
1
))
{
this
.
emit
(
"
onCtrlEvent"
,
{
tag
:
controlN
ame
,
action
:
"rowClick"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"rowClick"
,
data
:
[
deepCopy
(
record
)]
})
}
}
}
},
onDblclick
:
()
=>
{
if
(
!
record
.
children
&&
Object
.
is
(
rowActiveMode
,
2
))
{
this
.
emit
(
"
onCtrlEvent"
,
{
tag
:
controlN
ame
,
action
:
"rowDbClick"
,
data
:
[
deepCopy
(
record
)]
})
this
.
emit
(
"
ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"rowDbClick"
,
data
:
[
deepCopy
(
record
)]
})
}
}
};
...
...
@@ -86,7 +86,7 @@ export class GridControl extends MDControl {
selection
.
push
(
select
);
}
})
this
.
emit
(
"
onCtrlEvent"
,
{
tag
:
controlN
ame
,
action
:
"selectionChange"
,
data
:
selection
})
this
.
emit
(
"
ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"selectionChange"
,
data
:
selection
})
},
};
});
...
...
@@ -189,8 +189,8 @@ export class GridControl extends MDControl {
selectedRowKeys
.
value
=
_selectedRowKeys
;
}
else
if
(
isSelectDefault
)
{
if
(
items
&&
items
.
length
>
0
)
{
this
.
emit
(
"
onC
trlEvent"
,
{
tag
:
controlN
ame
,
this
.
emit
(
"
c
trlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"selectionChange"
,
data
:
[
deepCopy
(
items
[
0
])],
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/md-control/md-control.ts
浏览文件 @
3031388a
...
...
@@ -67,14 +67,14 @@ export class MDControl extends MainControl {
Object
.
assign
(
arg
,
tempViewParams
);
// 组装视图其他查询参数
this
.
emit
(
'ctrlevent'
,
{
tag
:
controlName
.
toLowerCase
()
,
action
:
'beforeload'
,
data
:
arg
});
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
name
,
action
:
'beforeload'
,
data
:
arg
});
const
response
=
await
controlService
.
search
(
tempContext
,
arg
,
{
action
:
controlAction
.
fetchAction
,
isLoading
:
showBusyIndicator
,
});
if
(
response
.
status
||
response
.
status
==
200
)
{
this
.
state
.
items
=
response
.
data
;
this
.
emit
(
'ctrlevent'
,
{
tag
:
controlName
.
toLowerCase
()
,
action
:
'load'
,
data
:
response
.
data
});
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
name
,
action
:
'load'
,
data
:
response
.
data
});
if
(
enablePagingBar
)
{
this
.
state
.
mdCtrlPaging
.
pagination
[
'total'
]
=
response
.
total
;
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup-view-panel-control/pickup-view-panel-control.ts
浏览文件 @
3031388a
...
...
@@ -49,7 +49,7 @@ export class PickupViewPanelControl extends MainControl {
const
{
tag
,
action
,
data
}
=
actionParam
;
const
{
controlName
}
=
this
.
state
;
if
(
Object
.
is
(
"selectionChange"
,
action
))
{
this
.
emit
(
'ctrlEvent'
,
{
tag
:
controlN
ame
,
action
:
action
,
data
:
data
});
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
action
,
data
:
data
});
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/quick-search-form-control.ts
浏览文件 @
3031388a
...
...
@@ -21,8 +21,8 @@ export class QuickSearchFormControl extends FormControl {
*/
public
onEditorEvent
(
actionParam
:
IActionParam
)
{
super
.
onEditorEvent
(
actionParam
);
this
.
emit
(
"
onC
trlEvent"
,
{
tag
:
this
.
state
.
controlN
ame
,
this
.
emit
(
"
c
trlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"selectionChange"
,
data
:
this
.
state
.
data
,
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/search-form-control/search-form-control.ts
浏览文件 @
3031388a
...
...
@@ -19,9 +19,8 @@ export class SearchFormControl extends FormControl {
* @memberof SearchFormControl
*/
public
onSearch
()
{
const
{
controlName
}
=
this
.
state
;
this
.
emit
(
"onCtrlEvent"
,
{
tag
:
controlName
,
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
name
,
action
:
"selectionChange"
,
data
:
this
.
state
.
data
,
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/tree-control/tree-control.ts
浏览文件 @
3031388a
...
...
@@ -45,7 +45,7 @@ export class TreeControl extends MainControl {
currentselectedNode
.
value
=
e
.
node
;
if
(
!
multiple
)
{
selectedNodes
.
push
(
currentselectedNode
.
value
);
this
.
emit
(
"ctrlEvent"
,
{
tag
:
controlN
ame
,
action
:
'selectionchange'
,
data
:
deepCopy
(
selectedNodes
)
});
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
'selectionchange'
,
data
:
deepCopy
(
selectedNodes
)
});
}
}
}
...
...
@@ -125,7 +125,7 @@ export class TreeControl extends MainControl {
const
isSelectedAll
=
node
.
checked
;
// TODO 默认选中
// this.setDefaultSelection(items, isRoot, isSelectedAll);
this
.
emit
(
"ctrlEvent"
,
{
tag
:
controlN
ame
,
action
:
"load"
,
data
:
items
});
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
props
.
n
ame
,
action
:
"load"
,
data
:
items
});
}
catch
(
error
)
{
console
.
error
(
error
);
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
3031388a
...
...
@@ -75,7 +75,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent } = new Grid
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onC
trlEvent=
"onCtrlEvent"
@
c
trlEvent=
"onCtrlEvent"
></
{{
codeName
}}
SearchForm>
</template>
<a-button><filter-outlined
/></a-button>
...
...
@@ -89,7 +89,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent } = new Grid
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onC
trlEvent=
"onCtrlEvent"
@
c
trlEvent=
"onCtrlEvent"
></
{{
codeName
}}
SearchForm>
</template>
{{/if}}
...
...
@@ -101,7 +101,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent } = new Grid
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onC
trlEvent=
"onCtrlEvent"
@
c
trlEvent=
"onCtrlEvent"
></
{{
codeName
}}
QuickSearchForm>
</template>
{{/if}}
...
...
@@ -122,7 +122,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent } = new Grid
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onC
trlEvent=
"onCtrlEvent"
@
c
trlEvent=
"onCtrlEvent"
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
page
.
ctrls
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
浏览文件 @
3031388a
...
...
@@ -32,7 +32,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
confirm
,
handle
CtrlEvent
}
=
new
PickupGridView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
confirm
,
on
CtrlEvent
}
=
new
PickupGridView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -62,7 +62,7 @@ const { state, confirm, handleCtrlEvent } = new PickupGridView(viewState, props,
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction.grid"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"
handle
CtrlEvent"
@
ctrlEvent=
"
on
CtrlEvent"
></MainGrid>
</AppPickerUpGridViewLayout>
</template>
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
浏览文件 @
3031388a
...
...
@@ -28,7 +28,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
cancel
,
confirm
,
handle
CtrlEvent
}
=
new
PickupView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
cancel
,
confirm
,
on
CtrlEvent
}
=
new
PickupView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -56,7 +56,7 @@ const { state, cancel, confirm,handleCtrlEvent } = new PickupView(viewState, pro
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction.
{{
name
}}
"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"
handle
CtrlEvent"
@
ctrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
PickUpViewPanel>
{{/
eq
}}
{{/
page
.
ctrls
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
浏览文件 @
3031388a
...
...
@@ -25,7 +25,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块
const
{
state
,
handle
CtrlEvent
,
onToolbarEvent
}
=
new
TreeExpView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
on
CtrlEvent
,
onToolbarEvent
}
=
new
TreeExpView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -49,7 +49,7 @@ const { state, handleCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, pr
:showBusyIndicator=
"true"
:viewParams=
"state.viewParams"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"
handle
CtrlEvent"
@
ctrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
TreeExpBar>
{{/
eq
}}
{{/
page
.
ctrls
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU}}-menu/{{ctrls@APPMENU}}-menu.vue.hbs
浏览文件 @
3031388a
...
...
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps < Props > (), {
interface
CtrlEmit
{
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
{
state
,
menuSelect
}
=
new
MenuControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
3031388a
...
...
@@ -19,10 +19,10 @@ const props = withDefaults(defineProps < Props > (), {
// emit声明
interface
CtrlEmit
{
(
name
:
"
onC
trlEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
c
trlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
onEditorEvent
,
onComponentEvent
}
=
new
FormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
浏览文件 @
3031388a
...
...
@@ -27,7 +27,12 @@ const props = withDefaults(defineProps < Props > (), {
})
// emit声明
const
emit
=
defineEmits
<
{(
event
:
'onCtrlEvent'
,
value
:
IActionParam
):
void
;}
>
();
interface
CtrlEmit
{
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
// emit声明
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力
const
{
state
,
useCustom
,
onEditorEvent
,
onToolbarEvent
}
=
new
GridControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
浏览文件 @
3031388a
...
...
@@ -28,7 +28,7 @@ interface CtrlEmit {
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@QUICKSEARCHFORM}}-quick-search-form/{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
浏览文件 @
3031388a
...
...
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
interface
CtrlEmit
{
(
name
:
"
onC
trlEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
c
trlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
浏览文件 @
3031388a
...
...
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
interface
CtrlEmit
{
(
name
:
"
onC
trlEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
c
trlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
浏览文件 @
3031388a
...
...
@@ -32,10 +32,10 @@ interface CtrlEmit {
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handle
CtrlEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
on
CtrlEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
@@ -53,7 +53,7 @@ defineExpose({ state, name: '{{ctrl.name}}' });
:viewParams=
"state.viewParams"
:viewSubject=
"state.viewSubject"
:isBranchAvailable=
"true"
@
ctrlEvent=
"
handle
CtrlEvent"
@
ctrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
Tree>
{{/
eq
}}
{{/
ctrl
.
ctrls
}}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录