You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
699 B
28 lines
699 B
3 years ago
|
import '../components/style';
|
||
4 years ago
|
import { createApp, version } from 'vue';
|
||
4 years ago
|
import { createRouter, createWebHistory } from 'vue-router';
|
||
5 years ago
|
import App from './App.vue';
|
||
3 years ago
|
import antd from '../components';
|
||
4 years ago
|
|
||
4 years ago
|
// eslint-disable-next-line no-console
|
||
|
console.log('Vue version: ', version);
|
||
4 years ago
|
const basic = (_, { slots }) => {
|
||
|
return slots && slots.default && slots.default();
|
||
|
};
|
||
4 years ago
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHistory(),
|
||
|
routes: [],
|
||
|
});
|
||
5 years ago
|
const app = createApp(App);
|
||
4 years ago
|
app.use(router);
|
||
4 years ago
|
app
|
||
4 years ago
|
.component('DemoSort', basic)
|
||
4 years ago
|
.component('md', basic)
|
||
|
.component('api', basic)
|
||
|
.component('CN', basic)
|
||
|
.component('US', basic)
|
||
|
.component('demo-container', basic)
|
||
|
.use(antd)
|
||
|
.mount('#app');
|