Skip to content

Commit

Permalink
chore: 优化部分代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Dec 12, 2024
1 parent 53fd8a4 commit 030dede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/components/UserSelect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
<template v-if="selectedKeys.length > 0">
已选中 {{ selectedKeys.length }} 条记录(可跨页)
</template>
<template v-else>
未选中任何记录
</template>
<template v-else>未选中任何记录</template>
<template v-if="selectedKeys.length > 0" #action>
<a-link @click="onClearSelected">清空</a-link>
</template>
Expand Down
12 changes: 7 additions & 5 deletions src/views/setting/message/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@
</a-button>
</template>
<template #toolbar-right>
<a-button type="primary" status="danger" :disabled="!selectedKeys.length" @click="onDelete">
<a-button type="primary" status="danger" :disabled="!selectedKeys.length" :title="!selectedKeys.length ? '请选择' : ''" @click="onDelete">
<template #icon><icon-delete /></template>
<span>删除</span>
<template #default>删除</template>
</a-button>
<a-button type="primary" :disabled="!selectedKeys.length" @click="onRead">
<span>标记为已读</span>
<a-button type="primary" :disabled="!selectedKeys.length" :title="!selectedKeys.length ? '请选择' : ''" @click="onRead">
<template #default>标记为已读</template>
</a-button>
<a-button type="primary" :disabled="selectedKeys.length" :title="!selectedKeys.length ? '请选择' : ''" @click="onReadAll">
<template #default>全部已读</template>
</a-button>
<a-button type="primary" :disabled="selectedKeys.length" @click="onReadAll">全部已读</a-button>
</template>
<template #title="{ record }">
<a-tooltip :content="record.content"><span>{{ record.title }}</span></a-tooltip>
Expand Down

0 comments on commit 030dede

Please sign in to comment.