feat:增加骨架屏加载样式
This commit is contained in:
1 parent
cdb485afd2
commit
3f6b427f2f
4 files changed
+103
-5
No files matched your search
@@ -14,7 +14,11 @@ defineProps({
|
||||
|
||||
<template>
|
||||
<view class="mt-[26px] mx-[14px] px-5 py-[54px] text-center">
|
||||
<AppIcon v-if="showIcon" :name="icon" tone="ink3" :size="34" />
|
||||
<!-- ⚠️ 组件宿主节点是行内盒,图标根节点却是 display:block 的定宽块 →
|
||||
直接放 text-center 里不会居中(会贴左)。用 flex 容器托管才能可靠居中。 -->
|
||||
<view v-if="showIcon" class="flex justify-center">
|
||||
<AppIcon :name="icon" tone="ink3" :size="34" />
|
||||
</view>
|
||||
<view class="mt-3 text-[13px] text-ink3">{{ text }}</view>
|
||||
<slot />
|
||||
</view>
|
||||
|
||||
Reference in new issue
Block a user