fix
This commit is contained in:
@@ -2,11 +2,8 @@ export const pageSchema = {
|
||||
key: 'post_list.page',
|
||||
title: '文章页面',
|
||||
icon: 'fa fas fa-file-alt',
|
||||
description: '配置单篇文章页面的布局、目录树、图片灯箱、版权区和互动功能。',
|
||||
description: '配置单篇文章页面的布局、图片灯箱、版权区和互动功能。',
|
||||
defaults: {
|
||||
post_toc_enabled: true,
|
||||
post_toc_depth: 3,
|
||||
article_nav_mobile_nav_s: true,
|
||||
post_reading_progress: true,
|
||||
breadcrumbs_single_s: true,
|
||||
breadcrumbs_home_text: '首页',
|
||||
@@ -60,9 +57,6 @@ export const pageSchema = {
|
||||
title: '文章导航',
|
||||
icon: 'fa fas fa-compass',
|
||||
fields: [
|
||||
{ key: 'post_toc_enabled', label: '目录树导航', type: 'switch', default: true, help: '自动生成文章目录树' },
|
||||
{ key: 'post_toc_depth', label: '目录深度', type: 'number', default: 3, min: 1, max: 6, dependsOn: { key: 'post_toc_enabled', value: true } },
|
||||
{ key: 'article_nav_mobile_nav_s', label: '移动端弹出菜单', type: 'switch', default: true, dependsOn: { key: 'post_toc_enabled', value: true }, help: '在移动端弹出菜单中显示目录导航' },
|
||||
{ key: 'post_reading_progress', label: '阅读进度条', type: 'switch', default: true },
|
||||
{ key: 'breadcrumbs_single_s', label: '面包屑导航', type: 'switch', default: true },
|
||||
{ key: 'breadcrumbs_home_text', label: '面包屑首页文字', type: 'input', default: '首页', dependsOn: { key: 'breadcrumbs_single_s', value: true } },
|
||||
|
||||
Reference in New Issue
Block a user