mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-07 21:54:05 +08:00
fix: 解决展示代码过度匹配问题
This commit is contained in:
parent
d9fdb1a188
commit
6cc7e6f77a
@ -25,11 +25,13 @@
|
|||||||
Structure</el-link>
|
Structure</el-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="3">
|
<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-col>
|
||||||
</el-row>
|
</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"
|
<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">
|
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>
|
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
|
||||||
|
@ -53,7 +53,7 @@ export class MainPanelProvider {
|
|||||||
code = code.replace(/:\s*\(([\w\s]*)\)\s*=>/g,"\($1\)");
|
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, "");
|
codeForShow = codeForShow.replace(/\s{1}lc-mark/g, "");
|
||||||
this.eventEmitter.emit("codeCreated", codeForShow);
|
this.eventEmitter.emit("codeCreated", codeForShow);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user