ant-design-vue/examples/index.js

30 lines
755 B
JavaScript
Raw Normal View History

2020-05-27 11:11:46 +00:00
import '@babel/polyfill';
2020-10-13 07:02:35 +00:00
import 'ant-design-vue/style';
2020-07-08 14:28:09 +00:00
import { createApp, version } from 'vue';
2021-06-08 13:54:26 +00:00
import { createRouter, createWebHistory } from 'vue-router';
2020-03-23 03:00:24 +00:00
import App from './App.vue';
2020-10-13 07:02:35 +00:00
import antd from 'ant-design-vue/index.ts';
2020-10-02 13:16:05 +00:00
2020-07-08 14:28:09 +00:00
// eslint-disable-next-line no-console
console.log('Vue version: ', version);
2020-10-02 13:16:05 +00:00
const basic = (_, { slots }) => {
return slots && slots.default && slots.default();
};
2021-06-08 13:54:26 +00:00
const router = createRouter({
history: createWebHistory(),
fallback: false,
routes: [],
});
const app = createApp(App);
2021-06-08 13:54:26 +00:00
app.use(router);
2020-10-02 13:16:05 +00:00
app
2021-06-08 13:54:26 +00:00
.component('DemoSort', basic)
2020-10-02 13:16:05 +00:00
.component('md', basic)
.component('api', basic)
.component('CN', basic)
.component('US', basic)
.component('demo-container', basic)
.use(antd)
.mount('#app');