This commit is contained in:
zlwu committed 2026-08-11 11:13:01 +08:00
1 parent 80138c6388
commit 693e8a678e
682 files changed
+211375 -5306

No files matched your search

+7 -32
View File
@@ -2,10 +2,11 @@
<view class="v-empty">
<view class="v-empty__card">
<view class="v-empty__blob">
<view class="v-empty__inbox">
<view class="v-empty__inbox-tray" />
<view class="v-empty__inbox-slot" />
</view>
<image
class="v-empty__icon"
src="/static/empty-inbox.svg"
mode="aspectFit"
/>
</view>
<text class="v-empty__desc">{{ description || '暂无数据' }}</text>
<text v-if="tip" class="v-empty__tip">{{ tip }}</text>
@@ -55,35 +56,9 @@
justify-content: center;
}
/* CSS 近似 inbox,避免 inline SVG 在部分端兼容问题 */
.v-empty__inbox {
position: relative;
.v-empty__icon {
width: 56rpx;
height: 48rpx;
}
.v-empty__inbox-tray {
position: absolute;
left: 0;
right: 0;
top: 8rpx;
bottom: 0;
border: 4rpx solid #0a9f6d;
border-radius: 6rpx 6rpx 10rpx 10rpx;
box-sizing: border-box;
}
.v-empty__inbox-slot {
position: absolute;
left: 8rpx;
right: 8rpx;
top: 0;
height: 20rpx;
border: 4rpx solid #0a9f6d;
border-bottom: none;
border-radius: 6rpx 6rpx 0 0;
box-sizing: border-box;
background: radial-gradient(circle at 35% 30%, #ffffff, #d8f3e7 70%);
height: 56rpx;
}
.v-empty__desc {