doc fix
This commit is contained in:
parent
c64d00827b
commit
14031970c4
|
@ -7,6 +7,7 @@ menuName: 表达式
|
||||||
icon:
|
icon:
|
||||||
order: 13
|
order: 13
|
||||||
---
|
---
|
||||||
|
|
||||||
一般来说,属性名类似于`xxxOn`的配置项,都可以使用表达式进行配置,表达式具有如下的语法:
|
一般来说,属性名类似于`xxxOn`的配置项,都可以使用表达式进行配置,表达式具有如下的语法:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -32,8 +33,3 @@ order: 13
|
||||||
组件不同的配置项会有不同的效果,请大家在组件文档中多留意。
|
组件不同的配置项会有不同的效果,请大家在组件文档中多留意。
|
||||||
|
|
||||||
> 表达式的执行结果预期应该是`boolean`类型值,如果不是,amis 会根据 JavaScript 的规则将结果视作`boolean`类型进行判断
|
> 表达式的执行结果预期应该是`boolean`类型值,如果不是,amis 会根据 JavaScript 的规则将结果视作`boolean`类型进行判断
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -652,9 +652,9 @@ export const docs = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ButtonGroup 按钮组',
|
label: 'ButtonGroup 按钮组',
|
||||||
path: '/docs/components/buttongroup',
|
path: '/docs/components/button-group',
|
||||||
getComponent: (location, cb) =>
|
getComponent: (location, cb) =>
|
||||||
require(['../../docs/components/buttongroup.md'], doc => {
|
require(['../../docs/components/button-group.md'], doc => {
|
||||||
cb(null, makeMarkdownRenderer(doc));
|
cb(null, makeMarkdownRenderer(doc));
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -251,7 +251,7 @@ export default function (doc) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{doc.toc && doc.toc.children && doc.toc.children.length > 1 ? (
|
{doc.toc && doc.toc.children && doc.toc.children.length > 0 ? (
|
||||||
<div className="Doc-toc hidden-xs hidden-sm">
|
<div className="Doc-toc hidden-xs hidden-sm">
|
||||||
<div>
|
<div>
|
||||||
<div className="Doc-headingList">
|
<div className="Doc-headingList">
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
/* csshint-disable */
|
/* csshint-disable */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: octicons-link;
|
font-family: octicons-link;
|
||||||
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ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5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff');
|
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8Jy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WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==)
|
||||||
|
format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
-ms-text-size-adjust: 100%;
|
-ms-text-size-adjust: 100%;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'STHeiti',
|
||||||
|
'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
@ -78,13 +80,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body button:-moz-focusring,
|
.markdown-body button:-moz-focusring,
|
||||||
.markdown-body [type="button"]:-moz-focusring,
|
.markdown-body [type='button']:-moz-focusring,
|
||||||
.markdown-body [type="reset"]:-moz-focusring,
|
.markdown-body [type='reset']:-moz-focusring,
|
||||||
.markdown-body [type="submit"]:-moz-focusring {
|
.markdown-body [type='submit']:-moz-focusring {
|
||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body [type="checkbox"] {
|
.markdown-body [type='checkbox'] {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +106,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body input {
|
.markdown-body input {
|
||||||
font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans, clean,
|
||||||
|
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body a:not(.btn) {
|
.markdown-body a:not(.btn) {
|
||||||
|
@ -129,13 +132,13 @@
|
||||||
|
|
||||||
.markdown-body hr::before {
|
.markdown-body hr::before {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body hr::after {
|
.markdown-body hr::after {
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
content: "";
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body > h1,
|
.markdown-body > h1,
|
||||||
|
@ -206,14 +209,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body code {
|
.markdown-body code {
|
||||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body pre {
|
.markdown-body pre {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
font: 12px Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body .pl-0 {
|
.markdown-body .pl-0 {
|
||||||
|
@ -250,13 +253,13 @@
|
||||||
|
|
||||||
.markdown-body:before {
|
.markdown-body:before {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body:after {
|
.markdown-body:after {
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
content: "";
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body > *:first-child {
|
.markdown-body > *:first-child {
|
||||||
|
@ -451,7 +454,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-break: keep-all;
|
/* word-break: keep-all; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body table:not(.table) th {
|
.markdown-body table:not(.table) th {
|
||||||
|
@ -506,7 +509,7 @@
|
||||||
.markdown-body code:before,
|
.markdown-body code:before,
|
||||||
.markdown-body code:after {
|
.markdown-body code:after {
|
||||||
letter-spacing: -0.2em;
|
letter-spacing: -0.2em;
|
||||||
content: "\00a0";
|
content: '\00a0';
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body pre > code {
|
.markdown-body pre > code {
|
||||||
|
@ -675,7 +678,7 @@
|
||||||
.markdown-body kbd {
|
.markdown-body kbd {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
font: 11px Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||||||
line-height: 10px;
|
line-height: 10px;
|
||||||
color: #555;
|
color: #555;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
|
@ -448,10 +448,6 @@ a {
|
||||||
> pre {
|
> pre {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table:not(.table) {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue