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:
@@ -64,10 +64,14 @@ export interface IPageConfig {
|
||||
useQuickNavigation?: boolean
|
||||
bannerConfig?: IBannerConfig
|
||||
/** 首页精选分类引用(插件端「通用配置 → 页面设置 → 首页」配置,固定最多 3 个,
|
||||
* 数组顺序 = 展示顺序;未配置/为空时客户端回退默认取数) */
|
||||
* 快照含名称/封面/排序权重,数组顺序 = 展示顺序;配置模式下直接映射渲染不发请求,
|
||||
* 未配置/为空时回退默认取数) */
|
||||
categories?: Array<{
|
||||
name: string
|
||||
displayName?: string
|
||||
cover?: string
|
||||
/** 分类排序权重(Halo Category.spec.priority,越大越靠前) */
|
||||
priority?: number
|
||||
}>
|
||||
}
|
||||
categoryConfig?: { type?: string }
|
||||
|
||||
Reference in New Issue
Block a user