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
+5 -4
View File
@@ -7,14 +7,15 @@
@left-click="$router.back()"
>
<template #right>
<button
class="nav-action nav-action-icon"
type="button"
<t-button
aria-label="刷新"
@click="reload"
theme="default"
variant="text"
size="small"
>
<t-icon name="refresh" size="1.25rem" />
</button>
</t-button>
</template>
</t-navbar>
<div v-can="permissionCodes.stat.read" class="gao-chart-page order-data-charts">
+8 -1
View File
@@ -7,7 +7,14 @@
@left-click="$router.back()"
>
<template #right>
<button v-if="userStore.hasPermissions(permissionCodes.productCategory.update)" class="nav-action" type="button" @click="saveSort">保存</button>
<t-button
v-if="userStore.hasPermissions(permissionCodes.productCategory.update)"
@click="saveSort"
theme="primary"
variant="text"
size="small"
content="保存"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.productCategory.update" class="product-category-rank">
+5 -4
View File
@@ -7,14 +7,15 @@
@left-click="$router.back()"
>
<template #right>
<button
class="nav-action nav-action-icon"
type="button"
<t-button
aria-label="刷新"
@click="reload"
theme="default"
variant="text"
size="small"
>
<t-icon name="refresh" size="1.25rem" />
</button>
</t-button>
</template>
</t-navbar>
<div v-can="permissionCodes.stat.read" class="gao-chart-page product-data-charts">
+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="save"
>
保存
</button>
theme="primary"
variant="text"
size="small"
content="保存"
/>
</template>
</t-navbar>
<div v-can="savePermissionCode" class="product-edit">
@@ -7,14 +7,15 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="userStore.hasPermissions(permissionCodes.productStock.create)"
class="nav-action"
type="button"
:disabled="!canSubmit"
@click="submit"
v-text="isSaving ? '提交中' : '提交'"
></button>
theme="primary"
variant="text"
size="small"
:content="isSaving ? '提交中' : '提交'"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
@@ -8,15 +8,15 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="canReadAndCreate"
class="nav-action"
type="button"
:disabled="!canContinue"
@click="toConfigure"
>
下一步
</button>
theme="primary"
variant="text"
size="small"
content="下一步"
/>
</template>
</t-navbar>
<main v-can="permissionCodes.productStock.create" class="page-content scroll list">
+6 -6
View File
@@ -8,14 +8,14 @@
@left-click="$router.back()"
>
<template #right>
<button
<t-button
v-if="canBatchIn"
class="nav-action"
type="button"
@click="openBatchIn"
>
批量入库
</button>
theme="primary"
variant="text"
size="small"
content="批量入库"
/>
</template>
</t-navbar>
<main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll list">