Skip to content

Commit

Permalink
chore(*): Release-1.20.23
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Jul 28, 2020
1 parent c42e0f7 commit b735f80
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## [1.20.23](https://github.com/alibaba-fusion/next/compare/1.20.22...1.20.23) (2020-07-28)


### Bug Fixes

* **Menu:** enhance robotness ([9098d95](https://github.com/alibaba-fusion/next/commit/9098d95))
* **Tab:** offest exception when set translate scale, close [#1928](https://github.com/alibaba-fusion/next/issues/1928) ([c42e0f7](https://github.com/alibaba-fusion/next/commit/c42e0f7))
* **Typescript:** replace {} with any ([d3bfd09](https://github.com/alibaba-fusion/next/commit/d3bfd09))


### Features

* **Select:** add defaultHighlightKey ([ad8c5cb](https://github.com/alibaba-fusion/next/commit/ad8c5cb))




## [1.20.22](https://github.com/alibaba-fusion/next/compare/1.20.21...1.20.22) (2020-07-27)


Expand Down
11 changes: 9 additions & 2 deletions LATESTLOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Latest Log

## [1.20.22](https://github.com/alibaba-fusion/next/compare/1.20.21...1.20.22) (2020-07-27)
## [1.20.23](https://github.com/alibaba-fusion/next/compare/1.20.22...1.20.23) (2020-07-28)


### Bug Fixes

* **Overlay:** bug on Gateway when settting ContainerNode,close [#2033](https://github.com/alibaba-fusion/next/issues/2033) ([0cdac60](https://github.com/alibaba-fusion/next/commit/0cdac60))
* **Menu:** enhance robotness ([9098d95](https://github.com/alibaba-fusion/next/commit/9098d95))
* **Tab:** offest exception when set translate scale, close [#1928](https://github.com/alibaba-fusion/next/issues/1928) ([c42e0f7](https://github.com/alibaba-fusion/next/commit/c42e0f7))
* **Typescript:** replace {} with any ([d3bfd09](https://github.com/alibaba-fusion/next/commit/d3bfd09))


### Features

* **Select:** add defaultHighlightKey ([ad8c5cb](https://github.com/alibaba-fusion/next/commit/ad8c5cb))


6 changes: 4 additions & 2 deletions docs/select/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ const dataSource = [
| menuProps | 添加到菜单上的属性 | Object | - |
| filterLocal | 是否使用本地过滤,在数据源为远程的时候需要关闭此项 | Boolean | true |
| filter | 本地过滤方法,返回一个 Boolean 值确定是否保留<br><br>**签名**:<br>Function(key: String, item: Object) => Boolean<br>**参数**:<br>_key_: {String} 搜索关键字<br>_item_: {Object} 渲染节点的item<br>**返回值**:<br>{Boolean} 是否匹配<br> | Function | filter |
| defaultHighlightKey | 默认高亮的 key,不要和 autoHighlightFirstItem 同时使用 | String | null |
| onToggleHighlightItem | 键盘上下键切换菜单高亮选项的回调<br><br>**签名**:<br>Function() => void | Function | func.noop |
| autoHighlightFirstItem | 自动高亮第一个元素 | Boolean | true |
| useVirtual | 是否开启虚拟滚动模式 | Boolean | - |
| dataSource | 传入的数据源,可以动态渲染子项,详见 [dataSource的使用](#dataSource的使用) | Array&lt;Object/Boolean/Number/String> | - |
| itemRender | 渲染 MenuItem 内容的方法<br><br>**签名**:<br>Function(item: Object, searchValue: String) => ReactNode<br>**参数**:<br>_item_: {Object} 渲染节点的item<br>_searchValue_: {String} 搜索关键字(如果开启搜索)<br>**返回值**:<br>{ReactNode} item node<br> | Function | - |
| mode | 选择器模式<br><br>**可选值**:<br>'single', 'multiple', 'tag' | Enum | 'single' |
| notFoundContent | 弹层内容为空的文案 | ReactNode | - |
| isPreview | 是否为预览态 | Boolean | - |
| renderPreview | 预览态模式下渲染的内容<br><br>**签名**:<br>Function(value: number) => void<br>**参数**:<br>_value_: {number} 评分值 | Function | - |
| autoHighlightFirstItem | 自动高亮第一个元素 | Boolean | true |
| showDataSourceChildren | 是否展示 dataSource 中 children | Boolean | - |
| onChange | Select发生改变时触发的回调<br><br>**签名**:<br>Function(value: mixed, actionType: String, item: mixed) => void<br>**参数**:<br>_value_: {mixed} 选中的值<br>_actionType_: {String} 触发的方式, 'itemClick', 'enter', 'tag'<br>_item_: {mixed} 选中的值的对象数据 (useDetailValue=false有效) | Function | - |
| hasBorder | 是否有边框 | Boolean | - |
Expand Down Expand Up @@ -144,13 +145,14 @@ const dataSource = [
| menuProps | 添加到菜单上的属性 | Object | - |
| filterLocal | 是否使用本地过滤,在数据源为远程的时候需要关闭此项 | Boolean | true |
| filter | 本地过滤方法,返回一个 Boolean 值确定是否保留<br><br>**签名**:<br>Function(key: String, item: Object) => Boolean<br>**参数**:<br>_key_: {String} 搜索关键字<br>_item_: {Object} 渲染节点的item<br>**返回值**:<br>{Boolean} 是否匹配<br> | Function | filter |
| defaultHighlightKey | 默认高亮的 key,不要和 autoHighlightFirstItem 同时使用 | String | null |
| onToggleHighlightItem | 键盘上下键切换菜单高亮选项的回调<br><br>**签名**:<br>Function() => void | Function | func.noop |
| autoHighlightFirstItem | 自动高亮第一个元素 | Boolean | true |
| useVirtual | 是否开启虚拟滚动模式 | Boolean | - |
| dataSource | 传入的数据源,可以动态渲染子项 | Array&lt;Object/String> | - |
| itemRender | 渲染 MenuItem 内容的方法<br><br>**签名**:<br>Function(item: Object) => ReactNode<br>**参数**:<br>_item_: {Object} 渲染节点的 item<br>**返回值**:<br>{ReactNode} item node<br> | Function | - |
| isPreview | 是否为预览态 | Boolean | - |
| renderPreview | 预览态模式下渲染的内容<br><br>**签名**:<br>Function(value: number) => void<br>**参数**:<br>_value_: {number} 评分值 | Function | - |
| autoHighlightFirstItem | 自动高亮第一个元素 | Boolean | true |
| onChange | Select发生改变时触发的回调<br><br>**签名**:<br>Function(value: mixed, actionType: String, item: mixed) => void<br>**参数**:<br>_value_: {mixed} 选中的值<br>_actionType_: {String} 触发的方式, 'itemClick', 'enter', 'change'<br>_item_: {mixed} 选中的值的对象数据 | Function | - |
| fillProps | 填充到选择框里的值的 key,默认是 value | String | 'value' |

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var next = require('./lib/index.js');

next.version = '1.20.22';
next.version = '1.20.23';

module.exports = next;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alifd/next",
"version": "1.20.22",
"version": "1.20.23",
"description": "A configurable component library for web built on React.",
"keywords": [
"fusion",
Expand Down

0 comments on commit b735f80

Please sign in to comment.