From 5a3a4457bf4a4d020000fc15c46b2cab2e1134be Mon Sep 17 00:00:00 2001 From: Eiinu Date: Thu, 9 Nov 2023 20:37:47 +0800 Subject: [PATCH] chore: remove unnecessary computed (#2647) --- src/packages/__VUE/actionsheet/index.taro.vue | 15 +++-------- src/packages/__VUE/actionsheet/index.vue | 15 +++-------- src/packages/__VUE/barrage/index.vue | 15 +++-------- src/packages/__VUE/collapse/index.taro.vue | 14 +++------- src/packages/__VUE/collapse/index.vue | 14 +++------- src/packages/__VUE/drag/index.taro.vue | 12 ++------- src/packages/__VUE/drag/index.vue | 14 +++------- src/packages/__VUE/ellipsis/index.taro.vue | 13 ++-------- src/packages/__VUE/ellipsis/index.vue | 15 +++-------- src/packages/__VUE/list/index.taro.vue | 12 ++------- src/packages/__VUE/list/index.vue | 12 ++------- src/packages/__VUE/noticebar/index.taro.vue | 14 ++-------- src/packages/__VUE/noticebar/index.vue | 13 ++-------- src/packages/__VUE/rate/index.taro.vue | 13 +++------- src/packages/__VUE/rate/index.vue | 13 +++------- src/packages/__VUE/rate/template.html | 2 +- src/packages/__VUE/sidenavbar/index.taro.vue | 16 +++--------- src/packages/__VUE/sidenavbar/index.vue | 16 +++--------- .../__VUE/sidenavbaritem/index.taro.vue | 17 +++--------- src/packages/__VUE/sidenavbaritem/index.vue | 17 +++--------- .../__VUE/subsidenavbar/index.taro.vue | 15 +++-------- src/packages/__VUE/subsidenavbar/index.vue | 15 +++-------- src/packages/__VUE/swiper/index.taro.vue | 10 +------ src/packages/__VUE/swiper/index.vue | 12 +-------- src/packages/__VUE/swiperitem/index.taro.vue | 14 +++------- src/packages/__VUE/swiperitem/index.vue | 14 +++------- src/packages/__VUE/table/index.taro.vue | 25 +++++------------- src/packages/__VUE/table/index.vue | 26 +++++-------------- src/packages/__VUE/timedetail/index.taro.vue | 24 +++++------------ src/packages/__VUE/timedetail/index.vue | 24 +++++------------ src/packages/__VUE/timeselect/index.taro.vue | 25 ++++-------------- src/packages/__VUE/timeselect/index.vue | 19 ++++---------- src/packages/__VUE/trendarrow/index.taro.vue | 12 +++------ src/packages/__VUE/trendarrow/index.vue | 12 +++------ 34 files changed, 122 insertions(+), 397 deletions(-) diff --git a/src/packages/__VUE/actionsheet/index.taro.vue b/src/packages/__VUE/actionsheet/index.taro.vue index f9b6edada4..96046481ac 100644 --- a/src/packages/__VUE/actionsheet/index.taro.vue +++ b/src/packages/__VUE/actionsheet/index.taro.vue @@ -9,7 +9,7 @@ :z-index="zIndex" @click-overlay="close" > - + {{ title }} @@ -40,12 +40,12 @@ diff --git a/src/packages/__VUE/collapse/index.taro.vue b/src/packages/__VUE/collapse/index.taro.vue index 2f71ee2f8b..c2e7576999 100644 --- a/src/packages/__VUE/collapse/index.taro.vue +++ b/src/packages/__VUE/collapse/index.taro.vue @@ -1,12 +1,12 @@ diff --git a/src/packages/__VUE/collapse/index.vue b/src/packages/__VUE/collapse/index.vue index 2f71ee2f8b..c2e7576999 100644 --- a/src/packages/__VUE/collapse/index.vue +++ b/src/packages/__VUE/collapse/index.vue @@ -1,12 +1,12 @@ diff --git a/src/packages/__VUE/drag/index.taro.vue b/src/packages/__VUE/drag/index.taro.vue index 04f13389f0..bf5650d4cf 100644 --- a/src/packages/__VUE/drag/index.taro.vue +++ b/src/packages/__VUE/drag/index.taro.vue @@ -2,8 +2,7 @@ -import { onMounted, onDeactivated, onActivated, reactive, ref, computed } from 'vue'; +import { onMounted, onDeactivated, onActivated, reactive, ref } from 'vue'; import { createComponent } from '@/packages/utils/create'; import requestAniFrame from '@/packages/utils/raf'; import { useTaroRect } from '@/packages/utils/useTaroRect'; @@ -75,12 +74,6 @@ export default create({ } as Record }); - const classes = computed(() => { - const prefixCls = 'nut-taro-drag'; - return { - [prefixCls]: true - }; - }); const domElem = Taro.getSystemInfoSync(); function getInfo() { useTaroRect(myDrag).then( @@ -234,7 +227,6 @@ export default create({ (myDrag as any).value.removeEventListener('touchend', touchEnd); }); return { - classes, myDrag, touchStart, touchMove, diff --git a/src/packages/__VUE/drag/index.vue b/src/packages/__VUE/drag/index.vue index c30733b1b5..94a66763fb 100644 --- a/src/packages/__VUE/drag/index.vue +++ b/src/packages/__VUE/drag/index.vue @@ -1,7 +1,7 @@