auto delay for v-entrance-transition

This commit is contained in:
Timi
2026-10-16 00:42:39 +08:00
parent 4df0423e24
commit 90ce29b54a
95 changed files with 229 additions and 224 deletions
+5 -5
View File
@@ -24,30 +24,30 @@
/>
<div class="two-columns">
<order-type-chart
v-entrance-transition="70"
v-entrance-transition
:list="typeList"
:loading="isLoading"
/>
<order-payment-chart
v-entrance-transition="140"
v-entrance-transition
:list="paymentList"
:loading="isLoading"
/>
</div>
<div class="two-columns">
<order-status-chart
v-entrance-transition="210"
v-entrance-transition
:list="statusList"
:loading="isLoading"
/>
<customer-order-rank-chart
v-entrance-transition="280"
v-entrance-transition
:list="customerRankList"
:loading="isLoading"
/>
</div>
<order-receivable-card
v-entrance-transition="350"
v-entrance-transition
:receivable="receivable"
/>
</div>
+1 -1
View File
@@ -19,7 +19,7 @@
</div>
<t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="refresh" @scrolltolower="loadMore">
<t-cell-group v-if="categoryList.length" theme="card" class="list fix-last-cell-line">
<t-swipe-cell v-for="(item, index) in categoryList" :key="item.id" class="item" v-entrance-transition="index * 30">
<t-swipe-cell v-for="item in categoryList" :key="item.id" class="item" v-entrance-transition="{ step: 30 }">
<t-cell arrow hover @click="openEditDialog(item)">
<template #title>
<div class="title">
+2 -2
View File
@@ -16,11 +16,11 @@
@change="handleSortChange"
>
<t-cell
v-for="(item, index) in categoryList"
v-for="item in categoryList"
:key="item.id"
class="cell"
:title="item.name || '未命名分类'"
v-entrance-transition="index * 30"
v-entrance-transition="{ step: 30 }"
>
<template #note>
<t-tag
+5 -5
View File
@@ -24,30 +24,30 @@
/>
<div class="two-columns">
<product-sales-rank-chart
v-entrance-transition="70"
v-entrance-transition
:list="salesRankList"
:loading="isLoading"
/>
<product-fulfillment-rank-chart
v-entrance-transition="140"
v-entrance-transition
:list="fulfillmentRankList"
:loading="isLoading"
/>
</div>
<product-fulfillment-trend-chart
v-entrance-transition="210"
v-entrance-transition
:date-text-list="dateTextList"
:list="fulfillmentDailyList"
:loading="isLoading"
/>
<product-stock-movement-chart
v-entrance-transition="280"
v-entrance-transition
:date-text-list="dateTextList"
:list="stockMovementList"
:loading="isLoading"
/>
<product-stock-health-table
v-entrance-transition="350"
v-entrance-transition
:list="stockHealthList"
:sku-health-list="skuHealthList"
:loading="isLoading"
+3 -3
View File
@@ -3,7 +3,7 @@
<t-loading v-if="isLoading" class="loading" size="32px" />
<template v-if="product">
<product-profile :product="product" v-entrance-transition />
<t-cell-group title="基本信息" theme="card" v-entrance-transition="70">
<t-cell-group title="基本信息" theme="card" v-entrance-transition>
<t-cell title="产品分类" :note="product.category?.name || '未分类'" />
<t-cell title="库存管理" :note="product.stockEnabled ? '启用' : '关闭'" />
<t-cell title="状态" :note="getProductStatusText(product.status)" />
@@ -19,7 +19,7 @@
/>
</t-cell>
</t-cell-group>
<t-cell-group theme="card" v-entrance-transition="140">
<t-cell-group theme="card" v-entrance-transition>
<t-cell
v-if="product.stockEnabled && userStore.hasPermissions(permissionCodes.productStock.read)"
title="库存"
@@ -28,7 +28,7 @@
@click="viewStock"
/>
</t-cell-group>
<t-cell-group title="SKU 列表" theme="card" class="skus" v-entrance-transition="210">
<t-cell-group title="SKU 列表" theme="card" class="skus" v-entrance-transition>
<t-cell
class="sku"
v-for="sku in product.skuList || []"
+2 -2
View File
@@ -57,7 +57,7 @@
</t-form-item>
</t-form>
<card-container title="产品规格" description="无多规格产品无需配置规格;有规格时每条 SKU 明细必须覆盖全部规格项" v-entrance-transition="70">
<card-container title="产品规格" description="无多规格产品无需配置规格;有规格时每条 SKU 明细必须覆盖全部规格项" v-entrance-transition>
<div class="spec-list">
<t-form v-for="(spec, specIndex) in form.specList" :key="spec.clientKey" class="form spec">
<t-form-item label="名称" label-width="2.5rem">
@@ -123,7 +123,7 @@
class="sku-wrap"
title="SKU 明细"
description="每条 SKU 明细都是独立的销售、库存和履约单元;生成后可移除不需要的组合,点列表项配置具体内容"
v-entrance-transition="140"
v-entrance-transition
>
<div class="content-wrap">
<t-cell-group theme="card">
+1 -1
View File
@@ -40,7 +40,7 @@
class="list fix-last-cell-line empty-cell-title-margin"
theme="card"
>
<t-cell v-for="(item, index) in productList" :key="item.id" class="item" arrow hover v-entrance-transition="index * 30" @click="toDetail(item)">
<t-cell v-for="item in productList" :key="item.id" class="item" arrow hover v-entrance-transition="{ step: 30 }" @click="toDetail(item)">
<template #leftIcon>
<t-image
v-if="getProductPhotoURL(item)"
@@ -1,6 +1,6 @@
<template>
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
<t-form class="form" label-width="5rem">
<t-form class="form" label-width="5rem" v-entrance-transition>
<t-form-item label="入库备注" required-mark>
<div class="remark-wrap">
<t-input
@@ -35,7 +35,12 @@
/>
</t-form-item>
</t-form>
<t-form v-if="productStockBatchStore.selectedItemList.length" class="items form" label-width="0">
<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"
+2 -2
View File
@@ -8,7 +8,7 @@
<t-tag :content="getStockStatusText(stock)" variant="light-outline" :theme="getStockTheme(stock)" />
</template>
</product-profile>
<t-cell-group theme="card" title="库存" v-entrance-transition="70">
<t-cell-group theme="card" title="库存" v-entrance-transition>
<t-cell v-if="1 < unitList.length" class="units" title="显示单位">
<template #note>
<div class="options" role="group" aria-label="选择库存展示单位">
@@ -64,7 +64,7 @@
class="actions-wrap"
title="库存操作"
description="所有操作必须选择业务单位、上传照片并填写备注"
v-entrance-transition="140"
v-entrance-transition
>
<div class="actions">
<t-button
+2 -2
View File
@@ -20,11 +20,11 @@
<t-cell-group v-if="productList.length" theme="card" class="list fix-last-cell-line">
<t-cell
class="item"
v-for="(item, index) in productList"
v-for="item in productList"
:key="item.productId"
:title="item.productName || '未命名产品'"
arrow
v-entrance-transition="index * 30"
v-entrance-transition="{ step: 30 }"
@click="toSkuList(item)"
>
<template #leftIcon>
@@ -5,7 +5,7 @@
<section class="snapshot-head" v-entrance-transition>
<div class="eyebrow">库存 SKU 快照</div>
<h2 v-text="record.productNameSnapshot || '未命名产品'" />
<product-sku-tags
<product-sku-tags
class="sku"
:product-name="record.productNameSnapshot"
:snapshot="record.skuSpecSnapshot"
@@ -17,7 +17,7 @@
<t-tag size="small" variant="light-outline" :theme="getOperationTheme(record.onHandDelta)" :content="getStockOperationText(record.operationType)" />
</div>
</section>
<card-container description="库存变动信息">
<card-container description="库存变动信息" v-entrance-transition>
<div class="data">
<div class="card">
<span class="label">业务数量</span>
@@ -37,7 +37,7 @@
</div>
</div>
</card-container>
<t-cell-group title="库存快照" theme="card">
<t-cell-group title="库存快照" theme="card" v-entrance-transition>
<t-cell title="实际库存">
<template #note>
<span class="balance">
@@ -59,7 +59,7 @@
</template>
</t-cell>
</t-cell-group>
<t-cell-group title="库存流水" theme="card" v-entrance-transition="70">
<t-cell-group title="库存流水" theme="card" v-entrance-transition>
<t-cell title="操作类型" :note="getStockOperationText(record.operationType)" />
<t-cell title="业务类型" :note="getBizTypeText(record.bizType)" />
<t-cell
@@ -99,7 +99,7 @@
class="cell-button"
theme="danger"
@click="openManualRevoke"
v-entrance-transition="140"
v-entrance-transition
content="手工流水冲正"
/>
</template>
+1 -1
View File
@@ -79,7 +79,7 @@
class="item"
:arrow="!!record.id"
:hover="!!record.id"
v-entrance-transition="index * 30"
v-entrance-transition="{ step: 30 }"
@click="toDetail(record)"
>
<template #leftIcon>
+2 -2
View File
@@ -28,10 +28,10 @@
>
<t-cell
class="item"
v-for="(item, index) in skuStockList"
v-for="item in skuStockList"
:key="item.skuId || item.id"
arrow
v-entrance-transition="index * 30"
v-entrance-transition="{ step: 30 }"
@click="toDetail(item)"
>
<template #title>