From 3557e019de7285b11ff26dabc0e391abab7e3378 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 8 Jun 2021 21:51:20 +0800 Subject: [PATCH] docs: update examples --- examples/index.js | 10 +++++++++- v2-doc | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/index.js b/examples/index.js index 2eac35440..0273e0218 100644 --- a/examples/index.js +++ b/examples/index.js @@ -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) diff --git a/v2-doc b/v2-doc index 6819090fb..0f6d531d0 160000 --- a/v2-doc +++ b/v2-doc @@ -1 +1 @@ -Subproject commit 6819090fbcc94b248bc761d5f26162f29c04b2ef +Subproject commit 0f6d531d088d5283250c8cec1c7e8be0e0d36a36