2020-05-27 11:11:46 +00:00
|
|
|
import '@babel/polyfill';
|
2020-07-20 08:29:46 +00:00
|
|
|
import 'ant-design-vue/style.js';
|
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-07-25 06:47:38 +00:00
|
|
|
import antd from 'ant-design-vue/index.js';
|
2020-07-07 06:19:04 +00:00
|
|
|
|
2020-07-08 14:28:09 +00:00
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log('Vue version: ', version);
|
2020-07-24 10:46:45 +00:00
|
|
|
const basic = (_, { slots }) => {
|
2020-07-26 13:35:41 +00:00
|
|
|
return slots && slots.default && slots.default();
|
2020-06-20 07:14:51 +00:00
|
|
|
};
|
2020-06-14 13:41:29 +00:00
|
|
|
const app = createApp(App);
|
|
|
|
app
|
2020-07-24 10:46:45 +00:00
|
|
|
.component('demo-sort', basic)
|
|
|
|
.component('md', basic)
|
|
|
|
.component('api', basic)
|
|
|
|
.component('CN', basic)
|
|
|
|
.component('US', basic)
|
2020-07-27 08:04:37 +00:00
|
|
|
.component('demo-container', basic)
|
2020-07-25 06:47:38 +00:00
|
|
|
.use(antd)
|
2020-05-27 11:11:46 +00:00
|
|
|
.mount('#app');
|