mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs: support version switch
This commit is contained in:
parent
3691cc409c
commit
f7fa7698a8
@ -3,6 +3,7 @@
|
|||||||
active="小程序组件"
|
active="小程序组件"
|
||||||
:config="config"
|
:config="config"
|
||||||
:github="github"
|
:github="github"
|
||||||
|
:versions="versions"
|
||||||
:simulator="simulator"
|
:simulator="simulator"
|
||||||
>
|
>
|
||||||
<router-view />
|
<router-view />
|
||||||
@ -10,7 +11,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import docConfig, { github } from './doc.config';
|
import docConfig, { github, versions } from './doc.config';
|
||||||
|
|
||||||
const UNSHARED = [
|
const UNSHARED = [
|
||||||
'common',
|
'common',
|
||||||
@ -23,7 +24,8 @@ const UNSHARED = [
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
github
|
github,
|
||||||
|
versions
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -5,10 +5,11 @@ const { version } = packageJson;
|
|||||||
|
|
||||||
export const github = 'https://github.com/youzan/vant-weapp';
|
export const github = 'https://github.com/youzan/vant-weapp';
|
||||||
|
|
||||||
|
export const versions = [version, '0.x'];
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
header: {
|
header: {
|
||||||
logo: {
|
logo: {
|
||||||
version,
|
|
||||||
image: 'https://img.yzcdn.cn/vant/logo.png',
|
image: 'https://img.yzcdn.cn/vant/logo.png',
|
||||||
title: 'Vant Weapp',
|
title: 'Vant Weapp',
|
||||||
href: '#/'
|
href: '#/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user