File tree 2 files changed +4
-8
lines changed
components/CodemirrorEditor
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -240,11 +240,11 @@ export function downloadMD(doc) {
240
240
* @param {HTML生成内容 } htmlStr
241
241
*/
242
242
export function exportHTML ( htmlStr ) {
243
- const downLink = document . createElement ( 'a' )
243
+ const downLink = document . createElement ( "a" ) ;
244
244
245
- downLink . download = ' content.html' ;
245
+ downLink . download = " content.html" ;
246
246
downLink . style . display = "none" ;
247
- let blob = new Blob ( [ `<html><body>${ htmlStr } </body></html>` ] )
247
+ let blob = new Blob ( [ `<html><body>${ htmlStr } </body></html>` ] ) ;
248
248
249
249
downLink . href = URL . createObjectURL ( blob ) ;
250
250
document . body . appendChild ( downLink ) ;
Original file line number Diff line number Diff line change 29
29
content =" 导出 HTML"
30
30
placement =" bottom-start"
31
31
>
32
- <i
33
- class =" el-icon-document"
34
- size =" medium"
35
- @click =" $emit('export')"
36
- ></i >
32
+ <i class =" el-icon-document" size =" medium" @click =" $emit('export')" ></i >
37
33
</el-tooltip >
38
34
<!-- 页面重置 -->
39
35
<el-tooltip
You can’t perform that action at this time.
0 commit comments