docs: fixed the style error of online demo (#6630)

pull/6642/head^2
Cupid Valentine 2023-06-12 22:47:37 +08:00 committed by GitHub
parent 19f0aea965
commit 7270855ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -32,14 +32,15 @@ components: {
});
</script>`;
const mainJs = `import { createApp } from "vue";
import App from "./App.vue";
const mainJs = `import { createApp } from 'vue';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import App from './App';
import 'ant-design-vue/dist/reset.css';
const app = createApp(App).use(Antd);
app.mount("#app");
`;
const app = createApp(App);
app.use(Antd).mount('#app');
`
function getDeps(code: string) {
return (code.match(/from '([^']+)';\n/g) || [])