Skip to content

Commit 1da3613

Browse files
committed
lint fix
1 parent 5aa075a commit 1da3613

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/common/DocsShow.vue

+11-11
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
};
8484
},
8585
},
86-
async created() {
86+
created() {
8787
if (this.loadExample) {
88-
await this.loadComponentContent();
89-
await this.importComponent();
88+
this.loadComponentContent();
89+
this.importComponent();
9090
}
9191
},
9292
methods: {
@@ -115,14 +115,14 @@
115115
}
116116
},
117117
/*
118-
* Parses the content of the component file into separate code blocks for template, script, and style.
119-
* @param {string} content - The content of the component file
120-
* @returns {Array} An array of code blocks
121-
*/
118+
* Parses the content of the component file into separate code blocks for template, script, and style.
119+
* @param {string} content - The content of the component file
120+
* @returns {Array} An array of code blocks
121+
*/
122122
parseTemplate(content) {
123123
const codeBlocks = [];
124124
125-
const applyRegex = (target) => {
125+
const applyRegex = target => {
126126
const pattern = new RegExp(`(<${target}(\\s[^>]*)?>)([\\w\\W]*)(<\\/${target}>)`, 'g');
127127
const parsed = pattern.exec(content);
128128
@@ -134,23 +134,23 @@
134134
return parsed[3].trim();
135135
};
136136
137-
const template = applyRegex('template')
137+
const template = applyRegex('template');
138138
if (template) {
139139
codeBlocks.push({
140140
language: 'html',
141141
content: template,
142142
});
143143
}
144144
145-
const script = applyRegex('script')
145+
const script = applyRegex('script');
146146
if (script) {
147147
codeBlocks.push({
148148
language: 'javascript',
149149
content: script,
150150
});
151151
}
152152
153-
const style = applyRegex('style')
153+
const style = applyRegex('style');
154154
if (style) {
155155
codeBlocks.push({
156156
language: 'scss',

0 commit comments

Comments
 (0)