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.
|
|
|
import '@babel/polyfill';
|
|
|
|
import 'ant-design-vue/style';
|
|
|
|
import { createApp, version } from 'vue';
|
|
|
|
import { createRouter, createWebHistory } from 'vue-router';
|
|
|
|
import App from './App.vue';
|
|
|
|
import antd from 'ant-design-vue/index.ts';
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log('Vue version: ', version);
|
|
|
|
const basic = (_, { slots }) => {
|
|
|
|
return slots && slots.default && slots.default();
|
|
|
|
};
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(),
|
|
|
|
fallback: false,
|
|
|
|
routes: [],
|
|
|
|
});
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(router);
|
|
|
|
app
|
|
|
|
.component('DemoSort', basic)
|
|
|
|
.component('md', basic)
|
|
|
|
.component('api', basic)
|
|
|
|
.component('CN', basic)
|
|
|
|
.component('US', basic)
|
|
|
|
.component('demo-container', basic)
|
|
|
|
.use(antd)
|
|
|
|
.mount('#app');
|