配置
Theme config 文件用于保存 theme 的可配置项、默认数据和预设内容。本节介绍 settings_schema.json、settings_data.json 和 settings_presets.json 等文件的作用,帮助您理解 theme editor 中配置项的来源和保存方式。
本节包含
- 概述:了解 theme config 在 theme 架构中的位置。
- settings_schema.json:查看如何定义 theme settings 的结构和可编辑字段。
- settings_data.json:了解商家在 theme editor 中保存的配置数据。
- settings_presets.json:了解 theme 预设如何为配置提供默认组合。
建议先阅读概述,再根据您正在处理的是“定义配置项”“读取已保存配置”还是“准备预设数据”,进入对应文件说明。