docs: update examples
parent
0fa1581a99
commit
3557e019de
|
@ -1,6 +1,7 @@
|
||||||
import '@babel/polyfill';
|
import '@babel/polyfill';
|
||||||
import 'ant-design-vue/style';
|
import 'ant-design-vue/style';
|
||||||
import { createApp, version } from 'vue';
|
import { createApp, version } from 'vue';
|
||||||
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import antd from 'ant-design-vue/index.ts';
|
import antd from 'ant-design-vue/index.ts';
|
||||||
|
|
||||||
|
@ -9,9 +10,16 @@ console.log('Vue version: ', version);
|
||||||
const basic = (_, { slots }) => {
|
const basic = (_, { slots }) => {
|
||||||
return slots && slots.default && slots.default();
|
return slots && slots.default && slots.default();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const router = createRouter({
|
||||||
|
history: createWebHistory(),
|
||||||
|
fallback: false,
|
||||||
|
routes: [],
|
||||||
|
});
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
app.use(router);
|
||||||
app
|
app
|
||||||
.component('demo-sort', basic)
|
.component('DemoSort', basic)
|
||||||
.component('md', basic)
|
.component('md', basic)
|
||||||
.component('api', basic)
|
.component('api', basic)
|
||||||
.component('CN', basic)
|
.component('CN', basic)
|
||||||
|
|
2
v2-doc
2
v2-doc
|
@ -1 +1 @@
|
||||||
Subproject commit 6819090fbcc94b248bc761d5f26162f29c04b2ef
|
Subproject commit 0f6d531d088d5283250c8cec1c7e8be0e0d36a36
|
Loading…
Reference in New Issue