所属产品: Mingcedar Studio DESIGNER
模板创建、保存与实例验证 | Mingcedar Studio
这部分按实际动作顺序说明从 PPT 画面到模板实例的完整流程。
<section id="template-creation" class="docs-block docs-block-intro docs-block-current"> <span class="section-kicker">制作</span> <h2>模板创建、保存与实例验证</h2> <p>这部分按实际动作顺序说明从 PPT 画面到模板实例的完整流程。</p> <div class="docs-detail-list"> <article id="template-creation-item-1" class="docs-detail-row"> <strong>第一步:完成需要复用的组件布局</strong> <p>模板不是空白结构,它来自已经完成的页面内容。建议先在 PPT 中完成外框、标题、状态块、输入区、按钮区和说明文字,再考虑模板化。模板用于保存可复用结构,不用于替代页面结构设计。</p> </article><article id="template-creation-item-2" class="docs-detail-row"> <strong>第二步:将需要一起复用的对象组合</strong> <p>模板边界应保持清晰。确实需要一起复用、移动、缩放和维护的对象,才适合放入同一个组。参考线、当前页说明文字、仅当前页需要的提示不应进入模板组。模板本质上是带模板元数据的组,因此分组边界就是模板边界。</p> <ul> <li>会一起出现、一起移动、一起维护的对象放进同一组</li><li>组名应体现用途,避免直接沿用默认对象名</li><li>只属于当前页的文字、辅助线和说明不应进入模板</li> </ul> </article><article id="template-creation-item-3" class="docs-detail-row"> <strong>第三步:在 Template Library 中保存选区</strong> <p>选中完整对象组,打开 MX Design → Templates → Library,点击 Save selection。核对选区并填写模板名,如“泵状态卡片”。</p> <ul> <li>保存前先确认只选中了需要复用的对象组</li><li>模板名应直接说明用途,便于后续搜索</li><li>如果模板库中有模板组,建议按业务分类保存</li> </ul> </article><article id="template-creation-item-4" class="docs-detail-row"> <strong>第四步:保存后从模板库再插回页面确认</strong> <p>模板不是保存后即完成。合格的模板应能够从模板库重新插入页面,并保持结构完整、尺寸合理、默认文本干净。建议保存后立即双击或拖拽插入一次,检查结构、尺寸和默认内容。</p> <ul> <li>双击或拖拽将模板重新插回页面</li><li>检查对象组是否完整</li><li>检查默认文字、默认大小、默认位置是否合理</li><li>检查是否包含上一页的残留文字和值</li> </ul> </article><article id="template-creation-item-5" class="docs-detail-row"> <strong>第五步:配置模板实例的位置和参数</strong> <p>选中实例根组,打开 MX Design → Templates → Edit Instance。核对来源,调整 X、Y、Width、Height 和实例参数,再配置行为与脚本。</p> <ul> <li>先调整 X / Y,确认位置</li><li>再调整 Width / Height,确认占位</li><li>再补充实例参数、变量、Tag 或文本</li><li>确认实例配置后,再继续配置行为和脚本</li> </ul> </article><article id="template-creation-item-6" class="docs-detail-row"> <strong>第六步:发现需要修改时,先判断修改模板源还是当前实例</strong> <p>仅当前实例的位置、尺寸或绑定不同:修改实例。同类模板都需调整布局、字段或按钮:修改模板源。</p> </article> </div> <div class="docs-note-grid"> <figure id="template-creation-image-1" class="docs-note-card manual-doc-image-card"> <img src="/WEB_img/HQPPT/TemplateLibraryForm.png" alt="模板保存与再次插入" loading="lazy" decoding="async"> <figcaption> <strong>模板保存与再次插入</strong> <p>模板保存后应重新插入一次,确认它是否具备稳定复用条件。</p> </figcaption> </figure><figure id="template-creation-image-2" class="docs-note-card manual-doc-image-card"> <img src="/WEB_img/HQPPT/TemplateInstanceEditorFormInput.png" alt="模板插入后的实例调整" loading="lazy" decoding="async"> <figcaption> <strong>模板插入后的实例调整</strong> <p>选中模板实例根组,通过 Templates → Edit Instance 打开 Template Edit,配置位置、尺寸和实例参数。</p> </figcaption> </figure><figure id="template-creation-image-3" class="docs-note-card manual-doc-image-card"> <img src="/WEB_img/HQPPT/TemplateMetadataForm.png" alt="模板元数据" loading="lazy" decoding="async"> <figcaption> <strong>模板元数据</strong> <p>模板保存或整理时,名称、分类和说明应保持清晰,便于后续团队检索和复用。</p> </figcaption> </figure> </div> </section>