Skip to content

Commit 7270855

Browse files
authored
docs: fixed the style error of online demo (#6630)
1 parent 19f0aea commit 7270855

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

site/src/utils/generateOnlineDemo.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ components: {
3232
});
3333
</script>`;
3434

35-
const mainJs = `import { createApp } from "vue";
36-
import App from "./App.vue";
35+
const mainJs = `import { createApp } from 'vue';
3736
import Antd from 'ant-design-vue';
38-
import 'ant-design-vue/dist/antd.css';
37+
import App from './App';
38+
import 'ant-design-vue/dist/reset.css';
3939
40-
const app = createApp(App).use(Antd);
41-
app.mount("#app");
42-
`;
40+
const app = createApp(App);
41+
42+
app.use(Antd).mount('#app');
43+
`
4344

4445
function getDeps(code: string) {
4546
return (code.match(/from '([^']+)';\n/g) || [])

0 commit comments

Comments
 (0)