update center-tips
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user