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

解决当左滑右滑行为不显示状态下仍可滑动 bug

上级 a8f6d127
......@@ -16,7 +16,7 @@
</template>
</ion-list>
<ion-list class="items">
<ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item">
<ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl />
<ion-item>
......@@ -59,7 +59,7 @@
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox>
<ion-label class="selectal-label" v-show="showCheack">全选</ion-label>
</div>
<ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item">
<ion-item-sliding ref="sliding" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl />
<#-- END:输出界面行为组 -->
......@@ -92,7 +92,7 @@
<ion-checkbox :checked="selectAllIschecked" v-show="showCheack" @ionChange="checkboxAll"></ion-checkbox>
<ion-label class="selectal-label" v-show="showCheack">全选</ion-label>
</div>
<ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item">
<ion-item-sliding :ref="item.srfkey" v-for="(item, index) in items" @click="item_click(item)" :key="index" class="app-mob-mdctrl-item" :disabled="item.sliding_disabled">
<#-- BENGIN:输出界面行为组 -->
<@outPutActionGroup ctrl />
<#-- END:输出界面行为组 -->
......
......@@ -531,6 +531,7 @@
}
this.items.forEach((item:any)=>{
Object.assign(item,this.getActionState(item));
this.setSlidingDisabled(item);
});
return response;
}
......@@ -864,6 +865,21 @@
this.$viewTool.calcActionItemAuthState(data,tempActionModel,this.deUIService);
return tempActionModel;
}
/**
* 判断列表项左滑右滑禁用状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public setSlidingDisabled(item:any){
item.sliding_disabled = true;
Object.keys(this.ActionModel).forEach((key,index) => {
if(item[key].visabled && item.sliding_disabled ){
item.sliding_disabled = false;
}
})
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册