From ebbd788fbb2c0b45d4473798efc57eec8ba74a25 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 18 六月 2024 14:51:16 +0800 Subject: [PATCH] 版本更新至2.11.5 --- src/views/demo/page/account/setting/MsgNotify.vue | 35 +++++++---------------------------- 1 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/views/demo/page/account/setting/MsgNotify.vue b/src/views/demo/page/account/setting/MsgNotify.vue index bc3cc06..b0b9ffb 100644 --- a/src/views/demo/page/account/setting/MsgNotify.vue +++ b/src/views/demo/page/account/setting/MsgNotify.vue @@ -1,13 +1,13 @@ <template> - <CollapseContainer title="鏂版秷鎭�氱煡" :canExpan="false"> + <CollapseContainer title="鏂版秷鎭�氱煡" :canExpand="false"> <List> - <template v-for="item in list" :key="item.key"> + <template v-for="item in msgNotifyList" :key="item.key"> <ListItem> <ListItemMeta> <template #title> {{ item.title }} <Switch - class="extra" + class="float-right mt-10px mr-30px" checked-children="寮�" un-checked-children="鍏�" default-checked @@ -22,32 +22,11 @@ </List> </CollapseContainer> </template> -<script lang="ts"> +<script lang="ts" setup> + import { CollapseContainer } from '@/components/Container'; import { List, Switch } from 'ant-design-vue'; - import { defineComponent } from 'vue'; - import { CollapseContainer } from '/@/components/Container/index'; - import { msgNotifyList } from './data'; - export default defineComponent({ - components: { - CollapseContainer, - List, - ListItem: List.Item, - ListItemMeta: List.Item.Meta, - Switch, - }, - setup() { - return { - list: msgNotifyList, - }; - }, - }); + const ListItem = List.Item; + const ListItemMeta = List.Item.Meta; </script> -<style lang="less" scoped> - .extra { - margin-top: 10px; - margin-right: 30px; - float: right; - } -</style> -- Gitblit v1.9.3