fix(admin): harden hero/banner round-trip and operator cross-links
Align enabled-meta semantics with frontend, allow truly empty titles on update, use router navigation for manager deep-links, and document fixed skeleton ownership in module schema copy.
This commit is contained in:
1 parent
dcc82a39e7
commit
24c135aeec
6 files changed
+64
-23
No files matched your search
@@ -46,7 +46,7 @@ export const MODULE_LIBRARY = [
|
||||
type: 'hero',
|
||||
label: 'Hero 首屏',
|
||||
icon: 'image',
|
||||
desc: '大图轮播首屏,支持叠加搜索框和图标卡片',
|
||||
desc: '固定首页骨架:大图轮播首屏。幻灯片内容在「页面&显示 → Hero 轮播」维护;搜索/卡片参数见「顶部多功能组件」。',
|
||||
defaultConfig: { with_search: true, show_cards: false, card_columns: 4, icon_cards: [] },
|
||||
fields: [
|
||||
{ key: 'with_search', type: 'switch', label: '显示搜索覆盖框' },
|
||||
@@ -58,7 +58,7 @@ export const MODULE_LIBRARY = [
|
||||
type: 'banner',
|
||||
label: 'Banner 轮播',
|
||||
icon: 'rectangle',
|
||||
desc: '正文区轮播条',
|
||||
desc: '固定首页骨架:正文区轮播条。幻灯片内容在「页面&显示 → Banner 轮播」维护。',
|
||||
defaultConfig: {},
|
||||
fields: [],
|
||||
},
|
||||
@@ -478,7 +478,7 @@ export const PRESET_TEMPLATES = [
|
||||
{
|
||||
key: 'resource_standard',
|
||||
label: '资源站标准',
|
||||
desc: 'Hero + Tabs + 最新资源 + 下载排行',
|
||||
desc: 'Hero(固定骨架)+ Tabs + 最新资源 + 下载排行',
|
||||
modules: [
|
||||
{ type: 'hero', config: {} },
|
||||
{ type: 'tabs', config: { count: 8, layout: 'grid-cms' } },
|
||||
@@ -489,7 +489,7 @@ export const PRESET_TEMPLATES = [
|
||||
{
|
||||
key: 'news',
|
||||
label: '资讯站',
|
||||
desc: 'Banner + 多个分类块 + 标签云',
|
||||
desc: 'Banner(固定骨架)+ 多个分类块 + 标签云',
|
||||
modules: [
|
||||
{ type: 'banner', config: {} },
|
||||
{ type: 'category', config: { count: 8, columns: 4, layout: 'card' } },
|
||||
@@ -500,7 +500,7 @@ export const PRESET_TEMPLATES = [
|
||||
{
|
||||
key: 'mixed',
|
||||
label: '混合站',
|
||||
desc: 'Hero + 最新文章 + 多个分类块',
|
||||
desc: 'Hero(固定骨架)+ 最新文章 + 多个分类块',
|
||||
modules: [
|
||||
{ type: 'hero', config: {} },
|
||||
{ type: 'recent', config: { post_type: 'post', count: 6, layout: 'card' } },
|
||||
|
||||
Reference in new issue
Block a user