[Doc]: add CDN link

This commit is contained in:
陈嘉涵
2017-10-20 11:22:22 +08:00
parent a2f4a4ed83
commit 45e134fa7e
5 changed files with 26 additions and 76 deletions
+10
View File
@@ -47,3 +47,13 @@ import 'vant/lib/vant-css/index.css';
Vue.use(Vant);
```
### CDN
```html
<!-- import style -->
<link rel="stylesheet" href="https://unpkg.com/vant/lib/vant-css/index.css" />
<!-- import script --><script></script>
<script src="https://unpkg.com/vant/lib/vant.min.js"></script>
```
+10
View File
@@ -48,6 +48,16 @@ import 'vant/lib/vant-css/index.css';
Vue.use(Vant);
```
### CDN
```html
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/vant/lib/vant-css/index.css">
<!-- 引入组件 --><script></script>
<script src="https://unpkg.com/vant/lib/vant.min.js"></script>
```
### 自定义主题
`Vant`提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。如果你想完全替换主题色或者部分样式,可以使用下面的方法:
+2 -2
View File
@@ -12,7 +12,7 @@ module.exports = {
微信小程序: 'https://github.com/youzan/zanui-weapp',
意见反馈: 'https://github.com/youzan/vant/issues',
开发指南:
'https://github.com/youzan/vant/blob/dev/docs/examples-docs/zh-CN/contribute.md'
'https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.zh-CN.md'
}
},
nav: [
@@ -268,7 +268,7 @@ module.exports = {
Weapp: 'https://github.com/youzan/zanui-weapp',
Feedback: 'https://github.com/youzan/vant/issues',
Contribute:
'https://github.com/youzan/vant/blob/dev/docs/examples-docs/en-US/contribute.md'
'https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.md'
}
},
nav: [