Browse Source

fix: 修复列表层级问题

李志伟 2 months ago
parent
commit
c019c1302d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/pptxToJson/text.js

+ 2 - 2
src/utils/pptxToJson/text.js

@@ -91,7 +91,7 @@ export function genTextBody (
           '': '•' // 默认圆点
         }
         const displayChar = symbolMap[bulletChar] || bulletChar
-        text += `<span style="display: inline-block; width: 20px; margin-left: -${indentSize}px;">${displayChar}</span>`
+        text += `<span style="display: inline-block; width: 20px; margin-left: -20px;">${displayChar}</span>`
       } else {
         let displayNumber = ''
 
@@ -121,7 +121,7 @@ export function genTextBody (
             displayNumber = `${currentNumber}.`
         }
 
-        text += `<span style="display: inline-block; margin-left: -${indentSize}px;">${displayNumber}</span>`
+        text += `<span style="display: inline-block; margin-left: -20px;">${displayNumber}</span>`
       }
     } else {
       if (isList) {