提交 1c817e34 编写于 作者: zhujiamin's avatar zhujiamin

点击滑块按钮后,关闭所有滑块

上级 ecc8fbb3
......@@ -8,13 +8,13 @@
${ctrl.render.code}
</#if>
<#if ctrl.getPSSysPFPlugin().getPFPluginType?? && ctrl.getPSSysPFPlugin().getPFPluginType()?? && ctrl.getPSSysPFPlugin().getPFPluginType()=='LIST_ITEMRENDER'>
<ion-list class="items">
<ion-list class="items" ref="ionlist">
<template v-if="(viewType == 'DEMOBMDVIEW9') && controlStyle != 'SWIPERVIEW' ">
${ctrl.render.code}
<ion-button v-if="!isTempMode && !allLoaded && needLoadMore" class="loadmore_btn" @click="loadBottom">{{$t('app.button.loadmore')}}</ion-button>
</template>
</ion-list>
<ion-list class="items">
<ion-list class="items" ref="ionlist">
<ion-item-sliding :ref="item.srfkey" v-for="item in items" @click="item_click(item)" :key="item.srfkey" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled" @ionDrag="ionDrag">
<#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl />
......@@ -51,7 +51,7 @@
</#if>
<#else>
<ion-list class="items">
<ion-list class="items" ref="ionlist">
<template v-if="(viewType == 'DEMOBMDVIEW9') && controlStyle != 'SWIPERVIEW' ">
<div class="selectall">
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox>
......@@ -83,7 +83,7 @@
<#-- <ion-button v-if="!isTempMode && !allLoaded && needLoadMore" class="loadmore_btn" @click="loadBottom">{{$t('app.button.loadmore')}}</ion-button> -->
</template>
</ion-list>
<ion-list class="items">
<ion-list class="items" ref="ionlist">
<#--多数据视图||多数据视图(部件视图)-->
<template v-if="(viewType == 'DEMOBMDVIEW') && controlStyle != 'SWIPERVIEW' ">
<div class="selectall">
......
......@@ -980,11 +980,12 @@
* @memberof ${srfclassname('${ctrl.name}')}
*/
public closeSlidings () {
let slidings:any = this.$refs.sliding;
if (slidings) {
slidings.forEach((sliding:any) => {
sliding.close()
})
let ionlist:any = this.$refs.ionlist;
if (ionlist.children) {
ionlist.children.forEach((sliding:any) => {
sliding.close();
sliding.closeOpened();
})
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册