diff --git a/CHANGELOG.md b/CHANGELOG.md index f98c6d169..3a1a5679d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,15 @@ ## 更新日志 ### 1.0.0-rc.9 -*2016-11-xx* + +*2016-11-XX* + - 新增 MessageBox 确定按钮自动获取焦点, #721 - 修复 Popover focus 失效, #734 - 修复 Clickoutside 报错, #729 - 修复 DatePicker 选择日期范围时当选中同一天再调整时间会出错 - 更新 TimePicker 滚动条在 IE10+ 下隐藏 +- 新增 Dropdown 新增 command api #432 ### 1.0.0-rc.8 diff --git a/README.md b/README.md index 6c4ff561f..80ec53929 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Element [![Build Status](https://travis-ci.org/ElemeFE/element.svg?branch=master)](https://travis-ci.org/ElemeFE/element) [![Coverage Status](https://coveralls.io/repos/github/ElemeFE/element/badge.svg?branch=master)](https://coveralls.io/github/ElemeFE/element?branch=master) +[![CDNJS](https://img.shields.io/cdnjs/v/element-ui.svg)](https://cdnjs.com/libraries/element-ui) [![npm package](https://img.shields.io/npm/v/element-ui.svg)](https://www.npmjs.org/package/element-ui) [![NPM downloads](http://img.shields.io/npm/dm/element-ui.svg)](https://npmjs.org/package/element-ui) ![JS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui@next/lib/index.js?compression=gzip&label=gzip%20size:%20JS) diff --git a/examples/docs/zh-cn/checkbox.md b/examples/docs/zh-cn/checkbox.md index 2789f6f80..647d16f50 100644 --- a/examples/docs/zh-cn/checkbox.md +++ b/examples/docs/zh-cn/checkbox.md @@ -108,38 +108,11 @@ ``` ::: -### 可切换值的多选框 - -多选框单独时,除了可以表示为是否选中的逻辑值以外,你还可以设定其选中和未选中所表示的值。 - -:::demo 使用`true-label`和`false-label`可以自定义选中时和未选中时的值,可以为`String`或`Number`类型。 - -```html - - -``` -::: - ### Checkbox Attributes | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | -| label | 选中状态的值(只有在`checkbox-group`下有意义) | string | — | — | -| true-label | 选中时的值 | string, number | — | — | +| label | 选中状态的值(只有在`checkbox-group`或者绑定对象类型为`array`时有效)| string | — | — | +| true-label | 选中时的值 | string, number | — | — | | false-label | 没有选中时的值 | string, number | — | — | | disabled | 按钮禁用 | boolean | — | false | | checked | 当前是否勾选 | boolean | — | false | diff --git a/examples/docs/zh-cn/dropdown.md b/examples/docs/zh-cn/dropdown.md index 55d77db2f..1121fdd1a 100644 --- a/examples/docs/zh-cn/dropdown.md +++ b/examples/docs/zh-cn/dropdown.md @@ -148,7 +148,7 @@ ::: -### Attributes +### Dropdown Attributes | 参数 | 说明 | 类型 | 可选值 | 默认值 | |------------- |---------------- |---------------- |---------------------- |-------- | | type | 菜单按钮类型,同 Button 组件(只在`split-button`为 true 的情况下有效) | string | — | — | @@ -157,7 +157,13 @@ | menu-align | 菜单水平对齐方向 | string | start, end | end | | trigger | 触发下拉的行为 | string | hover, click | hover | -### Events +### Dropdown Events | 事件名称 | 说明 | 回调参数 | |---------- |-------- |---------- | | click | `split-button` 为 true 时,点击左侧按钮的回调 | — | +| command | 点击菜单项触发的事件回调 | dropdown-item 的指令 | + +### Dropdown Attributes +| 参数 | 说明 | 类型 | 可选值 | 默认值 | +|------------- |---------------- |---------------- |---------------------- |-------- | +| command | 指令 | string | — | — | diff --git a/examples/docs/zh-cn/form.md b/examples/docs/zh-cn/form.md index 141fe6cc2..6f45318c3 100644 --- a/examples/docs/zh-cn/form.md +++ b/examples/docs/zh-cn/form.md @@ -13,7 +13,7 @@ } else { callback(); } - } + } }, 1000); }; var validaePass = (rule, value, callback) => { @@ -266,7 +266,7 @@ .el-textarea { width: auto; } - + .el-select .el-input { width: 360px; } @@ -295,7 +295,7 @@ ::: demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker ```html - + @@ -335,7 +335,7 @@ - 立即创建 + 立即创建 取消 @@ -371,7 +371,7 @@ ::: demo Form 组件的 `type` 属性可以控制表单的类型,当设为 `inline` 时可以让表单域变为行内的表单域 ```html - + @@ -380,7 +380,7 @@ - 查询 + 查询