mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Doc] add introduction page (#452)
This commit is contained in:
@@ -39,3 +39,33 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="postcss">
|
||||
.van-doc-intro {
|
||||
text-align: center;
|
||||
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
||||
|
||||
&__youzan {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: block;
|
||||
margin: 25px 0 0;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 32px;
|
||||
line-height: 60px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 15px;
|
||||
color: #455a64;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@@ -32,6 +32,11 @@ module.exports = {
|
||||
groups: [
|
||||
{
|
||||
list: [
|
||||
{
|
||||
path: '/intro',
|
||||
title: '介绍',
|
||||
noExample: true
|
||||
},
|
||||
{
|
||||
path: '/quickstart',
|
||||
title: '快速上手',
|
||||
@@ -315,6 +320,11 @@ module.exports = {
|
||||
groups: [
|
||||
{
|
||||
list: [
|
||||
{
|
||||
path: '/intro',
|
||||
title: 'Introduction',
|
||||
noExample: true
|
||||
},
|
||||
{
|
||||
path: '/quickstart',
|
||||
title: 'Getting Started',
|
||||
|
@@ -22,7 +22,7 @@ const registerRoute = (isExample) => {
|
||||
} else {
|
||||
route.push({
|
||||
path: `/${lang}`,
|
||||
redirect: `/${lang}/component/quickstart`
|
||||
redirect: `/${lang}/component/intro`
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user