StartReceptionSkeleton.uvue 1.29 KB
<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>