1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-09-28 07:13:21 +08:00

更新代码生成库

This commit is contained in:
shangbin
2021-09-14 17:52:27 +08:00
parent fee37b267a
commit 8ca6a9b725
7 changed files with 215 additions and 735 deletions

View File

@@ -92,7 +92,6 @@ export default {
},
formatCode() {
// 代码格式化工具需要赓续为支持Vue的当前prettier对js代码不够友好
return Prism.highlight(this.prettyCode, Prism.languages.markup, "html");
}
},

View File

@@ -1,7 +1,7 @@
<template>
<el-dialog title="JS逻辑编辑" :visible.sync="codeDialogVisible" width="70%" top="10vh" :before-close="handleClose"
:center=true>
<CodeEditor ref="codeEditor"></CodeEditor>
<CodeEditor style="max-height: 65vh;" ref="codeEditor"></CodeEditor>
<div style="text-align:center;padding: 10px;">
<el-button type="primary" @click="onSave">确认修改</el-button>