Skip to content

Commit

Permalink
refactor: 更新 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dwqs committed Apr 9, 2018
1 parent 8669864 commit 1855dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gh/components/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export default class Main extends Component {
<h5>设置 placeholders</h5>
<Basic placeholders={['选择省', '选择市']}/>
<p className='desc'>
<code>placeholders</code>&nbsp;是一个数组, 数组项顺序分别对应省/市/区/街道.
<code>placeholders</code>&nbsp;是一个数组, 数组项顺序分别对应省/市/区.
</p>
<h5>设置默认值及省市区联动</h5>
<DefaultVal level={2} />
<p className='desc'>
<code>selected</code>&nbsp;是一个数组, 数组项顺序分别对应省/市/区/街道, 且类型(区域代码/区域文本)必须统一. 以第一个元素类型为基准. 类型不统一将报错.
<code>selected</code>&nbsp;是一个数组, 数组项顺序分别对应省/市/区, 且类型(区域代码/区域文本)必须统一. 以第一个元素类型为基准. 类型不统一将报错.
</p>
<h5>只选省份</h5>
<DefaultVal level={0} type='all' />
Expand Down

0 comments on commit 1855dae

Please sign in to comment.