mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-06 13:04:05 +08:00
update: package-lock.json
This commit is contained in:
parent
188c9dcd3b
commit
23bb007b5b
7632
package-lock.json
generated
7632
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -58,7 +58,7 @@ require(['axios'], axios => {
|
||||
});
|
||||
|
||||
export default {
|
||||
props: ['initCode'],
|
||||
props: ['initCode', 'mode'],
|
||||
name: 'code-editor',
|
||||
title: 'Mode: text/x-vue & Theme: monokai',
|
||||
components: {
|
||||
@ -84,7 +84,7 @@ export default {
|
||||
lineNumbers: true,
|
||||
line: true,
|
||||
keyMap: "sublime",
|
||||
mode: 'text/javascript',
|
||||
mode: this.mode,
|
||||
theme: 'monokai',
|
||||
extraKeys: {
|
||||
'F11'(cm) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-dialog title="JS逻辑编辑" :visible.sync="codeDialogVisible" width="70%" top="10vh" :before-close="handleClose"
|
||||
:center=true>
|
||||
<CodeEditor style="max-height: 65vh;" ref="codeEditor" :initCode="code"></CodeEditor>
|
||||
<CodeEditor style="max-height: 65vh;" ref="codeEditor" :initCode="code" mode="text/javascript"></CodeEditor>
|
||||
|
||||
<div style="text-align:center;padding: 10px;">
|
||||
<el-button type="primary" @click="onSave">确认修改</el-button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-dialog title="Vue二次编辑" :visible.sync="vueDialogVisible" width="70%" top="10vh" :before-close="handleClose"
|
||||
:center=true>
|
||||
<CodeEditor style="max-height: 65vh;" ref="codeEditor" :initCode="code"></CodeEditor>
|
||||
<CodeEditor style="max-height: 65vh;" ref="codeEditor" :initCode="code" mode="text/html"></CodeEditor>
|
||||
|
||||
<div style="text-align:center;padding: 10px;">
|
||||
<el-button type="primary" @click="compile">开始解析</el-button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user