t-button in navbar
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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,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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user