提交 d6d1e994 编写于 作者: KK's avatar KK

footer 按钮拖动

上级 e1cbf63b
...@@ -27,9 +27,11 @@ ...@@ -27,9 +27,11 @@
</#list> </#list>
<#list ctrl.getPSDEToolbarItems() as item> <#list ctrl.getPSDEToolbarItems() as item>
<#if itemsLength == 1 && item_index == 0 && item.getPFPartCodeType() == "ITEM_DEUIACTION"> <#if itemsLength == 1 && item_index == 0 && item.getPFPartCodeType() == "ITEM_DEUIACTION">
<div :id="viewtag" class="bottom_button" :style="button_style">
${P.getPartCode(item).code} ${P.getPartCode(item).code}
</div>
<#else> <#else>
<ion-button v-if="getToolBarLimit" @click="popUpGroup(true)" class="app-view-toolbar-button"><ion-icon name="chevron-up-circle-outline"></ion-icon></ion-button> <ion-button :id="viewtag" v-if="getToolBarLimit" @click="popUpGroup(true)" class="app-view-toolbar-button"><ion-icon name="chevron-up-circle-outline"></ion-icon></ion-button>
<van-popup v-if="getToolBarLimit" class="popup" v-model="showGrop" round position="bottom"> <van-popup v-if="getToolBarLimit" class="popup" v-model="showGrop" round position="bottom">
<div class="container"> <div class="container">
<#list ctrl.getPSDEToolbarItems() as item> <#list ctrl.getPSDEToolbarItems() as item>
......
...@@ -132,6 +132,16 @@ ...@@ -132,6 +132,16 @@
this.afterMounted(); this.afterMounted();
} }
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() == 'TOOLBAR' && ctrl.getToolbarStyle?? && ctrl.getToolbarStyle() == 'MOBBOTTOMMENU'>
/**
* 底部按钮样式
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public button_style = "";
</#if>
</#list>
/** /**
* 执行mounted后的逻辑 * 执行mounted后的逻辑
...@@ -148,6 +158,12 @@ ...@@ -148,6 +158,12 @@
} }
this.thirdPartyInit(); this.thirdPartyInit();
<#if mounted_block??>${mounted_block}</#if> <#if mounted_block??>${mounted_block}</#if>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() == 'TOOLBAR' && ctrl.getToolbarStyle?? && ctrl.getToolbarStyle() == 'MOBBOTTOMMENU'>
// 拖动样式
AnimationService.draggable(document.getElementById(viewtag),(style:any)=>{this.button_style = style});
</#if>
</#list>
} }
/** /**
......
...@@ -33,6 +33,7 @@ import ${srfclassname('${curAppEntity.getCodeName()}')}UIService from '@/ui-serv ...@@ -33,6 +33,7 @@ import ${srfclassname('${curAppEntity.getCodeName()}')}UIService from '@/ui-serv
<#if appde??> <#if appde??>
import ${srfclassname('${appde.getCodeName()}')}UIService from '@/ui-service/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-action'; import ${srfclassname('${appde.getCodeName()}')}UIService from '@/ui-service/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-action';
</#if> </#if>
import { AnimationService } from '@ibiz-core/service/animation-service'
<#if import_block??> <#if import_block??>
${import_block} ${import_block}
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册