diff --git a/antdv-demo/components/header.vue b/antdv-demo/components/header.vue index 11090cfbb..d4fb670f6 100644 --- a/antdv-demo/components/header.vue +++ b/antdv-demo/components/header.vue @@ -17,7 +17,7 @@ export default { return { visibleAdblockBanner: !!this.demoContext.blocked, value: null, - showTopBanner: !localStorage.getItem('notification-key-2.2'), + showTopBanner: !localStorage.getItem('notification-key-next'), }; }, watch: { @@ -64,8 +64,8 @@ export default { this.value = val; }, closeTopBanner() {}, - changeVersion() { - location.href = `https://2x.antdv.com${this.$route.fullPath}`; + changeVersion(v) { + location.href = `https://${v}.antdv.com${this.$route.fullPath}`; }, }, render() { @@ -92,32 +92,32 @@ export default { {isCN && this.showTopBanner && (
- 当前文档是 1.x 版本,如需使用 Vue 3 请访问   - - 2.x + v3 版本已发布,请访问    + + next.antdv.com -   版本文档 +   查看更多详情 this.handleClose('2.0')} + onClick={() => this.handleClose('next')} />
)} {!isCN && this.showTopBanner && (
- You’re browsing the documentation for v1.x (support vue 2).  - - Click here + v3 beta is out! Discover more about it on   + + next.antdv.com -  for v2.x(support vue 3) documentation. +   this.handleClose('2.0')} + onClick={() => this.handleClose('next')} />
)} @@ -162,8 +162,11 @@ export default { {packageInfo.version} - - 2.x + this.changeVersion('2x')}> + v2 LST + + this.changeVersion('next')}> + v3 Current (Latest Features) diff --git a/antdv-demo/components/right_bottom_ad.vue b/antdv-demo/components/right_bottom_ad.vue index 6df499112..871d2e988 100644 --- a/antdv-demo/components/right_bottom_ad.vue +++ b/antdv-demo/components/right_bottom_ad.vue @@ -1,6 +1,12 @@