Przeglądaj źródła

fix: 先统一不处理li的符号吧

shanbinzhang 1 miesiąc temu
rodzic
commit
36bc32b639

+ 7 - 7
src/views/ppt_manage/newVersion/utils/untils.js

@@ -187,15 +187,15 @@ export const toTextProps = (json) => {
                 url: styleObj['href']
                 url: styleObj['href']
             }
             }
             if (bulletFlag && styleObj['list-type'] === 'ol') {
             if (bulletFlag && styleObj['list-type'] === 'ol') {
-              options.bullet = { type: 'number', indent: 20 * 0.75 }
-              options.breakLine=true
-              options.paraSpaceBefore = 0.1
+              // options.bullet = { type: 'number', indent: 20 * 0.75 }
+              // options.breakLine=true
+              // options.paraSpaceBefore = 0.1
               bulletFlag = false
               bulletFlag = false
             }
             }
             if (bulletFlag && styleObj['list-type'] === 'ul') {
             if (bulletFlag && styleObj['list-type'] === 'ul') {
-              options.bullet = { indent: 20 * 0.75 }
-              options.breakLine=true
-              options.paraSpaceBefore = 0.1
+              // options.bullet = { indent: 20 * 0.75 }
+              // options.breakLine=true
+              // options.paraSpaceBefore = 0.1
               bulletFlag = false
               bulletFlag = false
             }
             }
             slices.push({ text, options })
             slices.push({ text, options })
@@ -203,7 +203,7 @@ export const toTextProps = (json) => {
     }
     }
   }
   }
   _parse(json)
   _parse(json)
-  //console.log('slice', slices)
+  console.log('slice', slices)
   return slices
   return slices
 }
 }
 //将text中被转义的字符转义回来,如:a<b 在富文本内会被转义成 a&lt;b
 //将text中被转义的字符转义回来,如:a<b 在富文本内会被转义成 a&lt;b