提交 50c62b25 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新视图布局面板逻辑

上级 9942c5c5
...@@ -31,13 +31,17 @@ ...@@ -31,13 +31,17 @@
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
<#-- 逻辑事件在数据部件里时 --> <#-- 界面行为数据部件与控件容器相同时 -->
<#else> <#else>
xData = this; xData = this;
<#if xData.getControlType?? && xData.getControlType() == 'VIEWLAYOUTPANEL'>
datas = [this.layoutData];
<#else>
if (_this.getDatas && _this.getDatas instanceof Function) { if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()]; datas = [..._this.getDatas()];
} }
</#if> </#if>
</#if>
<#else> <#else>
if (_this.getDatas && _this.getDatas instanceof Function) { if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()]; datas = [..._this.getDatas()];
......
...@@ -415,8 +415,14 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -415,8 +415,14 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
* @public * @public
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public handleButtonClick($event: any) { public handleButtonClick(name: string, $event?: any) {
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#if panelItem.getItemType() == 'BUTTON' && panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
if (Object.is(name, '${panelItem.name}')) {
this.layoutpanel_button_${panelItem.name}_click(null, '', $event);
}
</#if>
</#list>
} }
<#if view.getPSViewLayoutPanel().getPSAppViewLogics()??> <#if view.getPSViewLayoutPanel().getPSAppViewLogics()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册