update center-tips
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</template>
|
||||
</t-cell>
|
||||
</t-cell-group>
|
||||
<div v-else class="center-tips" v-text="emptyText" />
|
||||
<center-tips v-else :content="emptyText" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -122,11 +122,6 @@ function handleRemove(customer: Customer): void {
|
||||
.check {
|
||||
border-color: rgba(148, 163, 184, .4);
|
||||
}
|
||||
|
||||
.empty-block {
|
||||
color: #e2e8f0;
|
||||
background: rgba(30, 41, 59, .9);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -368,9 +368,5 @@ onUnmounted(() => {
|
||||
.customer-selector {
|
||||
background: rgba(15, 23, 42, .96);
|
||||
}
|
||||
|
||||
.center-tips {
|
||||
color: #94a3b8;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<span v-if="caption" class="caption" v-text="caption" />
|
||||
</div>
|
||||
<div ref="chartElement" class="chart" :style="{ height }" />
|
||||
<div v-if="loading" class="center-tips">
|
||||
<center-tips v-if="loading">
|
||||
<t-loading size="1.5rem" text="加载中" />
|
||||
</div>
|
||||
</center-tips>
|
||||
<chart-range-slider
|
||||
v-if="chartShowSlider"
|
||||
:model-value="sliderValue"
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
<span v-if="item.records.length" class="count" v-text="`${item.records.length} 条`" />
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="loading" class="empty-block">正在加载登记日历</div>
|
||||
<div v-else-if="!currentMonthFilteredRecords.length" class="empty-block" v-text="emptyText" />
|
||||
<center-tips v-if="loading">正在加载登记日历</center-tips>
|
||||
<center-tips v-else-if="!currentMonthFilteredRecords.length" :content="emptyText" />
|
||||
<t-cell title="登记事件记录列表" arrow @click="openRecordList">
|
||||
<template #left-icon>
|
||||
<t-icon name="catalog" />
|
||||
@@ -76,7 +76,7 @@
|
||||
@click="toRecordDetail(item)"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<div v-else class="empty-block">该日暂无登记事件记录</div>
|
||||
<center-tips v-else>该日暂无登记事件记录</center-tips>
|
||||
</div>
|
||||
</div>
|
||||
</t-popup>
|
||||
@@ -444,14 +444,6 @@ function toDateValue(date: Date): number {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty-block {
|
||||
padding: 1rem;
|
||||
color: #52607a;
|
||||
text-align: center;
|
||||
background: #f7faff;
|
||||
border-radius: .75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.day-record-panel,
|
||||
@@ -534,11 +526,6 @@ function toDateValue(date: Date): number {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty-block {
|
||||
color: #94a3b8;
|
||||
background: rgba(30, 41, 59, .9);
|
||||
}
|
||||
}
|
||||
|
||||
.day-record-panel,
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="empty-block">暂无可用登记事件</div>
|
||||
<center-tips v-else>暂无可用登记事件</center-tips>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -186,11 +186,6 @@ function toggleEvent(item: EventItem): void {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty-block {
|
||||
color: #52607a;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
:global(html.theme-dark) {
|
||||
@@ -199,7 +194,6 @@ function toggleEvent(item: EventItem): void {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.empty-block,
|
||||
.item {
|
||||
color: #e2e8f0;
|
||||
background: rgba(15, 23, 42, .72);
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
>
|
||||
<span v-text="getTagName(item)" />
|
||||
</t-tag>
|
||||
<div v-if="!visibleTagList.length" class="center-tips" v-text="emptyText" />
|
||||
<center-tips v-if="!visibleTagList.length" :content="emptyText" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div class="photo-shell" :class="{ 'without-add': !showAdd }">
|
||||
<div class="items">
|
||||
<div v-if="!displayMediaList.length" class="empty" v-text="emptyText" />
|
||||
<center-tips v-if="!displayMediaList.length" :content="emptyText" />
|
||||
<media-selector-item
|
||||
v-for="(item, index) in displayMediaList"
|
||||
:key="`${item.url}-${item.attachType}-${index}`"
|
||||
@@ -257,26 +257,6 @@ async function applyPhotoItems(nextPhotoItems: PhotoItem[]): Promise<void> {
|
||||
}
|
||||
|
||||
.items {
|
||||
gap: .75rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: thin;
|
||||
|
||||
.empty {
|
||||
width: 100%;
|
||||
color: #52607a;
|
||||
display: flex;
|
||||
padding: 1rem 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f8fbff;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -292,9 +272,5 @@ async function applyPhotoItems(nextPhotoItems: PhotoItem[]): Promise<void> {
|
||||
}
|
||||
|
||||
:global(html.theme-dark) {
|
||||
.media-selector .empty {
|
||||
color: #e2e8f0;
|
||||
background: rgba(15, 23, 42, .72);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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