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
+22 -10
View File
@@ -89,16 +89,36 @@ html.theme-dark body {
top: -1rem; top: -1rem;
margin: -1rem 0 1rem 0; margin: -1rem 0 1rem 0;
padding: 1rem 1rem 0 1rem; padding: 1rem 1rem 0 1rem;
z-index: 2; z-index: 10;
position: sticky; position: sticky;
.t-input,
[class*="__input-box"] { [class*="__input-box"] {
border-color: var(--td-component-border); --td-button-border-radius: 99rem;
border: 1px solid var(--td-component-border);
padding: .25rem .25rem .25rem .5rem;
z-index: 2;
position: relative;
border-radius: 1rem;
} }
.tabs { .tabs {
--td-tab-item-height: 32px; --td-tab-item-height: 32px;
} }
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
z-index: 1;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
} }
} }
} }
@@ -214,14 +234,6 @@ html.theme-dark body {
} }
} }
.center-tips {
color: var(--tui-gray);
margin: 0 auto;
padding: .75rem;
font-size: .875rem;
text-align: center;
}
.avatar { .avatar {
flex: none; flex: none;
display: block; display: block;
+1 -6
View File
@@ -32,7 +32,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
</div> </div>
</template> </template>
@@ -122,11 +122,6 @@ function handleRemove(customer: Customer): void {
.check { .check {
border-color: rgba(148, 163, 184, .4); border-color: rgba(148, 163, 184, .4);
} }
.empty-block {
color: #e2e8f0;
background: rgba(30, 41, 59, .9);
}
} }
} }
</style> </style>
-4
View File
@@ -368,9 +368,5 @@ onUnmounted(() => {
.customer-selector { .customer-selector {
background: rgba(15, 23, 42, .96); background: rgba(15, 23, 42, .96);
} }
.center-tips {
color: #94a3b8;
}
} }
</style> </style>
+2 -2
View File
@@ -5,9 +5,9 @@
<span v-if="caption" class="caption" v-text="caption" /> <span v-if="caption" class="caption" v-text="caption" />
</div> </div>
<div ref="chartElement" class="chart" :style="{ height }" /> <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="加载中" /> <t-loading size="1.5rem" text="加载中" />
</div> </center-tips>
<chart-range-slider <chart-range-slider
v-if="chartShowSlider" v-if="chartShowSlider"
:model-value="sliderValue" :model-value="sliderValue"
+3 -16
View File
@@ -48,8 +48,8 @@
<span v-if="item.records.length" class="count" v-text="`${item.records.length} 条`" /> <span v-if="item.records.length" class="count" v-text="`${item.records.length} 条`" />
</button> </button>
</div> </div>
<div v-if="loading" class="empty-block">正在加载登记日历</div> <center-tips v-if="loading">正在加载登记日历</center-tips>
<div v-else-if="!currentMonthFilteredRecords.length" class="empty-block" v-text="emptyText" /> <center-tips v-else-if="!currentMonthFilteredRecords.length" :content="emptyText" />
<t-cell title="登记事件记录列表" arrow @click="openRecordList"> <t-cell title="登记事件记录列表" arrow @click="openRecordList">
<template #left-icon> <template #left-icon>
<t-icon name="catalog" /> <t-icon name="catalog" />
@@ -76,7 +76,7 @@
@click="toRecordDetail(item)" @click="toRecordDetail(item)"
/> />
</t-cell-group> </t-cell-group>
<div v-else class="empty-block">该日暂无登记事件记录</div> <center-tips v-else>该日暂无登记事件记录</center-tips>
</div> </div>
</div> </div>
</t-popup> </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, .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, .day-record-panel,
+1 -7
View File
@@ -32,7 +32,7 @@
/> />
</div> </div>
</div> </div>
<div v-else class="empty-block">暂无可用登记事件</div> <center-tips v-else>暂无可用登记事件</center-tips>
</div> </div>
</template> </template>
@@ -186,11 +186,6 @@ function toggleEvent(item: EventItem): void {
} }
} }
} }
.empty-block {
color: #52607a;
text-align: center;
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {
@@ -199,7 +194,6 @@ function toggleEvent(item: EventItem): void {
color: #94a3b8; color: #94a3b8;
} }
.empty-block,
.item { .item {
color: #e2e8f0; color: #e2e8f0;
background: rgba(15, 23, 42, .72); background: rgba(15, 23, 42, .72);
+1 -1
View File
@@ -51,7 +51,7 @@
> >
<span v-text="getTagName(item)" /> <span v-text="getTagName(item)" />
</t-tag> </t-tag>
<div v-if="!visibleTagList.length" class="center-tips" v-text="emptyText" /> <center-tips v-if="!visibleTagList.length" :content="emptyText" />
</div> </div>
</div> </div>
</div> </div>
+1 -25
View File
@@ -7,7 +7,7 @@
</div> </div>
<div class="photo-shell" :class="{ 'without-add': !showAdd }"> <div class="photo-shell" :class="{ 'without-add': !showAdd }">
<div class="items"> <div class="items">
<div v-if="!displayMediaList.length" class="empty" v-text="emptyText" /> <center-tips v-if="!displayMediaList.length" :content="emptyText" />
<media-selector-item <media-selector-item
v-for="(item, index) in displayMediaList" v-for="(item, index) in displayMediaList"
:key="`${item.url}-${item.attachType}-${index}`" :key="`${item.url}-${item.attachType}-${index}`"
@@ -257,26 +257,6 @@ async function applyPhotoItems(nextPhotoItems: PhotoItem[]): Promise<void> {
} }
.items { .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) { :global(html.theme-dark) {
.media-selector .empty {
color: #e2e8f0;
background: rgba(15, 23, 42, .72);
}
} }
</style> </style>
@@ -19,7 +19,7 @@
:selected-unit-id="props.modelValue?.skuUnitId" :selected-unit-id="props.modelValue?.skuUnitId"
@select="selectUnit" @select="selectUnit"
/> />
<div v-else class="empty" v-text="loading ? '正在加载可售产品' : '暂无可售产品'" /> <center-tips v-else :content="loading ? '正在加载可售产品' : '暂无可售产品'" />
</div> </div>
</div> </div>
</bottom-popup> </bottom-popup>
@@ -137,11 +137,5 @@ function selectUnit(selection: ProductSelection): void {
overflow-y: auto; overflow-y: auto;
padding-bottom: env(safe-area-inset-bottom, 0); padding-bottom: env(safe-area-inset-bottom, 0);
} }
.empty {
color: var(--td-text-color-secondary);
padding: 2rem 1rem;
text-align: center;
}
} }
</style> </style>
@@ -35,7 +35,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </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>
<template v-else> <template v-else>
<div v-if="matchedSku" class="sku-card"> <div v-if="matchedSku" class="sku-card">
@@ -53,7 +53,7 @@
</t-button> </t-button>
</div> </div>
</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> </template>
</div> </div>
</template> </template>
@@ -274,11 +274,5 @@ watch([() => props.product, () => props.skuList], ([product]) => {
.sku-list { .sku-list {
margin: 0; margin: 0;
} }
.empty {
color: var(--td-text-color-secondary);
padding: 2rem 1rem;
text-align: center;
}
} }
</style> </style>
@@ -58,10 +58,9 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<t-empty v-else-if="!isLoading" class="center-tips" description="暂无历史会话" /> <center-tips v-else-if="!isLoading" content="暂无历史会话" />
<t-loading <t-loading
v-if="isLoading && !conversationList.length" v-if="isLoading && !conversationList.length"
class="center-tips"
size="1.5rem" size="1.5rem"
text="正在加载会话" text="正在加载会话"
/> />
-16
View File
@@ -290,22 +290,6 @@ function getDateEnd(date: Date): Date {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
z-index: 10;
padding: .5rem 1rem;
position: sticky;
.customer-search {
--td-button-border-radius: .875rem;
--td-input-vertical-padding: .25rem 1rem;
width: 100%;
border: 1px solid var(--td-component-border);
padding-right: .3rem;
border-radius: 1rem;
}
}
.customer { .customer {
margin: 0 1rem; margin: 0 1rem;
+1 -2
View File
@@ -638,8 +638,7 @@ onUnmounted(() => clearPageNavBarRight());
.profile-main p, .profile-main p,
.label, .label,
.meta, .meta,
.sex-line, .sex-line {
.empty {
color: #94a3b8; color: #94a3b8;
} }
+2 -2
View File
@@ -49,8 +49,8 @@
</template> </template>
</customer-cell> </customer-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="rankedCustomerList.length" class="center-tips" v-text="loadStateText" /> <center-tips v-if="rankedCustomerList.length" :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
+1 -9
View File
@@ -54,7 +54,7 @@
<div v-can="permissionCodes.customer.update" class="remove bg-red white" @click="removeInvitee(item)">删除</div> <div v-can="permissionCodes.customer.update" class="remove bg-red white" @click="removeInvitee(item)">删除</div>
</template> </template>
</t-swipe-cell> </t-swipe-cell>
<div v-if="!invitees.length" class="center-tips" v-text="isLoading ? '正在加载邀请客户' : '暂无邀请客户'" /> <center-tips v-if="!invitees.length" :content="isLoading ? '正在加载邀请客户' : '暂无邀请客户'" />
</t-cell-group> </t-cell-group>
</div> </div>
</div> </div>
@@ -332,14 +332,6 @@ watch(() => route.params.id, loadCustomer);
} }
:global(html.theme-dark) { :global(html.theme-dark) {
.customer-invitee-list {
.empty {
color: #94a3b8;
background: rgba(30, 41, 59, .9);
}
}
.scan-popup { .scan-popup {
color: #e2e8f0; color: #e2e8f0;
} }
+3 -41
View File
@@ -163,8 +163,8 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div v-if="!pageResult.list.length" class="center-tips" v-text="isLoading ? '正在加载客户' : '暂无客户数据'" /> <center-tips v-if="!pageResult.list.length" :content="isLoading ? '正在加载客户' : '暂无客户数据'" />
<div v-if="pageResult.list.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="pageResult.list.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
<tag-selector <tag-selector
@@ -564,37 +564,6 @@ function buildCreatedAtRange(): [number | undefined, number | undefined] {
<style scoped lang="less"> <style scoped lang="less">
.customer-list { .customer-list {
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.search {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
border: 1px solid var(--td-component-border);
z-index: 2;
padding-right: .3rem;
border-radius: 1rem;
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid var(--td-component-border);
overflow: hidden;
margin-top: -1rem;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.scanner-wrapper { .scanner-wrapper {
padding: .5rem 1rem 0; padding: .5rem 1rem 0;
@@ -658,10 +627,6 @@ function buildCreatedAtRange(): [number | undefined, number | undefined] {
border-color: rgba(148, 163, 184, .16); border-color: rgba(148, 163, 184, .16);
} }
.menus {
background: #172033;
border-color: rgba(148, 163, 184, .16);
}
} }
.summary { .summary {
@@ -671,10 +636,7 @@ function buildCreatedAtRange(): [number | undefined, number | undefined] {
} }
.items { .items {
.item {
.center-tips,
.item,
.empty-block {
color: #e2e8f0; color: #e2e8f0;
background: rgba(30, 41, 59, .9); background: rgba(30, 41, 59, .9);
border-color: rgba(148, 163, 184, .16); border-color: rgba(148, 163, 184, .16);
@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
</div> </div>
<span v-else class="empty gray">未设置</span> <center-tips v-else class="gray">未设置</center-tips>
</section> </section>
</template> </template>
@@ -102,9 +102,5 @@ function emitEdit(): void {
flex: 0 0 auto; flex: 0 0 auto;
} }
} }
.empty {
font-size: .875rem;
}
} }
</style> </style>
+2 -12
View File
@@ -123,8 +123,8 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div v-if="!visibleEventList.length" class="empty-block" v-text="emptyText" /> <center-tips v-if="!visibleEventList.length" :content="emptyText" />
<div v-if="visibleEventList.length" class="center-tips" v-text="isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="visibleEventList.length" :content="isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -448,14 +448,8 @@ onUnmounted(() => {
} }
} }
} }
}
.empty-block {
color: #52607a;
padding: 2rem 1rem;
text-align: center;
} }
} }
:global(html.theme-dark) { :global(html.theme-dark) {
@@ -472,10 +466,6 @@ onUnmounted(() => {
} }
} }
} }
.empty-block {
color: #94a3b8;
}
} }
} }
+2 -16
View File
@@ -188,7 +188,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="empty">当前客户暂无事件记录</div> <center-tips v-else>当前客户暂无事件记录</center-tips>
<customer-selector <customer-selector
v-if="!isEditMode" v-if="!isEditMode"
v-model="selectedCustomerIdList" v-model="selectedCustomerIdList"
@@ -902,15 +902,6 @@ watch(customerCode, async (value) => {
border-radius: .875rem; border-radius: .875rem;
} }
.empty {
color: #52607a;
margin: 0 1rem;
padding: 1rem;
text-align: center;
background: #f7faff;
border-radius: 1rem;
}
.file-input { .file-input {
display: none; display: none;
} }
@@ -941,8 +932,7 @@ watch(customerCode, async (value) => {
:global(html.theme-dark) { :global(html.theme-dark) {
.registration-record-edit { .registration-record-edit {
:deep(.form-item .t-form__label), :deep(.form-item .t-form__label),
.selector-text p, .selector-text p {
.empty-block {
color: #94a3b8; color: #94a3b8;
} }
@@ -959,10 +949,6 @@ watch(customerCode, async (value) => {
border-color: rgba(148, 163, 184, .16); border-color: rgba(148, 163, 184, .16);
} }
.empty-block {
background: rgba(30, 41, 59, .9);
}
.selector-text strong { .selector-text strong {
color: #e2e8f0; color: #e2e8f0;
} }
+7 -71
View File
@@ -152,8 +152,8 @@
@updated="reloadRecords" @updated="reloadRecords"
/> />
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="isLoading ? '正在加载登记事件记录' : '暂无登记事件记录'" /> <center-tips v-else :content="isLoading ? '正在加载登记事件记录' : '暂无登记事件记录'" />
<div v-if="pageResult.list.length" class="center-tips" v-text="loadStateText" /> <center-tips v-if="pageResult.list.length" :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -193,7 +193,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { NavBarAction } from "@/types/NavBarAction"; import type { NavBarAction } from "@/types/NavBarAction";
import type { DropdownValue } from "tdesign-mobile-vue"; import type { DropdownValue } from "tdesign-mobile-vue";
import { Time, Text, WebToolkit } from "timi-web"; import { CenterTips, Time, Text, WebToolkit } from "timi-web";
import { useUserStore } from "timi-web-api"; import { useUserStore } from "timi-web-api";
import EventAPI from "@/api/EventAPI"; import EventAPI from "@/api/EventAPI";
import EventRecordAPI from "@/api/EventRecordAPI"; import EventRecordAPI from "@/api/EventRecordAPI";
@@ -302,11 +302,10 @@ const optionFilterOptions = computed(() => {
const optionFilterUnavailableReason = computed(() => actionFilter.value.length === 1 const optionFilterUnavailableReason = computed(() => actionFilter.value.length === 1
? "当前选择的事件没有可用选项" ? "当前选择的事件没有可用选项"
: "请先只选择一个事件,才能按选项筛选"); : "请先只选择一个事件,才能按选项筛选");
const optionFilterUnavailableFooter = (h: typeof import("vue").h) => h( const optionFilterUnavailableFooter = (h: typeof import("vue").h) => h(CenterTips, {
"div", class: "red",
{ class: "center-tips red" }, content: optionFilterUnavailableReason.value
optionFilterUnavailableReason.value });
);
const optionFilterLabel = computed(() => { const optionFilterLabel = computed(() => {
if (!optionFilter.value.length) { if (!optionFilter.value.length) {
return "全部选项"; return "全部选项";
@@ -748,66 +747,6 @@ onUnmounted(() => {
padding: var(--app-nav-height) 0 6rem 0; padding: var(--app-nav-height) 0 6rem 0;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.search-date {
display: flex;
.search-input {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 2;
padding-right: .3rem;
border-radius: 1rem;
}
.date-filter {
--td-spacer: 4px;
--td-spacer-1: 6px;
border: 1px solid var(--td-component-border);
z-index: 1;
margin-left: -2.5rem;
padding-left: 3rem;
padding-right: .7rem;
border-radius: 1rem;
&:after {
display: none;
}
}
}
.filter-menu {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
margin-top: -1rem;
padding-top: .8rem;
border-top: none;
border-radius: 0 0 1rem 1rem;
.option-empty-tip {
color: #64748b;
padding: .75rem 1rem;
font-size: .8125rem;
text-align: center;
}
}
}
.list-wrapper { .list-wrapper {
gap: 1rem; gap: 1rem;
@@ -857,9 +796,6 @@ onUnmounted(() => {
border-color: rgba(148, 163, 184, .16); border-color: rgba(148, 163, 184, .16);
} }
} }
.empty-block,
.center-tips,
.summary { .summary {
color: #94a3b8; color: #94a3b8;
} }
+2 -11
View File
@@ -106,8 +106,8 @@
</template> </template>
</customer-cell> </customer-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyStateText" /> <center-tips v-else :content="emptyStateText" />
<div v-if="pageResult.list.length" class="center-tips" v-text="loadStateText" /> <center-tips v-if="pageResult.list.length" :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
<t-popup v-model="startVisible" placement="bottom"> <t-popup v-model="startVisible" placement="bottom">
@@ -465,15 +465,6 @@ onMounted(async () => {
padding: calc(var(--app-nav-height)) 0 6rem 0; padding: calc(var(--app-nav-height)) 0 6rem 0;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
z-index: 5;
position: sticky;
.filter-menu {
box-shadow: 0 .25rem .75rem rgb(15 23 42 / 6%);
}
}
.time-range { .time-range {
margin: 0 .75rem; margin: 0 .75rem;
+2 -9
View File
@@ -88,7 +88,7 @@
</t-cell> </t-cell>
</vue-draggable-next> </vue-draggable-next>
</t-cell-group> </t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载登记事件' : '暂无登记事件'" /> <center-tips v-else :content="isLoading ? '正在加载登记事件' : '暂无登记事件'" />
</div> </div>
</div> </div>
</template> </template>
@@ -282,20 +282,13 @@ onUnmounted(() => {
box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .16); box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .16);
} }
} }
}
.empty-block {
color: #52607a;
padding: 2rem 1rem;
text-align: center;
}
} }
}
:global(html.theme-dark) { :global(html.theme-dark) {
.registration-event-sort { .registration-event-sort {
.tip, .tip,
.empty-block,
.handle { .handle {
color: #94a3b8; color: #94a3b8;
} }
@@ -140,7 +140,7 @@
</t-collapse-panel> </t-collapse-panel>
</vue-draggable-next> </vue-draggable-next>
</t-collapse> </t-collapse>
<div v-else class="center-tips">暂未配置登记选项,点击上方按钮新增。</div> <center-tips v-else>暂未配置登记选项,点击上方按钮新增。</center-tips>
</div> </div>
</bottom-popup> </bottom-popup>
</template> </template>
@@ -410,9 +410,6 @@ const pageBackground = computed(() => globalUIStore.bodyBackground);
:global(html.theme-dark) { :global(html.theme-dark) {
.popup { .popup {
.empty {
color: #94a3b8;
}
.handle { .handle {
color: #94a3b8; color: #94a3b8;
@@ -185,7 +185,7 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div class="center-tips" v-text="isLoading ? '正在加载提醒' : pageResult.list.length ? (isNoMore ? '已经到底了' : '上拉加载更多') : '暂无跟进提醒'" /> <center-tips :content="isLoading ? '正在加载提醒' : pageResult.list.length ? (isNoMore ? '已经到底了' : '上拉加载更多') : '暂无跟进提醒'" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
<customer-selector <customer-selector
@@ -706,41 +706,6 @@ watch(() => route.query.customerId, async value => {
.follow-up-reminder-list { .follow-up-reminder-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.customer {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
width: 100%;
border: 1px solid var(--td-component-border);
z-index: 1;
padding-right: .3rem;
border-radius: 1rem;
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid var(--td-component-border);
overflow: hidden;
margin-top: -1rem;
background: #FFF;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.selected-filter { .selected-filter {
gap: .5rem; gap: .5rem;
@@ -877,9 +842,6 @@ watch(() => route.query.customerId, async value => {
background: #10161f; background: #10161f;
} }
.filter .menus {
background: #172033;
}
.summary, .summary,
.items .item, .items .item,
@@ -40,7 +40,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="loading ? '正在加载负责人' : '暂无可选负责人'" /> <center-tips v-else :content="loading ? '正在加载负责人' : '暂无可选负责人'" />
</div> </div>
</bottom-popup> </bottom-popup>
</template> </template>
@@ -125,7 +125,7 @@
</div> </div>
</t-form-item> </t-form-item>
</t-form> </t-form>
<div v-else class="empty" v-text="'暂无可履约明细,请返回订单详情检查'" /> <center-tips v-else :content="'暂无可履约明细,请返回订单详情检查'" />
<t-form class="form" label-width="7rem"> <t-form class="form" label-width="7rem">
<t-form-item label="履约时间" content-align="right"> <t-form-item label="履约时间" content-align="right">
<div class="time-actions"> <div class="time-actions">
+2 -43
View File
@@ -166,8 +166,8 @@
@detail="toDetail(item)" @detail="toDetail(item)"
/> />
</div> </div>
<div v-else class="center-tips" v-text="loading ? '正在加载履约单' : '暂无履约单'" /> <center-tips v-else :content="loading ? '正在加载履约单' : '暂无履约单'" />
<div class="center-tips" v-text="loading ? '正在加载' : noMore ? '已经到底了' : '上拉加载更多'" /> <center-tips :content="loading ? '正在加载' : noMore ? '已经到底了' : '上拉加载更多'" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -610,47 +610,6 @@ onMounted(async () => {
.fulfillment-list { .fulfillment-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.customer {
--td-input-vertical-padding: .25rem 1rem;
width: 100%;
border: 1px solid var(--td-component-border);
z-index: 1;
padding-right: .3rem;
border-radius: 1rem;
.actions {
--td-button-border-radius: .75rem;
gap: .25rem;
display: flex;
align-items: center;
}
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid var(--td-component-border);
overflow: hidden;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.list-wrap { .list-wrap {
gap: 1rem; gap: 1rem;
@@ -99,11 +99,10 @@
</t-cell-group> </t-cell-group>
</t-collapse-panel> </t-collapse-panel>
</t-collapse> </t-collapse>
<div <center-tips
v-if="!singleSkuProductList.length && !multiSkuProductList.length" v-if="!singleSkuProductList.length && !multiSkuProductList.length"
class="center-tips" :content="loadingProducts ? '正在加载产品 SKU' : keyword ? '没有匹配的产品或 SKU' : '暂无可筛选的产品 SKU'"
v-text="loadingProducts ? '正在加载产品 SKU' : keyword ? '没有匹配的产品或 SKU' : '暂无可筛选的产品 SKU'" />
/>
</div> </div>
</bottom-popup> </bottom-popup>
</template> </template>
+3 -3
View File
@@ -28,8 +28,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else-if="isEventLoading" class="center-tips">正在加载登记事件</div> <center-tips v-else-if="isEventLoading">正在加载登记事件</center-tips>
<div v-else class="center-tips">登记事件加载失败</div> <center-tips v-else>登记事件加载失败</center-tips>
<div v-if="selectedEventList && selectedEventList[0]?.optionGroupList?.length !== 0" class="content-margin"> <div v-if="selectedEventList && selectedEventList[0]?.optionGroupList?.length !== 0" class="content-margin">
<event-option-selector <event-option-selector
v-model="selectedOptionSelectionMap" v-model="selectedOptionSelectionMap"
@@ -161,7 +161,7 @@
label="" label=""
@update:model-value="handleEventSelectionChange" @update:model-value="handleEventSelectionChange"
/> />
<div v-else-if="isEventLoading" class="empty-block">正在加载登记事件</div> <center-tips v-else-if="isEventLoading">正在加载登记事件</center-tips>
<div v-else class="event-load-error"> <div v-else class="event-load-error">
<span>登记事件加载失败</span> <span>登记事件加载失败</span>
<t-button size="small" theme="primary" variant="text" @click="loadActions">重试</t-button> <t-button size="small" theme="primary" variant="text" @click="loadActions">重试</t-button>
+1 -1
View File
@@ -100,7 +100,7 @@
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<t-empty v-else-if="!isLoading" description="暂无已发送通知" /> <t-empty v-else-if="!isLoading" description="暂无已发送通知" />
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
+1 -1
View File
@@ -107,7 +107,7 @@
v-else-if="!isLoading" v-else-if="!isLoading"
description="暂无站内通知" description="暂无站内通知"
/> />
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
+1 -1
View File
@@ -109,7 +109,7 @@
</div> </div>
</template> </template>
</t-cell> </t-cell>
<div v-if="!config.itemList?.length" class="empty" v-text="'暂无产品权益'" /> <center-tips v-if="!config.itemList?.length" :content="'暂无产品权益'" />
</t-cell-group> </t-cell-group>
<t-button <t-button
v-if="canPurchase" v-if="canPurchase"
+2 -31
View File
@@ -125,8 +125,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="loading ? '正在加载套餐配置' : '暂无套餐配置'" /> <center-tips v-else :content="loading ? '正在加载套餐配置' : '暂无套餐配置'" />
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -275,35 +275,6 @@ onUnmounted(() => {
.package-config-list { .package-config-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
gap: .5rem;
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
.keyword {
--td-input-vertical-padding: .25rem 1rem;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 1;
border-radius: 1rem;
}
.status {
--td-spacer: 4px;
--td-spacer-1: 6px;
border: 1px solid rgba(148, 163, 184, .18);
margin-left: -2rem;
padding-left: 2rem;
border-radius: 1rem;
}
}
.list { .list {
gap: 1rem; gap: 1rem;
+2 -31
View File
@@ -71,8 +71,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="loading ? '正在加载套餐' : '暂无套餐'" /> <center-tips v-else :content="loading ? '正在加载套餐' : '暂无套餐'" />
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
@@ -209,35 +209,6 @@ onUnmounted(() => {
.package-order-config-list { .package-order-config-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
gap: .5rem;
display: flex;
padding: .75rem 1rem;
position: sticky;
.keyword {
--td-input-vertical-padding: .25rem 1rem;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 1;
border-radius: 1rem;
}
.status {
--td-spacer: 4px;
--td-spacer-1: 6px;
border: 1px solid rgba(148, 163, 184, .18);
margin-left: -2rem;
padding-left: 2rem;
border-radius: 1rem;
}
}
.list { .list {
gap: 1rem; gap: 1rem;
+2 -2
View File
@@ -192,7 +192,7 @@
placeholder="添加可售赠送产品" placeholder="添加可售赠送产品"
@update:model-value="addGiftProduct" @update:model-value="addGiftProduct"
/> />
<div v-if="!packagePurchaseItemList.length" class="center-tips" v-text="'当前套餐暂无权益明细'" /> <center-tips v-if="!packagePurchaseItemList.length" :content="'当前套餐暂无权益明细'" />
</t-form> </t-form>
</t-form-item> </t-form-item>
<t-form-item label="购买时间" content-align="right"> <t-form-item label="购买时间" content-align="right">
@@ -334,7 +334,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="'暂无可购买套餐'" /> <center-tips v-else :content="'暂无可购买套餐'" />
</div> </div>
</bottom-popup> </bottom-popup>
<t-popup v-model="unitPickerVisible" placement="bottom"> <t-popup v-model="unitPickerVisible" placement="bottom">
+2 -30
View File
@@ -54,7 +54,7 @@
</template> </template>
</customer-cell> </customer-cell>
</t-cell-group> </t-cell-group>
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
<customer-selector <customer-selector
@@ -259,26 +259,6 @@ onMounted(async () => {
.point-account-list { .point-account-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.customer {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
width: 100%;
border: 1px solid var(--td-component-border);
padding-right: .3rem;
border-radius: 1rem;
}
}
.list-wrap { .list-wrap {
gap: 1rem; gap: 1rem;
@@ -317,17 +297,9 @@ onMounted(async () => {
:global(html.theme-dark) { :global(html.theme-dark) {
.point-account-list { .point-account-list {
.filters {
background: #10161f;
.customer {
background: #10161f;
}
}
.description, .description,
.zero, .zero {
.center-tips {
color: #94a3b8; color: #94a3b8;
} }
+3 -13
View File
@@ -47,7 +47,7 @@
<t-cell title="事件说明" :note="Text.display(triggerEvent.description)" /> <t-cell title="事件说明" :note="Text.display(triggerEvent.description)" />
<t-cell title="查看事件详情" :arrow="canReadEvent" :hover="canReadEvent" @click="toEventDetail" /> <t-cell title="查看事件详情" :arrow="canReadEvent" :hover="canReadEvent" @click="toEventDetail" />
</template> </template>
<div v-else class="empty" v-text="getEventEmptyText()" /> <center-tips v-else :content="getEventEmptyText()" />
</t-cell-group> </t-cell-group>
<t-cell-group title="事件记录" theme="card" v-entrance-transition> <t-cell-group title="事件记录" theme="card" v-entrance-transition>
<template v-if="eventRecord"> <template v-if="eventRecord">
@@ -64,7 +64,7 @@
<t-cell title="记录备注" :note="Text.display(eventRecord.remark)" /> <t-cell title="记录备注" :note="Text.display(eventRecord.remark)" />
<t-cell title="查看记录详情" arrow hover @click="toEventRecordDetail" /> <t-cell title="查看记录详情" arrow hover @click="toEventRecordDetail" />
</template> </template>
<div v-else class="empty" v-text="getRecordEmptyText()" /> <center-tips v-else :content="getRecordEmptyText()" />
</t-cell-group> </t-cell-group>
<t-cell-group title="命中规则" theme="card" v-entrance-transition> <t-cell-group title="命中规则" theme="card" v-entrance-transition>
<template v-if="hitRule"> <template v-if="hitRule">
@@ -78,7 +78,7 @@
<t-cell title="规则备注" :note="Text.display(hitRule.remark)" /> <t-cell title="规则备注" :note="Text.display(hitRule.remark)" />
<t-cell title="查看规则详情" :arrow="canReadRule" :hover="canReadRule" @click="toPointRuleDetail" /> <t-cell title="查看规则详情" :arrow="canReadRule" :hover="canReadRule" @click="toPointRuleDetail" />
</template> </template>
<div v-else class="empty" v-text="getRuleEmptyText()" /> <center-tips v-else :content="getRuleEmptyText()" />
</t-cell-group> </t-cell-group>
</template> </template>
<t-empty v-else :description="isLoading ? '正在加载积分流水' : '积分流水快照不存在,请从积分流水列表进入'" /> <t-empty v-else :description="isLoading ? '正在加载积分流水' : '积分流水快照不存在,请从积分流水列表进入'" />
@@ -381,13 +381,6 @@ watch(() => [route.params.id, route.query.snapshot], async () => {
margin: 0 1rem; margin: 0 1rem;
} }
.empty {
padding: 1.5rem 1rem;
color: #52607a;
font-size: .875rem;
text-align: center;
}
.payload-panel { .payload-panel {
.title { .title {
margin: 0 0 .5rem; margin: 0 0 .5rem;
@@ -398,9 +391,6 @@ watch(() => [route.params.id, route.query.snapshot], async () => {
:global(html.theme-dark) { :global(html.theme-dark) {
.point-ledger-detail { .point-ledger-detail {
.empty {
color: #94a3b8;
}
.payload-panel .title { .payload-panel .title {
color: #e2e8f0; color: #e2e8f0;
+2 -48
View File
@@ -114,7 +114,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -496,39 +496,6 @@ onUnmounted(() => {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.customer {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
width: 100%;
border: 1px solid var(--td-component-border);
z-index: 1;
padding-right: .3rem;
border-radius: 1rem;
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid var(--td-component-border);
overflow: hidden;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.summary { .summary {
overflow: hidden; overflow: hidden;
@@ -607,20 +574,7 @@ onUnmounted(() => {
:global(html.theme-dark) { :global(html.theme-dark) {
.point-ledger-list { .point-ledger-list {
.filters { .customer-id {
background: #10161f;
.menus {
background: #1a2330;
}
.customer {
background: #10161f;
}
}
.customer-id,
.empty {
color: #94a3b8; color: #94a3b8;
} }
-20
View File
@@ -251,23 +251,6 @@ onUnmounted(() => {
padding: var(--app-nav-height) 0 5rem; padding: var(--app-nav-height) 0 5rem;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.keyword {
--td-input-vertical-padding: .25rem 1rem;
border: 1px solid var(--td-component-border);
border-radius: 1rem;
}
}
.item { .item {
padding: 10px; padding: 10px;
@@ -300,9 +283,6 @@ onUnmounted(() => {
:global(html.theme-dark) { :global(html.theme-dark) {
.redeem-sku-list { .redeem-sku-list {
.filters {
background: #10161f;
}
.fallback { .fallback {
color: #ccfbf1; color: #ccfbf1;
-47
View File
@@ -473,46 +473,6 @@ onUnmounted(() => {
.redemption-list { .redemption-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.keyword {
--td-input-vertical-padding: .25rem 1rem;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 2;
padding-right: .3rem;
border-radius: 1rem;
.actions {
--td-button-border-radius: .75rem;
gap: .25rem;
display: flex;
align-items: center;
}
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid var(--td-component-border);
overflow: hidden;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.list-wrap { .list-wrap {
gap: 1rem; gap: 1rem;
@@ -548,13 +508,6 @@ onUnmounted(() => {
:global(html.theme-dark) { :global(html.theme-dark) {
.redemption-list { .redemption-list {
.filters {
background: #10161f;
.menus {
background: #1d2733;
}
}
.fallback { .fallback {
color: #ccfbf1; color: #ccfbf1;
+1 -1
View File
@@ -107,7 +107,7 @@
line-numbers line-numbers
class="code" class="code"
/> />
<div v-else class="center-tips" v-text="'暂无脚本代码'" /> <center-tips v-else :content="'暂无脚本代码'" />
</template> </template>
</t-cell> </t-cell>
</template> </template>
+1 -4
View File
@@ -108,7 +108,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -420,9 +420,6 @@ onMounted(async () => {
:global(html.theme-dark) { :global(html.theme-dark) {
.point-rule-list { .point-rule-list {
.empty {
color: #94a3b8;
}
.list .priority { .list .priority {
color: #bfdbfe; color: #bfdbfe;
+2 -9
View File
@@ -84,7 +84,7 @@
</t-cell> </t-cell>
</vue-draggable-next> </vue-draggable-next>
</t-cell-group> </t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载启用规则' : '暂无启用规则'" /> <center-tips v-else :content="isLoading ? '正在加载启用规则' : '暂无启用规则'" />
</div> </div>
</div> </div>
</template> </template>
@@ -201,18 +201,12 @@ onUnmounted(() => clearPageNavBarRight());
.point-rule-sort { .point-rule-sort {
padding: calc(var(--app-nav-height) + 1rem) 0 6rem; padding: calc(var(--app-nav-height) + 1rem) 0 6rem;
.tip, .tip {
.empty-block {
color: #52607a; color: #52607a;
padding: 0 1rem .75rem; padding: 0 1rem .75rem;
font-size: .8125rem; font-size: .8125rem;
} }
.empty-block {
padding-top: 2rem;
text-align: center;
}
.draggable { .draggable {
.cell { .cell {
.title { font-weight: 600; } .title { font-weight: 600; }
@@ -233,7 +227,6 @@ onUnmounted(() => clearPageNavBarRight());
:global(html.theme-dark) { :global(html.theme-dark) {
.point-rule-sort { .point-rule-sort {
.tip, .tip,
.empty-block,
.handle { color: #94a3b8; } .handle { color: #94a3b8; }
.draggable .cell { background: rgba(15, 23, 42, .88); } .draggable .cell { background: rgba(15, 23, 42, .88); }
} }
+2 -33
View File
@@ -94,8 +94,8 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="categoryList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="categoryList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
<t-dialog <t-dialog
@@ -423,37 +423,6 @@ onUnmounted(() => {
.product-category-list { .product-category-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
gap: .5rem;
display: flex;
padding: .75rem 1rem;
position: sticky;
.keyword {
--td-input-vertical-padding: 8px 14px;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 1;
border-radius: 1rem;
}
.status {
--td-spacer-1: 6px;
margin-left: -2rem;
padding-left: 1.5rem;
border-radius: 1rem;
&:after {
display: none;
}
}
}
.list { .list {
+1 -8
View File
@@ -80,7 +80,7 @@
</t-cell> </t-cell>
</vue-draggable-next> </vue-draggable-next>
</t-cell-group> </t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载产品分类' : '暂无产品分类'" /> <center-tips v-else :content="isLoading ? '正在加载产品分类' : '暂无产品分类'" />
</div> </div>
</div> </div>
</template> </template>
@@ -232,18 +232,11 @@ onUnmounted(() => {
} }
} }
} }
.empty-block {
color: #52607a;
padding: 2rem 1rem;
text-align: center;
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {
.product-category-rank { .product-category-rank {
.tip, .tip,
.empty-block,
.handle { .handle {
color: #94a3b8; color: #94a3b8;
} }
+2 -2
View File
@@ -127,7 +127,7 @@
</div> </div>
</template> </template>
</t-cell> </t-cell>
<div v-if="!product.skuList?.length" class="empty" v-text="'暂无 SKU'" /> <center-tips v-if="!product.skuList?.length" :content="'暂无 SKU'" />
</t-cell-group> </t-cell-group>
</template> </template>
</div> </div>
@@ -169,7 +169,7 @@
<span>采购、销售和库存操作共用</span> <span>采购、销售和库存操作共用</span>
</div> </div>
<product-sku-unit-list v-if="selectedSku.unitList?.length" :unit-list="selectedSku.unitList" /> <product-sku-unit-list v-if="selectedSku.unitList?.length" :unit-list="selectedSku.unitList" />
<div v-else class="center-tips" v-text="'暂无销售单位'" /> <center-tips v-else :content="'暂无销售单位'" />
</div> </div>
</div> </div>
</bottom-popup> </bottom-popup>
+2 -2
View File
@@ -93,7 +93,7 @@
<div class="content"> <div class="content">
<span <span
class="swatch" class="swatch"
:class="{ empty: !solidColorCoverColor }" :class="{ 'no-color': !solidColorCoverColor }"
:style="{ background: solidColorCoverColor || undefined }" :style="{ background: solidColorCoverColor || undefined }"
/> />
<span v-text="solidColorCoverColor || '选择颜色'" /> <span v-text="solidColorCoverColor || '选择颜色'" />
@@ -1265,7 +1265,7 @@ onUnmounted(() => clearPageNavBarRight());
display: block; display: block;
border-radius: .35rem; border-radius: .35rem;
&.empty { &.no-color {
background-color: #FFF; background-color: #FFF;
background-image: background-image:
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
+2 -31
View File
@@ -136,8 +136,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="productList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="productList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -486,35 +486,6 @@ onUnmounted(() => {
.product-list { .product-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.keyword {
--td-input-vertical-padding: 8px 14px;
border: 1px solid var(--td-component-border);
z-index: 1;
border-radius: 1rem;
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
margin-top: -1rem;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.list { .list {
+2 -14
View File
@@ -74,8 +74,8 @@
@toggle="toggleSku" @toggle="toggleSku"
@check="toggleProductSkus" @check="toggleProductSkus"
/> />
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="productList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="productList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
@@ -456,18 +456,6 @@ onUnmounted(() => {
.product-stock-batch-select { .product-stock-batch-select {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
z-index: 10;
padding: .75rem 1rem;
position: sticky;
.keyword {
border: 1px solid var(--td-component-border);
padding: .5rem 1rem;
border-radius: 1rem;
}
}
.list-wrap { .list-wrap {
+2 -16
View File
@@ -101,8 +101,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="productList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="productList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
</div> </div>
@@ -428,21 +428,7 @@ onUnmounted(() => {
.product-stock-list { .product-stock-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
z-index: 10;
padding: .75rem 1rem;
position: sticky;
.keyword {
border: 1px solid var(--td-component-border);
padding: .5rem 1rem;
border-radius: 1rem;
}
}
.list-wrap { .list-wrap {
min-height: 70vh;
.list { .list {
+21 -69
View File
@@ -16,28 +16,25 @@
@scrolltolower="loadMore" @scrolltolower="loadMore"
> >
<div class="filters glass"> <div class="filters glass">
<div class="search-row"> <t-input
<t-input v-model="keyword"
v-model="keyword" type="search"
class="keyword" borderless
type="search" clearable
borderless placeholder="搜索产品名称(拼音)或编码"
clearable >
placeholder="搜索产品名称(拼音)或编码" <template #suffix-icon>
> <div class="actions">
<template #suffix-icon> <t-button
<div class="actions"> size="extra-small"
<t-button theme="primary"
size="extra-small" variant="outline"
theme="primary" content="选择产品"
variant="outline" @click.stop="productSelectorVisible = true"
content="选择产品" />
@click.stop="productSelectorVisible = true" </div>
/> </template>
</div> </t-input>
</template>
</t-input>
</div>
<t-dropdown-menu class="menus"> <t-dropdown-menu class="menus">
<t-dropdown-item <t-dropdown-item
v-model="dateFilterType" v-model="dateFilterType"
@@ -168,8 +165,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="recordList.length" class="center-tips" v-text="loadStateText" /> <center-tips v-if="recordList.length" :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -679,51 +676,6 @@ onUnmounted(() => {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.search-row {
gap: .5rem;
display: flex;
align-items: center;
}
.keyword {
--td-input-vertical-padding: .25rem 1rem;
flex: 1;
min-width: 0;
border: 1px solid var(--td-component-border);
z-index: 2;
border-radius: 1rem;
.actions {
gap: .25rem;
display: flex;
align-items: center;
}
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.list-wrap { .list-wrap {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
+2 -14
View File
@@ -94,8 +94,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="emptyText" /> <center-tips v-else :content="emptyText" />
<div v-if="skuStockList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="skuStockList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -324,18 +324,6 @@ onUnmounted(() => {
.product-stock-sku-list { .product-stock-sku-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
z-index: 10;
padding: .75rem 1rem;
position: sticky;
.keyword {
border: 1px solid var(--td-component-border);
padding: .5rem 1rem;
border-radius: 1rem;
}
}
.list-wrap { .list-wrap {
min-height: 70vh; min-height: 70vh;
+2 -41
View File
@@ -143,8 +143,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="center-tips" v-text="isLoading ? '正在加载消费记录' : '暂无消费记录'" /> <center-tips v-else :content="isLoading ? '正在加载消费记录' : '暂无消费记录'" />
<div v-if="recordList.length" class="center-tips" v-text="loadStateText" /> <center-tips v-if="recordList.length" :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
<customer-selector <customer-selector
@@ -474,45 +474,6 @@ onMounted(async () => {
min-height: 100vh; min-height: 100vh;
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.keyword {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
border: 1px solid var(--td-component-border);
z-index: 1;
padding-right: .3rem;
border-radius: 1rem;
.actions {
--td-button-extra-small-height: 24px;
gap: .25rem;
display: flex;
align-items: center;
}
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
margin-top: -1rem;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.list-wrap { .list-wrap {
gap: 1rem; gap: 1rem;
+2 -46
View File
@@ -147,8 +147,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-else class="empty" v-text="loading ? '正在加载资金流水' : '暂无资金流水'" /> <center-tips v-else :content="loading ? '正在加载资金流水' : '暂无资金流水'" />
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
<customer-selector <customer-selector
@@ -534,44 +534,6 @@ onMounted(async () => {
.sales-order-record-list { .sales-order-record-list {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.customer {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .25rem 1rem;
border: 1px solid var(--td-component-border);
z-index: 1;
padding-right: .3rem;
border-radius: 1rem;
.actions {
gap: .25rem;
display: flex;
align-items: center;
}
}
.menus {
--td-spacer-1: 6px;
width: 100%;
border: 1px solid rgba(148, 163, 184, .18);
overflow: hidden;
margin-top: -1rem;
border-top: none;
padding-top: .8rem;
border-radius: 0 0 1rem 1rem;
}
}
.item { .item {
@@ -657,12 +619,6 @@ onMounted(async () => {
} }
} }
} }
.empty {
color: var(--td-text-color-secondary);
padding: 2rem 1rem;
text-align: center;
}
} }
:deep(.sales-order-record-list .avatar .t-image__img) { :deep(.sales-order-record-list .avatar .t-image__img) {
+9 -45
View File
@@ -1,12 +1,6 @@
<template> <template>
<div class="page-layout navbar sales-order-list"> <div class="page-layout navbar sales-order-list">
<t-navbar <t-navbar fixed :z-index="20" title="销售订单" left-arrow @left-click="$router.back()">
fixed
:z-index="20"
title="销售订单"
left-arrow
@left-click="$router.back()"
>
<template #right> <template #right>
<div <div
class="nav-actions" class="nav-actions"
@@ -134,9 +128,9 @@
@refund="toRefund(item)" @refund="toRefund(item)"
@confirm-no-refund="toNoRefund(item)" @confirm-no-refund="toNoRefund(item)"
/> />
<div v-if="!list.length" class="empty" v-text="loading ? '正在加载销售订单' : '暂无销售订单'" /> <center-tips v-if="!list.length" :content="loading ? '正在加载销售订单' : '暂无销售订单'" />
</div> </div>
<div class="center-tips" v-text="loading ? '正在加载' : noMore ? '已经到底了' : '上拉加载更多'" /> <center-tips :content="loading ? '正在加载' : noMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -823,44 +817,20 @@ onUnmounted(() => {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
.filters { .filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
padding: .75rem 1rem .5rem;
position: sticky;
.search-row { .search-row {
gap: .5rem; gap: .5rem;
display: flex; display: flex;
align-items: center; align-items: center;
}
.keyword { .filter-button {
--td-button-border-radius: .75rem; --td-button-border-radius: 99rem;
--td-input-vertical-padding: .25rem 1rem; flex: none;
height: auto;
flex: 1; padding: 0 1.25rem;
min-width: 0; align-self: stretch;
border: 1px solid var(--td-component-border);
background: var(--td-bg-color-container);
padding-right: .3rem;
border-radius: 1rem;
.actions {
gap: .25rem;
display: flex;
align-items: center;
} }
} }
.filter-button {
--td-button-border-radius: 99rem;
flex: none;
height: auto;
padding: 0 1.25rem;
align-self: stretch;
}
} }
.list-wrap { .list-wrap {
@@ -881,12 +851,6 @@ onUnmounted(() => {
} }
} }
} }
.empty {
color: var(--td-text-color-secondary);
padding: 3rem 1rem;
text-align: center;
}
} }
.nav-actions { .nav-actions {
-20
View File
@@ -300,26 +300,6 @@ onMounted(async () => {
padding: var(--app-nav-height) 0 1rem; padding: var(--app-nav-height) 0 1rem;
flex-direction: column; flex-direction: column;
.filters {
top: var(--app-nav-height);
left: 0;
right: 0;
z-index: 10;
display: flex;
padding: .75rem 1rem;
position: sticky;
flex-direction: column;
.search {
--td-button-border-radius: .75rem;
--td-input-vertical-padding: .5rem 1rem;
flex: 1;
border: 1px solid var(--td-component-border);
z-index: 2;
border-radius: 1rem;
}
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {
+2 -4
View File
@@ -396,10 +396,9 @@ onMounted(async () => {
:deep(.business-day-closed .t-calendar__dates-item-suffix) { :deep(.business-day-closed .t-calendar__dates-item-suffix) {
} }
} }
.loading, .loading {
.empty {
color: #52607a; color: #52607a;
padding: .75rem 1rem; padding: .75rem 1rem;
font-size: .8125rem; font-size: .8125rem;
@@ -446,7 +445,6 @@ onMounted(async () => {
.summary span, .summary span,
.loading, .loading,
.empty,
.editor .hint { .editor .hint {
color: #94a3b8; color: #94a3b8;
} }
+1 -8
View File
@@ -103,7 +103,7 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div class="center-tips" v-text="loadStateText" /> <center-tips :content="loadStateText" />
</div> </div>
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
@@ -540,13 +540,6 @@ onMounted(async () => {
.items { .items {
overflow: hidden; overflow: hidden;
} }
.center-tips {
padding: 1rem;
color: var(--td-text-color-placeholder);
font-size: .8125rem;
text-align: center;
}
} }
} }
+2 -2
View File
@@ -97,8 +97,8 @@
</template> </template>
</t-swipe-cell> </t-swipe-cell>
</t-cell-group> </t-cell-group>
<div v-if="!pageResult.list.length" class="center-tips" v-text="isLoading ? '正在加载门店' : '暂无门店'" /> <center-tips v-if="!pageResult.list.length" :content="isLoading ? '正在加载门店' : '暂无门店'" />
<div v-if="pageResult.list.length" class="center-tips" v-text="isNoMore ? '已加载全部门店' : '上拉加载更多'" /> <center-tips v-if="pageResult.list.length" :content="isNoMore ? '已加载全部门店' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
<store-remove-dialog <store-remove-dialog
+2 -9
View File
@@ -85,7 +85,7 @@
</t-cell> </t-cell>
</vue-draggable-next> </vue-draggable-next>
</t-cell-group> </t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载门店' : '暂无门店'" /> <center-tips v-else :content="isLoading ? '正在加载门店' : '暂无门店'" />
</div> </div>
</div> </div>
</template> </template>
@@ -251,20 +251,13 @@ onUnmounted(() => {
box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .16); box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .16);
} }
} }
}
.empty-block {
color: #52607a;
padding: 2rem 1rem;
text-align: center;
}
} }
}
:global(html.theme-dark) { :global(html.theme-dark) {
.store-sort { .store-sort {
.tip, .tip,
.empty-block,
.handle { .handle {
color: #94a3b8; color: #94a3b8;
} }
@@ -1,8 +1,8 @@
<template> <template>
<section class="chart-section"> <section class="chart-section">
<h2>年龄分布</h2> <h2>年龄分布</h2>
<div v-if="isLoading" class="center-tips" v-text="'正在分析客户年龄'" /> <center-tips v-if="isLoading" :content="'正在分析客户年龄'" />
<div v-else-if="!ageDataList.length" class="center-tips" v-text="'暂无可分析的客户年龄'" /> <center-tips v-else-if="!ageDataList.length" :content="'暂无可分析的客户年龄'" />
<div v-else ref="chartElement" class="chart" /> <div v-else ref="chartElement" class="chart" />
</section> </section>
</template> </template>
@@ -1,8 +1,8 @@
<template> <template>
<section class="chart-section"> <section class="chart-section">
<h2>病症词云</h2> <h2>病症词云</h2>
<div v-if="isLoading" class="center-tips" v-text="'正在分析客户病症'" /> <center-tips v-if="isLoading" :content="'正在分析客户病症'" />
<div v-else-if="!wordList.length" class="center-tips" v-text="'暂无可分析的病症描述'" /> <center-tips v-else-if="!wordList.length" :content="'暂无可分析的病症描述'" />
<div v-else ref="chartElement" class="chart" /> <div v-else ref="chartElement" class="chart" />
</section> </section>
</template> </template>
@@ -4,9 +4,9 @@
<h2>每日积分变动趋势</h2> <h2>每日积分变动趋势</h2>
</div> </div>
<div ref="chartElement" class="chart" /> <div ref="chartElement" class="chart" />
<div v-if="loading" class="center-tips"> <center-tips v-if="loading">
<t-loading size="1.5rem" text="加载中" /> <t-loading size="1.5rem" text="加载中" />
</div> </center-tips>
<chart-range-slider <chart-range-slider
v-if="showSlider" v-if="showSlider"
:model-value="sliderValue" :model-value="sliderValue"
@@ -193,17 +193,6 @@ function getDateEnd(dateText: string): Date {
width: 100%; width: 100%;
height: 17rem; height: 17rem;
} }
.center-tips {
top: 50%;
left: 0;
right: 0;
position: absolute;
display: flex;
justify-content: center;
transform: translateY(-50%);
pointer-events: none;
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {
+1 -1
View File
@@ -23,7 +23,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-if="!visibleMenuGroupList.length" class="empty" v-text="'当前账号暂无产品管理权限'" /> <center-tips v-if="!visibleMenuGroupList.length" :content="'当前账号暂无产品管理权限'" />
</main> </main>
</template> </template>
+4 -34
View File
@@ -81,8 +81,8 @@
</button> </button>
</div> </div>
</div> </div>
<div v-if="!tagList.length" class="empty" v-text="emptyText" /> <center-tips v-if="!tagList.length" :content="emptyText" />
<div v-if="tagList.length" class="center-tips" v-text="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="tagList.length" :content="isLoading ? '正在加载更多' : isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
<t-dialog <t-dialog
@@ -350,25 +350,12 @@ onUnmounted(() => {
<style scoped lang="less"> <style scoped lang="less">
.tag-list { .tag-list {
padding: var(--app-nav-height) 0 2rem 0; padding: var(--app-nav-height) 0 1rem 0;
.filters {
top: var(--app-nav-height);
z-index: 10;
padding: .5rem 1rem;
position: sticky;
.search {
border: 1px solid var(--td-component-border);
padding: .5rem 1rem;
border-radius: 1rem;
}
}
.tag-panel { .tag-panel {
gap: .75rem; gap: .75rem;
display: flex; display: flex;
padding: 1rem; padding: 0 1rem 1rem 1rem;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: flex-start;
@@ -407,13 +394,6 @@ onUnmounted(() => {
} }
} }
} }
.empty {
color: #52607a;
padding: 2rem 1rem;
text-align: center;
}
} }
.edit-dialog { .edit-dialog {
@@ -427,16 +407,6 @@ onUnmounted(() => {
} }
} }
:global(html.theme-dark) {
.tag-list {
.empty,
.center-tips {
color: #94a3b8;
}
}
}
.nav-right-slot { .nav-right-slot {
width: 6rem; width: 6rem;
height: 100%; height: 100%;
+1 -7
View File
@@ -9,7 +9,7 @@
<div class="poster-page"> <div class="poster-page">
<section class="poster-wrap" v-entrance-transition> <section class="poster-wrap" v-entrance-transition>
<img v-if="posterImage" class="poster" :src="posterImage" alt="邀请注册海报" /> <img v-if="posterImage" class="poster" :src="posterImage" alt="邀请注册海报" />
<div v-else class="empty" v-text="message" /> <center-tips v-else :content="message" />
</section> </section>
<div <div
class="tips gray" class="tips gray"
@@ -126,12 +126,6 @@ onMounted(() => {
text-indent: 2em; text-indent: 2em;
} }
.empty {
padding: 5rem 1rem;
color: var(--td-text-color-secondary);
text-align: center;
}
.actions { .actions {
--td-button-border-radius: 1rem; --td-button-border-radius: 1rem;
+2 -2
View File
@@ -95,8 +95,8 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<div v-if="!pageResult.list.length" class="center-tips" v-text="isLoading ? '正在加载用户' : '暂无用户'" /> <center-tips v-if="!pageResult.list.length" :content="isLoading ? '正在加载用户' : '暂无用户'" />
<div v-if="pageResult.list.length" class="center-tips" v-text="isNoMore ? '已经到底了' : '上拉加载更多'" /> <center-tips v-if="pageResult.list.length" :content="isNoMore ? '已经到底了' : '上拉加载更多'" />
</t-pull-down-refresh> </t-pull-down-refresh>
</main> </main>
-19
View File
@@ -1,19 +0,0 @@
/**
* 客户端实际使用的 timi-web 能力出口。
*
* 不从 timi-web 根入口导入,避免把编辑器、弹窗和未使用组件带入公共包。
*/
export { default as AnimatedNumber } from "../../../timi-web/src/components/animated-number";
export { default as AnimatedAmount } from "../../../timi-web/src/components/animated-amount";
export { default as Captcha } from "../../../timi-web/src/components/captcha";
export { default as ContactNumber } from "../../../timi-web/src/components/contact-number";
export { default as Copyright } from "../../../timi-web/src/components/copyright";
export { default as MarkdownEditor } from "../../../timi-web/src/components/markdown-editor";
export { default as MarkdownView } from "../../../timi-web/src/components/markdown-view";
export { default as PassTimeLabel } from "../../../timi-web/src/components/passtime-label";
export { default as Cooker } from "../../../timi-web/src/utils/Cooker";
export { default as Storage } from "../../../timi-web/src/utils/Storage";
export { default as WebToolkit } from "../../../timi-web/src/utils/WebToolkit";
export { Events, Text, Time, Toolkit } from "../../../timi-ts/src/index";
+7 -1
View File
@@ -6,7 +6,7 @@ import Components from "unplugin-vue-components/vite";
import { TDesignResolver } from "unplugin-vue-components/resolvers"; import { TDesignResolver } from "unplugin-vue-components/resolvers";
const localTimiWebRoot = fileURLToPath(new URL("../timi-web", import.meta.url)); const localTimiWebRoot = fileURLToPath(new URL("../timi-web", import.meta.url));
const localTimiWebModule = fileURLToPath(new URL("./src/utils/timiWeb.ts", import.meta.url)); const localTimiWebModule = fileURLToPath(new URL("../timi-web/src/index.ts", import.meta.url));
const localTimiWebStyle = fileURLToPath(new URL("../timi-web/dist/timi-web.css", import.meta.url)); const localTimiWebStyle = fileURLToPath(new URL("../timi-web/dist/timi-web.css", import.meta.url));
const localTimiWebEditor = fileURLToPath(new URL("../timi-web/src/editor/index.ts", import.meta.url)); const localTimiWebEditor = fileURLToPath(new URL("../timi-web/src/editor/index.ts", import.meta.url));
const localTimiWebApiRoot = fileURLToPath(new URL("../timi-web-api", import.meta.url)); const localTimiWebApiRoot = fileURLToPath(new URL("../timi-web-api", import.meta.url));
@@ -105,6 +105,12 @@ export default defineConfig(({ mode }) => {
from: "timi-tdesign-mobile" from: "timi-tdesign-mobile"
}; };
} }
if (name === "CenterTips") {
return {
name: "CenterTips",
from: "timi-web"
};
}
} }
] ]
}) })