diff --git a/docs/menu/demo/hoz.md b/docs/menu/demo/hoz.md index fa5c5a2a7b..8406e00e7b 100644 --- a/docs/menu/demo/hoz.md +++ b/docs/menu/demo/hoz.md @@ -20,7 +20,7 @@ import { Menu } from '@alifd/next'; const { SubMenu, Item } = Menu; ReactDOM.render( - + First Second diff --git a/docs/virtual-list/demo/basic.md b/docs/virtual-list/demo/basic.md index b3d5fbeae5..c3530f913b 100644 --- a/docs/virtual-list/demo/basic.md +++ b/docs/virtual-list/demo/basic.md @@ -15,6 +15,24 @@ A simple case. --- +````css +.virtual-box { + height: 200px; + width: 200px; + border: 1px solid #ddd; + overflow: auto; +} +.virtual-box ul { + padding: 0; + margin: 0; + list-style: none; +} +.virtual-box li { + padding-left: 10px; + border-bottom: 1px solid #333; +} +```` + ````jsx import { VirtualList } from '@alifd/next'; @@ -44,21 +62,3 @@ const demo = ( ReactDOM.render(demo, mountNode); ```` - -````css -.virtual-box { - height: 200px; - width: 200px; - border: 1px solid #ddd; - overflow: auto; -} -.virtual-box ul { - padding: 0; - margin: 0; - list-style: none; -} -.virtual-box li { - padding-left: 10px; - border-bottom: 1px solid #333; -} -```` diff --git a/src/form/item.jsx b/src/form/item.jsx index 81c29eb781..79995c980d 100644 --- a/src/form/item.jsx +++ b/src/form/item.jsx @@ -41,7 +41,7 @@ export default class Item extends React.Component { extra: PropTypes.node, /** * 校验状态,如不设置,则会根据校验规则自动生成 - * @enumdesc 成功, 失败, 校验中 + * @enumdesc 失败, 成功, 校验中 */ validateState: PropTypes.oneOf(['error', 'success', 'loading']), /**