Browse Source

📝 docs(preview): correct image placeholder format in documentation

- remove extra closing curly brace in placeholder examples, changing from {%A1%} to {%A1}
- update both automatic and manual naming mode examples to use the correct placeholder format
- fix placeholder format in quick start guide section to maintain consistency
yourname 3 months ago
parent
commit
7f9276bd4d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/client/home/pages/WordPreview.tsx

+ 4 - 4
src/client/home/pages/WordPreview.tsx

@@ -1524,10 +1524,10 @@ export default function WordPreview() {
             <div>
               <h4 className="font-medium mb-1">5. 图片命名规则</h4>
               <p className="text-muted-foreground">
-                <strong>自动重命名模式:</strong>启用"自动重命名图片为A1,A2,A3..."选项,系统会自动按图片顺序重命名,在Word模板中使用 {'{%A1%}'}, {'{%A2%}'}, {'{%A3%}'} 等占位符
+                <strong>自动重命名模式:</strong>启用"自动重命名图片为A1,A2,A3..."选项,系统会自动按图片顺序重命名,在Word模板中使用 {'{%A1}'}, {'{%A2}'}, {'{%A3}'} 等占位符
               </p>
               <p className="text-muted-foreground mt-2">
-                <strong>手动命名模式:</strong>禁用自动重命名,图片文件名必须与模板中的图片占位符匹配(不含扩展名),例如:模板中使用 {'{%logo%}'},则图片文件应命名为 logo.jpg/png等
+                <strong>手动命名模式:</strong>禁用自动重命名,图片文件名必须与模板中的图片占位符匹配(不含扩展名),例如:模板中使用 {'{%logo}'},则图片文件应命名为 logo.jpg/png等
               </p>
             </div>
           </div>
@@ -1545,12 +1545,12 @@ export default function WordPreview() {
         <CardContent>
           <div className="space-y-2 text-sm">
             <p>• Word模板中的字段名必须与Excel表头完全匹配</p>
-            <p>• 启用自动重命名时,图片将按顺序命名为A1,A2,A3...,模板中使用 {'{%A1%}'}, {'{%A2%}'}, {'{%A3%}'} 等占位符</p>
+            <p>• 启用自动重命名时,图片将按顺序命名为A1,A2,A3...,模板中使用 {'{%A1}'}, {'{%A2}'}, {'{%A3}'} 等占位符</p>
             <p>• 禁用自动重命名时,图片文件名必须与模板中的图片占位符匹配(不含扩展名)</p>
             <p>• 文件夹序号必须与Excel行号对应(第1行对应文件夹"1")</p>
             <p>• 如果图片不存在,对应位置将留空</p>
             <p>• 支持jpg、jpeg、png、gif、bmp、webp格式图片</p>
-            <p>• 图片占位符使用 {'{%图片名%}'} 格式,如 {'{%logo%}'} 或 {'{%A1%}'}</p>
+            <p>• 图片占位符使用 {'{%图片名}'} 格式,如 {'{%logo}'} 或 {'{%A1}'}</p>
           </div>
         </CardContent>
       </Card>