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