docs: add ICP license (#12893)
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
:dark-mode-class="darkModeClass"
|
||||
>
|
||||
<router-view />
|
||||
<div class="van-doc-icp" v-if="icpLicense">
|
||||
<a :href="icpLicense.link" target="_black">
|
||||
{{ icpLicense.text }}
|
||||
</a>
|
||||
</div>
|
||||
</van-doc>
|
||||
</div>
|
||||
</template>
|
||||
@@ -64,6 +69,13 @@ export default {
|
||||
return config.site;
|
||||
},
|
||||
|
||||
icpLicense() {
|
||||
if (this.lang === 'zh-CN') {
|
||||
return config.site.icpLicense;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
versions() {
|
||||
return config.site.versions || null;
|
||||
},
|
||||
@@ -144,4 +156,13 @@ export default {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.van-doc-icp {
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: #bbb;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user