Skip to content

Commit

Permalink
Merge pull request alibaba-fusion#892 from youluna/docs-fix
Browse files Browse the repository at this point in the history
docs(*): fix docs
  • Loading branch information
myronliu347 authored Jul 19, 2019
2 parents 7e4d501 + 0dfea1c commit 4749bde
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/menu/demo/hoz.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Menu } from '@alifd/next';
const { SubMenu, Item } = Menu;

ReactDOM.render(
<Menu hozInLine direction="hoz" mode="inline" className="my-hoz-menu" popupClassName="my-hoz-menu" popupAutoWidth>
<Menu hozInLine direction="hoz" mode="popup" className="my-hoz-menu" popupClassName="my-hoz-menu" popupAutoWidth>
<Item key="1">First</Item>
<Item key="2">Second</Item>
<SubMenu label="Sub Nav">
Expand Down
36 changes: 18 additions & 18 deletions docs/virtual-list/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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;
}
````
2 changes: 1 addition & 1 deletion src/form/item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Item extends React.Component {
extra: PropTypes.node,
/**
* 校验状态,如不设置,则会根据校验规则自动生成
* @enumdesc 成功, 失败, 校验中
* @enumdesc 失败, 成功, 校验中
*/
validateState: PropTypes.oneOf(['error', 'success', 'loading']),
/**
Expand Down

0 comments on commit 4749bde

Please sign in to comment.