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

fix: 解决展示代码过度匹配问题

This commit is contained in:
shangbin 2021-12-01 13:21:29 +08:00
parent d9fdb1a188
commit 6cc7e6f77a
2 changed files with 5 additions and 3 deletions

View File

@ -25,11 +25,13 @@
Structure</el-link>
</el-col>
<el-col :span="3">
<github-button href="https://github.com/sahadev/vue-component-creater-ui" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star sahadev/vue-component-creater-ui on GitHub">Star</github-button>
<github-button href="https://github.com/sahadev/vue-component-creater-ui" data-icon="octicon-star"
data-show-count="true" aria-label="Star sahadev/vue-component-creater-ui on GitHub">Star</github-button>
</el-col>
</el-row>
<a href="https://github.com/sahadev/vue-component-creater-ui" class="github-corner" aria-label="View source on GitHub">
<a href="https://github.com/sahadev/vue-component-creater-ui" class="github-corner"
aria-label="View source on GitHub">
<svg width="40" height="40" viewBox="0 0 250 250"
style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>

View File

@ -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);