ant-design-vue/examples/index.js

22 lines
579 B
JavaScript
Raw Normal View History

2020-05-27 19:11:46 +08:00
import '@babel/polyfill';
2020-10-13 15:02:35 +08:00
import 'ant-design-vue/style';
2020-07-08 22:28:09 +08:00
import { createApp, version } from 'vue';
2020-03-23 11:00:24 +08:00
import App from './App.vue';
2020-10-13 15:02:35 +08:00
import antd from 'ant-design-vue/index.ts';
2020-10-02 21:16:05 +08:00
2020-07-08 22:28:09 +08:00
// eslint-disable-next-line no-console
console.log('Vue version: ', version);
2020-10-02 21:16:05 +08:00
const basic = (_, { slots }) => {
return slots && slots.default && slots.default();
};
const app = createApp(App);
2020-10-02 21:16:05 +08: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');