docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@vant/doc",
"version": "2.5.3",
"version": "2.5.5",
"description": "vant document template",
"main": "./lib/index.js",
"publishConfig": {

View File

@@ -132,6 +132,13 @@ export default {
font-family: inherit;
word-break: keep-all;
}
em {
color: @van-doc-fuchsia;
font-size: 12px;
font-family: @van-doc-code-font-family;
font-style: normal;
}
}
ul li,

View File

@@ -1,5 +1,4 @@
@import './variable';
@import '../../../../src/style/var';
code {
position: relative;
@@ -9,7 +8,7 @@ code {
color: @van-doc-code-color;
font-weight: 400;
font-size: 13px;
font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;
font-family: @van-doc-code-font-family;
line-height: 24px;
white-space: pre-wrap;
word-break: break-all;
@@ -36,7 +35,7 @@ pre {
.hljs-template-tag,
.hljs-template-variable,
.hljs-addition {
color: #7232dd;
color: @van-doc-purple;
}
.hljs-comment,
@@ -69,7 +68,7 @@ pre {
.hljs-selector-id,
.hljs-selector-class,
.hljs-strong {
color: @blue;
color: @van-doc-blue;
}
.hljs-emphasis {

View File

@@ -1,5 +1,7 @@
@van-doc-black: #333;
@van-doc-blue: #1989fa;
@van-doc-purple: #5758bb;
@van-doc-fuchsia: #a7419e;
@van-doc-text-color: #34495e;
@van-doc-text-light-blue: rgba(69, 90, 100, .6);
@van-doc-grey: #999;
@@ -8,6 +10,7 @@
@van-doc-border-color: #f1f4f8;
@van-doc-code-color: #455a64;
@van-doc-code-background-color: #f1f4f8;
@van-doc-code-font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;
@van-doc-padding: 30px;
@van-doc-row-max-width: 1680px;
@van-doc-nav-width: 220px;

View File

@@ -88,7 +88,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| v-waterfall-lower | 滚动到底部, 触发执行的函数 | `Function` | - | - |
| v-waterfall-upper | 滚动到顶部, 触发执行的函数 | `Function` | - | - |
| v-waterfall-lower | 滚动到底部, 触发执行的函数 | *Function* | - | - |
| v-waterfall-upper | 滚动到顶部, 触发执行的函数 | *Function* | - | - |
| waterfall-disabled | 在 vue 对象中表示是否禁止瀑布流触发的 key 值 | `String` | - | - |
| waterfall-offset | 触发瀑布流加载的阈值 | `Number` | `300` | - |