Skip to content

Commit 3557e01

Browse files
committed
docs: update examples
1 parent 0fa1581 commit 3557e01

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

examples/index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import '@babel/polyfill';
22
import 'ant-design-vue/style';
33
import { createApp, version } from 'vue';
4+
import { createRouter, createWebHistory } from 'vue-router';
45
import App from './App.vue';
56
import antd from 'ant-design-vue/index.ts';
67

@@ -9,9 +10,16 @@ console.log('Vue version: ', version);
910
const basic = (_, { slots }) => {
1011
return slots && slots.default && slots.default();
1112
};
13+
14+
const router = createRouter({
15+
history: createWebHistory(),
16+
fallback: false,
17+
routes: [],
18+
});
1219
const app = createApp(App);
20+
app.use(router);
1321
app
14-
.component('demo-sort', basic)
22+
.component('DemoSort', basic)
1523
.component('md', basic)
1624
.component('api', basic)
1725
.component('CN', basic)

0 commit comments

Comments
 (0)