feat(project): rebuild schedule supply module with split structure
This commit is contained in:
@@ -38,8 +38,6 @@ const moreProductCount = computed(() =>
|
|||||||
Math.max(0, props.productNames.length - visibleProducts.value.length),
|
Math.max(0, props.productNames.length - visibleProducts.value.length),
|
||||||
);
|
);
|
||||||
|
|
||||||
const noProducts = computed(() => props.productNames.length === 0);
|
|
||||||
|
|
||||||
function isWeekDayActive(day: number) {
|
function isWeekDayActive(day: number) {
|
||||||
return props.item.weekDays.includes(day);
|
return props.item.weekDays.includes(day);
|
||||||
}
|
}
|
||||||
@@ -95,7 +93,9 @@ function isWeekDayActive(day: number) {
|
|||||||
<span v-if="moreProductCount > 0" class="ptm-prod-pill ptm-prod-more">
|
<span v-if="moreProductCount > 0" class="ptm-prod-pill ptm-prod-more">
|
||||||
+{{ moreProductCount }}更多
|
+{{ moreProductCount }}更多
|
||||||
</span>
|
</span>
|
||||||
<span v-if="noProducts" class="ptm-prod-pill">未关联商品</span>
|
<span v-if="productNames.length === 0" class="ptm-prod-pill">
|
||||||
|
未关联商品
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ptm-card-ft">
|
<div class="ptm-card-ft">
|
||||||
|
|||||||
Reference in New Issue
Block a user