From f494a44d814f43ff04bcc3ae9eaf6a9c8dfad209 Mon Sep 17 00:00:00 2001 From: yuanteng <1876787513@qq.com> Date: Mon, 11 Nov 2024 09:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Orders/OrderList.vue | 107 +++++++------ src/views/test.vue | 285 +++++---------------------------- 2 files changed, 98 insertions(+), 294 deletions(-) diff --git a/src/views/Orders/OrderList.vue b/src/views/Orders/OrderList.vue index 87c84dc..825631a 100644 --- a/src/views/Orders/OrderList.vue +++ b/src/views/Orders/OrderList.vue @@ -21,9 +21,9 @@ :header-cell-style="{ 'text-align': 'center' }"> - - - + + + @@ -47,9 +47,9 @@ - - - + + + @@ -60,13 +60,13 @@ - + 详情 - + 发货 - + 取消订单 @@ -78,55 +78,47 @@ :small="null" :disabled="null" :background="null" layout="total, sizes, prev, pager, next, jumper" :total="total" /> - + + - + - + + + + - + - + - --> + \ No newline at end of file diff --git a/src/views/test.vue b/src/views/test.vue index f68b5b4..8993473 100644 --- a/src/views/test.vue +++ b/src/views/test.vue @@ -1,252 +1,41 @@ - switch parent border: switch child - border: - - - - - State: {{ props.row.state }} - City: {{ props.row.city }} - Address: {{ props.row.address }} - Zip: {{ props.row.zip }} - Family - - - - - - - - - - - - - + + + 文字1 + + + 文字2 + + - \ No newline at end of file +const selectedText = ref(1); // 用来存储选中的文字 + +// 根据选中状态动态返回样式 +const getStyle = (textNum) => { + return { + 'border-bottom': selectedText.value === textNum ? '2px solid black' : 'none', + 'cursor': 'pointer' + }; +}; + +const selectText = (textNum) => { + selectedText.value = textNum; // 更新选中的文字 +}; + + +
State: {{ props.row.state }}
City: {{ props.row.city }}
Address: {{ props.row.address }}
Zip: {{ props.row.zip }}