StartReceptionSkeleton.uvue
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<view class="start-reception-skeleton">
<view class="skeleton-inner">
<!-- 图标占位 -->
<view class="skeleton-icon-wrap">
<view class="skeleton-circle"></view>
</view>
<!-- 文字占位 -->
<view class="skeleton-text"></view>
</view>
</view>
</template>
<script setup lang="uts">
// 开始接待按钮骨架屏
</script>
<style scoped lang="scss">
.start-reception-skeleton {
width: 100%;
padding: 16px;
box-sizing: border-box;
}
.skeleton-inner {
display: flex;
flex-direction: row;
align-items: center;
background-color: #ffffff;
border-radius: 12px;
padding: 14px 18px;
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.skeleton-icon-wrap {
width: 28px;
height: 28px;
border-radius: 50%;
background-color: #f0f0f0; /* ✅ UVUE 不支持 animation,使用静态背景 */
margin-right: 12px;
flex-shrink: 0;
}
.skeleton-circle {
width: 14px;
height: 14px;
border-radius: 50%;
background-color: transparent;
}
.skeleton-text {
flex: 1;
height: 16px;
border-radius: 4px;
background-color: #f0f0f0; /* ✅ UVUE 不支持 animation,使用静态背景 */
}
</style>