docs: update examples
parent
0fa1581a99
commit
3557e019de
|
@ -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';
|
||||
|
||||
|
@ -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)
|
||||
|
|
2
v2-doc
2
v2-doc
|
@ -1 +1 @@
|
|||
Subproject commit 6819090fbcc94b248bc761d5f26162f29c04b2ef
|
||||
Subproject commit 0f6d531d088d5283250c8cec1c7e8be0e0d36a36
|
Loading…
Reference in New Issue