From d357ca671ba055ea941e90ce4683f9acc0b33307 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 22 Oct 2024 17:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tab-view/index.vue | 4 ++ src/pages/commodity/commodity.vue | 16 ++++-- .../commodity/components/comments/index.vue | 13 +++-- .../commodity/components/comments/rate.vue | 53 +++++++++++++++++++ .../commodity/components/comments/tags.vue | 13 +++++ 5 files changed, 92 insertions(+), 7 deletions(-) create mode 100644 src/pages/commodity/components/comments/rate.vue create mode 100644 src/pages/commodity/components/comments/tags.vue diff --git a/src/components/tab-view/index.vue b/src/components/tab-view/index.vue index 5614796..c1b861d 100644 --- a/src/components/tab-view/index.vue +++ b/src/components/tab-view/index.vue @@ -33,6 +33,10 @@ function changeCurrent(index){ ctx.current = index } +defineExpose({ + changeCurrent +}) + function isCurrent(index){ return ctx.current === index } diff --git a/src/pages/commodity/commodity.vue b/src/pages/commodity/commodity.vue index b604188..2d8f614 100644 --- a/src/pages/commodity/commodity.vue +++ b/src/pages/commodity/commodity.vue @@ -13,7 +13,7 @@ - +