t-button in navbar

This commit is contained in:
Timi
2026-10-22 17:58:35 +08:00
parent 6efc6f02d6
commit a69f2e17fa
53 changed files with 320 additions and 307 deletions
+6 -5
View File
@@ -7,12 +7,13 @@
@left-click="$router.back()"
>
<template #right>
<button
class="nav-action"
type="button"
<t-button
@click="saveNotification"
v-text="scheduleAtText ? '提交' : '发送'"
></button>
theme="primary"
variant="text"
size="small"
:content="scheduleAtText ? '提交' : '发送'"
/>
</template>
</t-navbar>
<div v-can="corePermissionCodes.notify.create" class="notify-management-create">
+6 -6
View File
@@ -7,14 +7,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="detail?.id && canDeleteNotify"
class="nav-action danger"
type="button"
@click="confirmDelete"
>
删除
</button>
theme="danger"
variant="text"
size="small"
content="删除"
/>
</template>
</t-navbar>
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
+8 -1
View File
@@ -8,7 +8,14 @@
@left-click="$router.back()"
>
<template #right>
<button v-if="canReadNotify && canCreateNotify" class="nav-action" type="button" @click="toCreate">新建</button>
<t-button
v-if="canReadNotify && canCreateNotify"
@click="toCreate"
theme="primary"
variant="text"
size="small"
content="新建"
/>
</template>
</t-navbar>
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
+6 -6
View File
@@ -7,14 +7,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="detail?.id"
class="nav-action danger"
type="button"
@click="confirmDelete"
>
删除
</button>
theme="danger"
variant="text"
size="small"
content="删除"
/>
</template>
</t-navbar>
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
+6 -6
View File
@@ -8,14 +8,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="canReadNotify && 0 < unreadCount"
class="nav-action"
type="button"
@click="markAllRead"
>
全部已读
</button>
theme="primary"
variant="text"
size="small"
content="全部已读"
/>
</template>
</t-navbar>
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">