Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 8, 2021
1 parent 0fa1581 commit 3557e01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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';

Expand All @@ -9,9 +10,16 @@ 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('demo-sort', basic)
.component('DemoSort', basic)
.component('md', basic)
.component('api', basic)
.component('CN', basic)
Expand Down

0 comments on commit 3557e01

Please sign in to comment.