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 -6
View File
@@ -7,13 +7,13 @@
@left-click="$router.back()"
>
<template #right>
<button
class="nav-action"
type="button"
<t-button
@click="save"
>
保存
</button>
theme="primary"
variant="text"
size="small"
content="保存"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit">
+6 -6
View File
@@ -7,13 +7,13 @@
@left-click="$router.back()"
>
<template #right>
<button
class="nav-action"
type="button"
<t-button
@click="save"
>
兑换
</button>
theme="primary"
variant="text"
size="small"
content="兑换"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.pointRedemption.create" class="redemption-create">
+6 -6
View File
@@ -7,14 +7,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="rule?.id && canUpdate"
class="nav-action"
type="button"
@click="toEdit"
>
编辑
</button>
theme="primary"
variant="text"
size="small"
content="编辑"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.pointRule.read" class="point-rule-detail">
+6 -6
View File
@@ -7,14 +7,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="userStore.hasPermissions(savePermissionCode)"
class="nav-action"
type="button"
@click="saveRule"
>
保存
</button>
theme="primary"
variant="text"
size="small"
content="保存"
/>
</template>
</t-navbar>
<div v-can="pageAccess" class="point-rule-edit">
+7 -1
View File
@@ -7,7 +7,13 @@
@left-click="$router.back()"
>
<template #right>
<button class="nav-action" type="button" @click="saveSort">保存</button>
<t-button
@click="saveSort"
theme="primary"
variant="text"
size="small"
content="保存"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.pointRule.update" class="point-rule-sort">