From 38430ddb8612fce15a2f1c940f9bd57d4da3e70b Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 16 九月 2021 11:59:39 +0800 Subject: [PATCH] add new key --- components/uni-swipe-action/uni-swipe-action.vue | 98 ++++++++++++++++++++++++------------------------ 1 files changed, 49 insertions(+), 49 deletions(-) diff --git a/components/uni-swipe-action/uni-swipe-action.vue b/components/uni-swipe-action/uni-swipe-action.vue index 9ad5c5e..c8b656c 100644 --- a/components/uni-swipe-action/uni-swipe-action.vue +++ b/components/uni-swipe-action/uni-swipe-action.vue @@ -1,58 +1,58 @@ -<template> - <view> - <slot></slot> - </view> -</template> - +<template> + <view> + <slot></slot> + </view> +</template> + <script> /** * SwipeAction 婊戝姩鎿嶄綔 * @description 閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣� * @tutorial https://ext.dcloud.net.cn/plugin?id=181 - */ - export default { - data() { - return {}; - }, - provide() { - return { - swipeaction: this - } - }, - created() { - this.children = [] - }, - methods: { - closeOther(vm) { - let children = this.children - children.forEach((item, index) => { - if (vm === item) return - // 鏀粯瀹濇墽琛屼互涓嬫搷浣� - // #ifdef MP-ALIPAY - if (item.isopen) { - item.close() - } + */ + export default { + data() { + return {}; + }, + provide() { + return { + swipeaction: this + } + }, + created() { + this.children = [] + }, + methods: { + closeOther(vm) { + let children = this.children + children.forEach((item, index) => { + if (vm === item) return + // 鏀粯瀹濇墽琛屼互涓嬫搷浣� + // #ifdef MP-ALIPAY + if (item.isopen) { + item.close() + } // #endif - - // app vue 绔�乭5 銆佸井淇°�佹敮浠樺疂 鎵ц浠ヤ笅鎿嶄綔 - // #ifdef APP-VUE || H5 || MP-WEIXIN - let position = item.position[0] - let show = position.show - if (show) { - position.show = false - } + + // app vue 绔�乭5 銆佸井淇°�佹敮浠樺疂 鎵ц浠ヤ笅鎿嶄綔 + // #ifdef APP-VUE || H5 || MP-WEIXIN + let position = item.position[0] + let show = position.show + if (show) { + position.show = false + } // #endif - - // nvue 鎵ц浠ヤ笅鎿嶄綔 + + // nvue 鎵ц浠ヤ笅鎿嶄綔 // #ifdef APP-NVUE || MP-BAIDU || MP-QQ || MP-TOUTIAO - item.close() - // #endif - }) - } - } - } -</script> - -<style> - + item.close() + // #endif + }) + } + } + } +</script> + +<style> + </style> -- Gitblit v1.8.0