From ccc7b2653434fbe4a55a91f99dd6f5b7aa5dd2df Mon Sep 17 00:00:00 2001 From: mrayi <1078464063@qq.com> Date: Mon, 25 Mar 2024 17:33:10 +0800 Subject: [PATCH] refactor(tabbar): move to script setup (#2989) --- .../src/nav/pages/tabbar/basic.vue | 6 +- .../src/nav/pages/tabbar/check.vue | 12 +- .../src/nav/pages/tabbar/color.vue | 16 +-- .../src/nav/pages/tabbar/fixed.vue | 6 +- .../src/nav/pages/tabbar/icon.vue | 6 +- .../src/nav/pages/tabbar/name.vue | 12 +- .../src/nav/pages/tabbar/quantity.vue | 17 +-- src/config.json | 2 + .../__snapshots__/index.spec.tsx.snap | 6 + .../__VUE/tabbar/__tests__/index.spec.tsx | 93 ++++++++++++-- src/packages/__VUE/tabbar/demo/basic.vue | 6 +- src/packages/__VUE/tabbar/demo/check.vue | 12 +- src/packages/__VUE/tabbar/demo/color.vue | 16 +-- src/packages/__VUE/tabbar/demo/fixed.vue | 6 +- src/packages/__VUE/tabbar/demo/icon.vue | 6 +- src/packages/__VUE/tabbar/demo/name.vue | 12 +- src/packages/__VUE/tabbar/demo/quantity.vue | 17 +-- src/packages/__VUE/tabbar/doc.en-US.md | 8 ++ src/packages/__VUE/tabbar/doc.md | 8 ++ src/packages/__VUE/tabbar/doc.taro.md | 8 ++ src/packages/__VUE/tabbar/index.taro.ts | 11 ++ src/packages/__VUE/tabbar/index.taro.vue | 107 ---------------- src/packages/__VUE/tabbar/index.ts | 11 ++ src/packages/__VUE/tabbar/index.vue | 92 -------------- src/packages/__VUE/tabbar/tabbar.taro.vue | 81 ++++++++++++ src/packages/__VUE/tabbar/tabbar.vue | 80 ++++++++++++ src/packages/__VUE/tabbaritem/index.taro.ts | 11 ++ src/packages/__VUE/tabbaritem/index.taro.vue | 101 --------------- src/packages/__VUE/tabbaritem/index.ts | 11 ++ src/packages/__VUE/tabbaritem/index.vue | 115 ------------------ .../__VUE/tabbaritem/tabbar-item.taro.vue | 88 ++++++++++++++ src/packages/__VUE/tabbaritem/tabbar-item.vue | 88 ++++++++++++++ src/packages/utils/useRelation/useParent.ts | 15 ++- 33 files changed, 599 insertions(+), 487 deletions(-) create mode 100644 src/packages/__VUE/tabbar/index.taro.ts delete mode 100644 src/packages/__VUE/tabbar/index.taro.vue create mode 100644 src/packages/__VUE/tabbar/index.ts delete mode 100644 src/packages/__VUE/tabbar/index.vue create mode 100644 src/packages/__VUE/tabbar/tabbar.taro.vue create mode 100644 src/packages/__VUE/tabbar/tabbar.vue create mode 100644 src/packages/__VUE/tabbaritem/index.taro.ts delete mode 100644 src/packages/__VUE/tabbaritem/index.taro.vue create mode 100644 src/packages/__VUE/tabbaritem/index.ts delete mode 100644 src/packages/__VUE/tabbaritem/index.vue create mode 100644 src/packages/__VUE/tabbaritem/tabbar-item.taro.vue create mode 100644 src/packages/__VUE/tabbaritem/tabbar-item.vue diff --git a/packages/nutui-taro-demo/src/nav/pages/tabbar/basic.vue b/packages/nutui-taro-demo/src/nav/pages/tabbar/basic.vue index de405d4c0c..06e2549544 100644 --- a/packages/nutui-taro-demo/src/nav/pages/tabbar/basic.vue +++ b/packages/nutui-taro-demo/src/nav/pages/tabbar/basic.vue @@ -1,5 +1,5 @@