1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-09-12 16:40:40 +08:00

fix: 优化文章卡片样式与布局设置联动

1. 修复双列布局下卡片样式仅允许image_top的逻辑
2. 增加卡片样式选项禁用状态与点击拦截
3. 调整设置项样式类与交互逻辑
This commit is contained in:
小莫唐尼
2026-09-09 16:58:27 +08:00
parent d49a918ba4
commit b41e01106a
4 changed files with 42 additions and 18 deletions
+4 -2
View File
@@ -27,6 +27,7 @@
handleRevert,
handleBoolChange,
handleChoose,
isCardTypeOptionDisabled,
} = usePreferenceRows()
/** 确保启动合并已执行(入口页未跑或 H5 直达时兜底) */
@@ -65,13 +66,14 @@
}
/* ---------------- wd-picker-view 弹层数据 ---------------- */
/** 枚举弹层列(首项「跟随站点默认」,空串哨兵映射 null) */
/** 枚举弹层列(首项「跟随站点默认」,空串哨兵映射 null;双列约束下卡片样式仅保留 image_top) */
const enumColumns = computed(() => {
const def = enumSheet.value.def
if (!def) { return [] }
const options = (def.options || []).filter(opt => !isCardTypeOptionDisabled(def.path, opt.value))
return [
{ label: '跟随站点默认', value: '' },
...(def.options || []).map(opt => ({ label: opt.label, value: opt.value })),
...options.map(opt => ({ label: opt.label, value: opt.value })),
]
})