mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-12-19 17:16:06 +08:00
update: 属性编辑框调整
This commit is contained in:
@@ -8,8 +8,9 @@ import parserBabel from 'prettier/parser-babel.js';
|
||||
// 导出组件模板文件
|
||||
|
||||
function vueTemplate () {
|
||||
return `
|
||||
<template> <!--在此自动生成--> </template>
|
||||
return `<template>
|
||||
<!--在此自动生成-->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default // $script
|
||||
|
||||
@@ -53,7 +53,7 @@ export class MainPanelProvider {
|
||||
code = code.replace(/:\s*\(([\w\s]*)\)\s*=>/g,"\($1\)");
|
||||
|
||||
// 生成展示代码
|
||||
let codeForShow = code.replace(/\s{1}lc_id=".+"/g, '');
|
||||
let codeForShow = code.replace(/\s{1}lc_id=".+?"/g, '');
|
||||
codeForShow = codeForShow.replace(/\s{1}lc-mark/g, "");
|
||||
this.eventEmitter.emit("codeCreated", codeForShow);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user