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 }}