656 lines
18 KiB
Vue
656 lines
18 KiB
Vue
<template>
|
||
<t-navbar
|
||
fixed
|
||
:z-index="20"
|
||
title="批量入库"
|
||
left-arrow
|
||
@left-click="$router.back()"
|
||
>
|
||
<template #right>
|
||
<div
|
||
v-if="pageNavBarRight.icon || pageNavBarRight.text"
|
||
class="nav-right-slot"
|
||
>
|
||
<t-badge
|
||
v-if="pageNavBarRight.icon && pageNavBarRight.badge !== undefined"
|
||
class="badge"
|
||
:count="pageNavBarRight.badge"
|
||
:max-count="99"
|
||
:show-zero="false"
|
||
>
|
||
<button class="button" type="button" :disabled="pageNavBarRight.disabled" @click="handlePageNavBarRightAction">
|
||
<t-icon :name="pageNavBarRight.icon" size="1.25rem" />
|
||
</button>
|
||
</t-badge>
|
||
<button
|
||
v-else-if="pageNavBarRight.icon"
|
||
class="button"
|
||
type="button"
|
||
:disabled="pageNavBarRight.disabled"
|
||
@click="handlePageNavBarRightAction"
|
||
>
|
||
<t-icon :name="pageNavBarRight.icon" size="1.25rem" />
|
||
</button>
|
||
<button
|
||
v-else
|
||
class="nav-text"
|
||
type="button"
|
||
:disabled="pageNavBarRight.disabled"
|
||
:style="{ color: pageNavBarRight.disabled ? 'var(--td-text-color-disabled)' : pageNavBarRight.textColor || 'var(--td-text-color-primary, #333)' }"
|
||
:class="{ clickable: !!pageNavBarRight.action, disabled: pageNavBarRight.disabled }"
|
||
@click="handlePageNavBarRightAction"
|
||
v-text="pageNavBarRight.text"
|
||
/>
|
||
</div>
|
||
</template>
|
||
</t-navbar>
|
||
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
|
||
<t-form class="form" label-width="5rem" v-entrance-transition>
|
||
<t-form-item label="入库备注" required-mark>
|
||
<div class="remark-wrap">
|
||
<t-input
|
||
v-model="productStockBatchStore.remark"
|
||
:disabled="isSaving"
|
||
borderless
|
||
maxlength="500"
|
||
autosize
|
||
placeholder="本批次入库备注"
|
||
@update:model-value="invalidateRequestNo"
|
||
/>
|
||
<t-button
|
||
type="button"
|
||
size="extra-small"
|
||
variant="outline"
|
||
:content="quickRemarkText"
|
||
:disabled="isSaving"
|
||
@click="applyQuickRemark"
|
||
/>
|
||
</div>
|
||
</t-form-item>
|
||
<t-form-item label-width="0">
|
||
<attachment-selector
|
||
v-model:items="productStockBatchStore.attachmentItems"
|
||
:upload="uploadPhotos"
|
||
:busy="isSaving"
|
||
title="共有入库记录(无专有记录时使用)"
|
||
@update:items="invalidateRequestNo"
|
||
/>
|
||
</t-form-item>
|
||
</t-form>
|
||
<t-form
|
||
v-if="productStockBatchStore.selectedItemList.length"
|
||
class="items form"
|
||
label-width="0"
|
||
v-entrance-transition
|
||
>
|
||
<t-form-item
|
||
v-for="item in productStockBatchStore.selectedItemList"
|
||
:key="item.sku.id"
|
||
class="item"
|
||
label-width="0"
|
||
>
|
||
<div class="content">
|
||
<div class="main">
|
||
<div class="left">
|
||
<t-image
|
||
v-if="getProductPhotoURL(item.sku)"
|
||
:src="getProductPhotoURL(item.sku)"
|
||
:alt="item.productName || '产品图片'"
|
||
fit="cover"
|
||
class="avatar"
|
||
/>
|
||
<div
|
||
v-else
|
||
class="avatar fallback"
|
||
v-text="(item.productName || item.sku.name || '产').slice(0, 1)"
|
||
/>
|
||
</div>
|
||
<div class="right">
|
||
<div class="header">
|
||
<div class="title">
|
||
<div class="name clip-text" v-text="item.productName || '未命名产品'" />
|
||
<t-tag
|
||
v-if="!isDefaultSku(item) && item.sku.name"
|
||
size="small"
|
||
theme="primary"
|
||
variant="light-outline"
|
||
:content="item.sku.name"
|
||
/>
|
||
</div>
|
||
<t-button
|
||
theme="danger"
|
||
variant="text"
|
||
size="extra-small"
|
||
content="移除"
|
||
:disabled="isSaving"
|
||
@click.stop="removeItem(item.sku.id || '')"
|
||
/>
|
||
</div>
|
||
<div class="input">
|
||
<t-stepper
|
||
v-model="item.quantity"
|
||
class="quantity"
|
||
:max="Number.MAX_SAFE_INTEGER"
|
||
:min="0"
|
||
size="large"
|
||
:step="getProductQuantityStep(item.sku)"
|
||
:integer="!item.sku.allowDecimalQuantity"
|
||
:disabled="isSaving"
|
||
theme="outline"
|
||
@change="invalidateRequestNo"
|
||
/>
|
||
<t-button
|
||
size="extra-small"
|
||
variant="outline"
|
||
:content="getSelectedUnitName(item)"
|
||
:disabled="isSaving"
|
||
@click.stop="openUnitPicker(item)"
|
||
/>
|
||
<t-button
|
||
size="extra-small"
|
||
variant="outline"
|
||
content="专有入库记录"
|
||
:disabled="isSaving"
|
||
:aria-expanded="isAttachmentVisible(item.sku.id || '')"
|
||
@click.stop="toggleAttachmentVisibility(item.sku.id || '')"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<attachment-selector
|
||
v-if="isAttachmentVisible(item.sku.id || '')"
|
||
v-model:items="item.attachmentItems"
|
||
:upload="uploadPhotos"
|
||
title=""
|
||
:busy="isSaving"
|
||
@update:items="invalidateRequestNo"
|
||
/>
|
||
</div>
|
||
</t-form-item>
|
||
</t-form>
|
||
<t-empty v-else description="没有已选 SKU,请返回重新选择" />
|
||
<t-popup v-model="unitPickerVisible" placement="bottom">
|
||
<t-picker v-model="unitPickerDraft" :columns="unitPickerOptions" title="选择入库单位" @cancel="unitPickerVisible = false" @confirm="confirmUnitPicker" />
|
||
</t-popup>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
import { onBeforeRouteLeave } from "vue-router";
|
||
import { useUserStore } from "timi-web-api";
|
||
import { useCurrentStoreStore } from "@/store/currentStoreStore";
|
||
import AttachmentSelector from "@/components/attachmentSelector/AttachmentSelector.vue";
|
||
import ProductAPI from "@/api/ProductAPI";
|
||
import type { ProductSkuUnit, ProductStockManualInBatchItem, ProductStockManualInBatchRequest } from "@/types/Product";
|
||
import type { PhotoItem } from "@/types/Photo";
|
||
import { getErrorMessage } from "@/utils/error";
|
||
import { createProductRequestNo, getProductPhotoURL, getProductQuantityStep } from "@/utils/product";
|
||
import { emitListDataChanged, listDataEventKeys } from "@/utils/listDataEvents";
|
||
import { Message } from "@/utils/message";
|
||
import { permissionCodes } from "@/utils/permission";
|
||
import { getCurrentStoreId } from "@/utils/store";
|
||
import { uploadPhotoList } from "@/utils/photo";
|
||
|
||
const pageNavBarRight = reactive({
|
||
icon: "",
|
||
badge: undefined as number | undefined,
|
||
text: "",
|
||
textColor: "",
|
||
disabled: false,
|
||
action: undefined as (() => void | Promise<void>) | undefined
|
||
});
|
||
|
||
function setPageNavBarRightText(value?: string, color?: string, action?: () => void | Promise<void>): void {
|
||
pageNavBarRight.text = value || "";
|
||
pageNavBarRight.textColor = color || "";
|
||
pageNavBarRight.disabled = false;
|
||
pageNavBarRight.action = action;
|
||
if (value) {
|
||
pageNavBarRight.badge = undefined;
|
||
pageNavBarRight.icon = "";
|
||
}
|
||
}
|
||
|
||
function setPageNavBarRightDisabled(value: boolean): void {
|
||
pageNavBarRight.disabled = value;
|
||
}
|
||
|
||
function clearPageNavBarRight(): void {
|
||
Object.assign(pageNavBarRight, { icon: "", badge: undefined, text: "", textColor: "", disabled: false, action: undefined });
|
||
}
|
||
|
||
async function handlePageNavBarRightAction(): Promise<void> {
|
||
if (pageNavBarRight.disabled || !pageNavBarRight.action) {
|
||
return;
|
||
}
|
||
await pageNavBarRight.action();
|
||
}
|
||
|
||
import { type ProductStockBatchSelection, useProductStockBatchStore } from "@/store/productStockBatchStore";
|
||
|
||
type PickerValue = string | number;
|
||
|
||
defineOptions({ name: "ProductStockBatchConfigure" });
|
||
|
||
const router = useRouter();
|
||
const currentStoreStore = useCurrentStoreStore();
|
||
const productStockBatchStore = useProductStockBatchStore();
|
||
const userStore = useUserStore();
|
||
const activeStoreId = ref("");
|
||
const isSaving = ref(false);
|
||
const uploadCount = ref(0);
|
||
const visibleAttachmentSkuIdSet = ref<Set<string>>(new Set());
|
||
const unitPickerVisible = ref(false);
|
||
const unitPickerSkuId = ref("");
|
||
const unitPickerDraft = ref<PickerValue[]>([]);
|
||
const quickRemarkText = "正常入库";
|
||
const unitPickerOptions = computed(() => {
|
||
const item = productStockBatchStore.selectedItemList.find(candidate => candidate.sku.id === unitPickerSkuId.value);
|
||
return getSelectableUnits(item).map(unit => ({ label: unit.name || "未命名单位", value: unit.id || "" }));
|
||
});
|
||
const canSubmit = computed(() => {
|
||
const itemList = getSubmitItemList();
|
||
return !isSaving.value
|
||
&& uploadCount.value === 0
|
||
&& !!productStockBatchStore.remark.trim()
|
||
&& 0 < itemList.length
|
||
&& itemList.every(item => isItemValid(item));
|
||
});
|
||
|
||
function getSelectableUnits(item?: ProductStockBatchSelection): ProductSkuUnit[] {
|
||
return (item?.sku.unitList || []).filter(unit => unit.allowPurchase && !!unit.id);
|
||
}
|
||
|
||
function getSelectedUnitName(item: ProductStockBatchSelection): string {
|
||
return getSelectableUnits(item).find(unit => unit.id === item.skuUnitId)?.name || "选择入库单位";
|
||
}
|
||
|
||
function isDefaultSku(item: ProductStockBatchSelection): boolean {
|
||
return !item.sku.specValueIdList?.length;
|
||
}
|
||
|
||
function getAttachmentList(itemList: PhotoItem[]): NonNullable<ProductStockManualInBatchItem["attachmentList"]> {
|
||
return itemList.flatMap(item => item.tempFileId ? [{
|
||
tempFileId: item.tempFileId,
|
||
attachType: item.attachType || "PHOTO",
|
||
name: item.attachment?.name
|
||
}] : []);
|
||
}
|
||
|
||
function invalidateRequestNo(): void {
|
||
productStockBatchStore.requestNo = "";
|
||
}
|
||
|
||
function applyQuickRemark(): void {
|
||
if (isSaving.value) {
|
||
return;
|
||
}
|
||
productStockBatchStore.remark = quickRemarkText;
|
||
invalidateRequestNo();
|
||
}
|
||
|
||
function isAttachmentVisible(skuId: string): boolean {
|
||
return visibleAttachmentSkuIdSet.value.has(skuId);
|
||
}
|
||
|
||
function toggleAttachmentVisibility(skuId: string): void {
|
||
if (isSaving.value || !skuId) {
|
||
return;
|
||
}
|
||
const nextVisibleAttachmentSkuIdSet = new Set(visibleAttachmentSkuIdSet.value);
|
||
if (nextVisibleAttachmentSkuIdSet.has(skuId)) {
|
||
nextVisibleAttachmentSkuIdSet.delete(skuId);
|
||
} else {
|
||
nextVisibleAttachmentSkuIdSet.add(skuId);
|
||
}
|
||
visibleAttachmentSkuIdSet.value = nextVisibleAttachmentSkuIdSet;
|
||
}
|
||
|
||
function isQuantityZero(item: ProductStockBatchSelection): boolean {
|
||
return !item.quantity.trim() || Number(item.quantity) === 0;
|
||
}
|
||
|
||
function getSubmitItemList(): ProductStockBatchSelection[] {
|
||
return productStockBatchStore.selectedItemList.filter(item => !isQuantityZero(item));
|
||
}
|
||
|
||
function isQuantityValid(item: ProductStockBatchSelection): boolean {
|
||
if (!/^\d+(?:\.\d{1,3})?$/.test(item.quantity) || !(0 < Number(item.quantity))) {
|
||
return false;
|
||
}
|
||
return item.sku.allowDecimalQuantity || /^\d+$/.test(item.quantity);
|
||
}
|
||
|
||
function isItemValid(item: ProductStockBatchSelection): boolean {
|
||
const unitList = getSelectableUnits(item);
|
||
const hasUnit = unitList.some(unit => unit.id === item.skuUnitId);
|
||
const itemAttachmentList = getAttachmentList(item.attachmentItems);
|
||
const globalAttachmentList = getAttachmentList(productStockBatchStore.attachmentItems);
|
||
return hasUnit
|
||
&& isQuantityValid(item)
|
||
&& 0 < (itemAttachmentList.length || globalAttachmentList.length);
|
||
}
|
||
|
||
function updateNavBar(): void {
|
||
clearPageNavBarRight();
|
||
if (!userStore.hasPermissions(permissionCodes.productStock.create)) {
|
||
return;
|
||
}
|
||
setPageNavBarRightText(isSaving.value ? "提交中" : "提交", "var(--td-brand-color)", submit);
|
||
setPageNavBarRightDisabled(!canSubmit.value);
|
||
}
|
||
|
||
function selectUnit(item: ProductStockBatchSelection, unit: ProductSkuUnit): void {
|
||
if (isSaving.value) {
|
||
return;
|
||
}
|
||
if (unit.id && getSelectableUnits(item).some(candidate => candidate.id === unit.id)) {
|
||
if (item.skuUnitId !== unit.id) {
|
||
invalidateRequestNo();
|
||
}
|
||
item.skuUnitId = unit.id;
|
||
}
|
||
}
|
||
|
||
function openUnitPicker(item: ProductStockBatchSelection): void {
|
||
if (isSaving.value) {
|
||
return;
|
||
}
|
||
const unitList = getSelectableUnits(item);
|
||
if (!unitList.length) {
|
||
Message.warning("当前 SKU 没有可用于入库的单位");
|
||
return;
|
||
}
|
||
unitPickerSkuId.value = item.sku.id || "";
|
||
unitPickerDraft.value = [unitList.find(unit => unit.id === item.skuUnitId)?.id || unitList[0]?.id || ""];
|
||
unitPickerVisible.value = true;
|
||
}
|
||
|
||
function confirmUnitPicker(value: Array<string | number>): void {
|
||
const item = productStockBatchStore.selectedItemList.find(candidate => candidate.sku.id === unitPickerSkuId.value);
|
||
const skuUnitId = String(value[0] || "");
|
||
const unit = item ? getSelectableUnits(item).find(candidate => candidate.id === skuUnitId) : undefined;
|
||
if (item && unit) {
|
||
selectUnit(item, unit);
|
||
}
|
||
unitPickerVisible.value = false;
|
||
}
|
||
|
||
function removeItem(skuId: string): void {
|
||
if (isSaving.value) {
|
||
return;
|
||
}
|
||
const itemIndex = productStockBatchStore.selectedItemList.findIndex(item => item.sku.id === skuId);
|
||
if (-1 < itemIndex) {
|
||
invalidateRequestNo();
|
||
const nextVisibleAttachmentSkuIdSet = new Set(visibleAttachmentSkuIdSet.value);
|
||
nextVisibleAttachmentSkuIdSet.delete(skuId);
|
||
visibleAttachmentSkuIdSet.value = nextVisibleAttachmentSkuIdSet;
|
||
if (unitPickerSkuId.value === skuId) {
|
||
unitPickerVisible.value = false;
|
||
unitPickerSkuId.value = "";
|
||
}
|
||
productStockBatchStore.selectedItemList.splice(itemIndex, 1);
|
||
}
|
||
}
|
||
|
||
async function uploadPhotos(fileList: File[]): Promise<PhotoItem[]> {
|
||
uploadCount.value += 1;
|
||
try {
|
||
return await uploadPhotoList(fileList);
|
||
} finally {
|
||
uploadCount.value -= 1;
|
||
}
|
||
}
|
||
|
||
function validate(): boolean {
|
||
if (!productStockBatchStore.remark.trim()) {
|
||
Message.warning("入库备注不能为空");
|
||
return false;
|
||
}
|
||
if (!productStockBatchStore.selectedItemList.length) {
|
||
Message.warning("请至少选择一个 SKU");
|
||
return false;
|
||
}
|
||
const itemList = getSubmitItemList();
|
||
if (!itemList.length) {
|
||
Message.warning("请至少填写一个大于 0 的入库数量");
|
||
return false;
|
||
}
|
||
for (const item of itemList) {
|
||
if (!getSelectableUnits(item).some(unit => unit.id === item.skuUnitId)) {
|
||
Message.warning((item.sku.name || "SKU") + ":请选择入库单位");
|
||
return false;
|
||
}
|
||
if (!isQuantityValid(item)) {
|
||
const quantityTip = item.sku.allowDecimalQuantity
|
||
? "数量必须大于 0,最多三位小数"
|
||
: "数量必须是大于 0 的整数";
|
||
Message.warning((item.sku.name || "SKU") + ":" + quantityTip);
|
||
return false;
|
||
}
|
||
if (!getAttachmentList(item.attachmentItems).length && !getAttachmentList(productStockBatchStore.attachmentItems).length) {
|
||
Message.warning((item.sku.name || "SKU") + ":请添加 SKU 附件或共用附件");
|
||
return false;
|
||
}
|
||
}
|
||
if (0 < uploadCount.value) {
|
||
Message.warning("附件上传完成后再提交");
|
||
return false;
|
||
}
|
||
return true;
|
||
}
|
||
|
||
function buildRequest(): ProductStockManualInBatchRequest {
|
||
const itemList: ProductStockManualInBatchItem[] = getSubmitItemList().map(item => {
|
||
const attachmentList = getAttachmentList(item.attachmentItems);
|
||
return {
|
||
skuId: item.sku.id || "",
|
||
skuUnitId: item.skuUnitId,
|
||
quantity: item.quantity,
|
||
...(attachmentList.length ? { attachmentList } : {})
|
||
};
|
||
});
|
||
const attachmentList = getAttachmentList(productStockBatchStore.attachmentItems);
|
||
return {
|
||
requestNo: productStockBatchStore.requestNo || (productStockBatchStore.requestNo = createProductRequestNo()),
|
||
storeId: productStockBatchStore.storeId,
|
||
remark: productStockBatchStore.remark.trim(),
|
||
...(attachmentList.length ? { attachmentList } : {}),
|
||
itemList
|
||
};
|
||
}
|
||
|
||
async function submit(): Promise<void> {
|
||
if (isSaving.value || !validate()) {
|
||
return;
|
||
}
|
||
isSaving.value = true;
|
||
updateNavBar();
|
||
try {
|
||
await ProductAPI.manualInBatch(buildRequest());
|
||
emitListDataChanged(listDataEventKeys.productStockChanged);
|
||
Message.success("批量入库已提交");
|
||
productStockBatchStore.reset();
|
||
await router.replace({
|
||
name: "ProductStockRecordList",
|
||
query: { returnTo: "ProductTab" }
|
||
});
|
||
} catch (error) {
|
||
Message.error(getErrorMessage(error, "批量入库失败,请确认请求号后重试"));
|
||
} finally {
|
||
isSaving.value = false;
|
||
updateNavBar();
|
||
}
|
||
}
|
||
|
||
watch([canSubmit, isSaving], updateNavBar);
|
||
|
||
onMounted(() => {
|
||
const storeId = currentStoreStore.currentStoreId || getCurrentStoreId();
|
||
productStockBatchStore.ensureStore(storeId);
|
||
activeStoreId.value = storeId;
|
||
if (!productStockBatchStore.selectedItemList.length) {
|
||
void router.replace({ name: "ProductStockBatchSelect" });
|
||
}
|
||
updateNavBar();
|
||
});
|
||
|
||
onActivated(() => {
|
||
const storeId = currentStoreStore.currentStoreId || getCurrentStoreId();
|
||
if (activeStoreId.value && activeStoreId.value !== storeId) {
|
||
productStockBatchStore.ensureStore(storeId);
|
||
activeStoreId.value = storeId;
|
||
void router.replace({ name: "ProductStockBatchSelect" });
|
||
return;
|
||
}
|
||
activeStoreId.value = storeId;
|
||
updateNavBar();
|
||
});
|
||
|
||
onBeforeRouteLeave(() => clearPageNavBarRight());
|
||
|
||
onUnmounted(() => clearPageNavBarRight());
|
||
</script>
|
||
|
||
<style scoped lang="less">
|
||
.product-stock-batch-configure {
|
||
gap: 1rem;
|
||
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
.batch-info {
|
||
padding: .25rem .75rem;
|
||
}
|
||
|
||
.remark-wrap {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.items {
|
||
margin: 0 1rem;
|
||
overflow: hidden;
|
||
background: var(--td-bg-color-container);
|
||
box-shadow: var(--td-shadow-1);
|
||
border-radius: 1rem;
|
||
|
||
.item {
|
||
padding: .625rem;
|
||
min-width: 0;
|
||
|
||
:deep(.t-form__controls),
|
||
:deep(.t-form__controls-content) {
|
||
min-width: 0;
|
||
}
|
||
|
||
.content {
|
||
gap: .5rem;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
.main {
|
||
gap: .5rem;
|
||
width: 100%;
|
||
display: flex;
|
||
|
||
.left {
|
||
display: flex;
|
||
|
||
.avatar {
|
||
width: 3.5rem;
|
||
height: 3.5rem;
|
||
border-radius: .5rem;
|
||
}
|
||
}
|
||
|
||
.right {
|
||
flex: 1;
|
||
display: flex;
|
||
min-width: 0;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
|
||
.header {
|
||
gap: .5rem;
|
||
display: flex;
|
||
min-width: 0;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
|
||
.title {
|
||
gap: .375rem;
|
||
flex: 1;
|
||
display: flex;
|
||
min-width: 0;
|
||
align-items: center;
|
||
justify-content: start;
|
||
}
|
||
}
|
||
|
||
.input {
|
||
gap: .5rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: end;
|
||
}
|
||
|
||
.attachment-tip {
|
||
color: var(--td-text-color-secondary);
|
||
font-size: .75rem;
|
||
margin-top: .25rem;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
.nav-right-slot {
|
||
width: 6rem;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
|
||
.badge {
|
||
:deep(.t-badge__content) {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
}
|
||
|
||
.button,
|
||
.nav-text {
|
||
color: var(--td-text-color-primary, #333);
|
||
border: none;
|
||
padding: 0;
|
||
display: inline-flex;
|
||
background: transparent;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.button {
|
||
&:disabled {
|
||
color: var(--td-text-color-disabled);
|
||
cursor: not-allowed;
|
||
}
|
||
}
|
||
|
||
.nav-text {
|
||
font: inherit;
|
||
cursor: default;
|
||
|
||
&.clickable { cursor: pointer; }
|
||
&.disabled { cursor: not-allowed; }
|
||
}
|
||
}
|
||
</style>
|