mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
refactor(uni-halo): 优化多处代码逻辑与样式
1. 开启i18n组合式API模式修复$i18n.__composer报错 2. 完善分类配置类型定义,新增封面和排序权重字段 3. 重构数据加载组件样式与结构,优化按钮样式 4. 替换底部弹窗组件为玻璃弹窗,新增关闭按钮并调整样式 5. 简化首页分类模块逻辑,直接使用配置数据排序而非接口查询 6. 移除多余代码与日志,调整代码格式与注释
This commit is contained in:
@@ -35,17 +35,20 @@
|
||||
mini: {
|
||||
icon: '60rpx',
|
||||
stage: 'h-16 w-16',
|
||||
glow: 'h-12 w-12'
|
||||
glow: 'h-12 w-12',
|
||||
button: '!rounded-lg py-0.5'
|
||||
},
|
||||
small: {
|
||||
icon: '100rpx',
|
||||
stage: 'h-22 w-22',
|
||||
glow: 'h-18 w-18'
|
||||
glow: 'h-18 w-18',
|
||||
button: '!rounded-lg py-1'
|
||||
},
|
||||
large: {
|
||||
icon: '120rpx',
|
||||
stage: 'h-32 w-32',
|
||||
glow: 'h-28 w-28'
|
||||
glow: 'h-28 w-28',
|
||||
button: '!rounded-lg'
|
||||
},
|
||||
}
|
||||
|
||||
@@ -95,9 +98,9 @@
|
||||
<view class="deco-dot dot-a absolute rounded-full" />
|
||||
<view class="deco-dot dot-b absolute rounded-full" />
|
||||
<view class="bubble">
|
||||
<text class="bubble-icon">
|
||||
<view class="bubble-icon">
|
||||
<wd-icon class-prefix="uhemoji-icon" :name="statusScene.icon" :size="sizeClasses.icon" />
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -114,7 +117,7 @@
|
||||
{{ statusScene.subText }}
|
||||
</text>
|
||||
<view v-if="props.useRefreshButton" class="mt-4">
|
||||
<uh-button custom-class="!rounded-lg uh-global-card-glass uh-shadow-xs border"
|
||||
<uh-button :custom-class="'uh-global-card-glass uh-shadow-xs border' + sizeClasses.button"
|
||||
@click="emit('refresh')">
|
||||
刷新试试
|
||||
</uh-button>
|
||||
|
||||
Reference in New Issue
Block a user