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' }"> - - - + + + \ 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 @@ - \ 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; // 更新选中的文字 +}; + + +