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';
|
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();
|
|
|
|
};
|
2020-06-14 13:41:29 +00:00
|
|
|
const app = createApp(App);
|
2020-10-02 13:16:05 +00:00
|
|
|
app
|
|
|
|
.component('demo-sort', basic)
|
|
|
|
.component('md', basic)
|
|
|
|
.component('api', basic)
|
|
|
|
.component('CN', basic)
|
|
|
|
.component('US', basic)
|
|
|
|
.component('demo-container', basic)
|
|
|
|
.use(antd)
|
|
|
|
.mount('#app');
|