update center-tips

This commit is contained in:
Timi
2026-10-19 11:43:07 +08:00
parent deed1fefc4
commit fd1ff4526f
69 changed files with 167 additions and 1061 deletions
@@ -19,7 +19,7 @@
:selected-unit-id="props.modelValue?.skuUnitId"
@select="selectUnit"
/>
<div v-else class="empty" v-text="loading ? '正在加载可售产品' : '暂无可售产品'" />
<center-tips v-else :content="loading ? '正在加载可售产品' : '暂无可售产品'" />
</div>
</div>
</bottom-popup>
@@ -137,11 +137,5 @@ function selectUnit(selection: ProductSelection): void {
overflow-y: auto;
padding-bottom: env(safe-area-inset-bottom, 0);
}
.empty {
color: var(--td-text-color-secondary);
padding: 2rem 1rem;
text-align: center;
}
}
</style>
@@ -35,7 +35,7 @@
</template>
</t-cell>
</t-cell-group>
<div v-else-if="!selectableSkuList.length || isSpecSelectionComplete && !matchedSkuList.length" class="empty" v-text="multipleEmptyText" />
<center-tips v-else-if="!selectableSkuList.length || isSpecSelectionComplete && !matchedSkuList.length" :content="multipleEmptyText" />
</template>
<template v-else>
<div v-if="matchedSku" class="sku-card">
@@ -53,7 +53,7 @@
</t-button>
</div>
</div>
<div v-else class="empty" v-text="specList.length && selectableSkuList.length ? '请选择每个规格项的规格值' : '暂无可售 SKU'" />
<center-tips v-else :content="specList.length && selectableSkuList.length ? '请选择每个规格项的规格值' : '暂无可售 SKU'" />
</template>
</div>
</template>
@@ -274,11 +274,5 @@ watch([() => props.product, () => props.skuList], ([product]) => {
.sku-list {
margin: 0;
}
.empty {
color: var(--td-text-color-secondary);
padding: 2rem 1rem;
text-align: center;
}
}
</style>