From 16257dd099d9811fb5caf78047ffc2425c401e0e Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 05 八月 2024 03:11:20 +0800 Subject: [PATCH] 工单工艺路线更新 --- src/views/demo/page/account/center/Article.vue | 29 ++++++++--------------------- 1 files changed, 8 insertions(+), 21 deletions(-) diff --git a/src/views/demo/page/account/center/Article.vue b/src/views/demo/page/account/center/Article.vue index 6cd68c4..8f44596 100644 --- a/src/views/demo/page/account/center/Article.vue +++ b/src/views/demo/page/account/center/Article.vue @@ -1,6 +1,6 @@ <template> <List item-layout="vertical" :class="prefixCls"> - <template v-for="item in list" :key="item.title"> + <template v-for="item in articleList" :key="item.title"> <ListItem> <ListItemMeta> <template #description> @@ -39,28 +39,15 @@ </template> </List> </template> -<script lang="ts"> - import { defineComponent } from 'vue'; +<script lang="ts" setup> import { List, Tag } from 'ant-design-vue'; import Icon from '@/components/Icon/Icon.vue'; import { actions, articleList } from './data'; - export default defineComponent({ - components: { - List, - ListItem: List.Item, - ListItemMeta: List.Item.Meta, - Tag, - Icon, - }, - setup() { - return { - prefixCls: 'account-center-article', - list: articleList, - actions, - }; - }, - }); + const ListItem = List.Item; + const ListItemMeta = List.Item.Meta; + + const prefixCls = 'account-center-article'; </script> <style lang="less" scoped> .account-center-article { @@ -70,13 +57,13 @@ } &__content { - color: rgb(0 0 0 / 65%); + color: @text-color-secondary; } &__action { display: inline-block; padding: 0 16px; - color: rgb(0 0 0 / 45%); + color: @text-color-secondary; &:nth-child(1), &:nth-child(2) { -- Gitblit v1.9.3