From 976fb9bd35aef4aa3baf1be35e10da1a6c9a9122 Mon Sep 17 00:00:00 2001 From: solarjoker Date: Thu, 29 Aug 2019 10:21:48 +0800 Subject: [PATCH 1/2] chore: update version and changelog --- CHANGELOG.md | 11 +++++++++++ docs/zh-CN/components/changelog.mdx | 13 +++++++++++-- package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d3e9e593..9f0f5db93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # 更新日志 +## 2.2.0 + +- 新增 `` 走马灯组件 [#115](https://github.com/XiaoMi/hiui/issues/115) +- 新增 `` clearable 属性控制是否可清空 [#590](https://github.com/XiaoMi/hiui/issues/590) +- 新增 `` visible 属性手动控制显示或隐藏 [#589](https://github.com/XiaoMi/hiui/issues/589) +- 新增 `` visible 属性手动控制显示或隐藏 [#588](https://github.com/XiaoMi/hiui/issues/588) +- 修复 `` clearable 不生效的问题 [#580](https://github.com/XiaoMi/hiui/issues/580) diff --git a/docs/zh-CN/components/changelog.mdx b/docs/zh-CN/components/changelog.mdx index 6748c294a..91b88af8e 100644 --- a/docs/zh-CN/components/changelog.mdx +++ b/docs/zh-CN/components/changelog.mdx @@ -1,13 +1,22 @@ # 更新日志 +## 2.2.0 + +- 新增 `` 走马灯组件 [#115](https://github.com/XiaoMi/hiui/issues/115) +- 新增 `` clearable 属性控制是否可清空 [#590](https://github.com/XiaoMi/hiui/issues/590) +- 新增 `` visible 属性手动控制显示或隐藏 [#589](https://github.com/XiaoMi/hiui/issues/589) +- 新增 `` visible 属性手动控制显示或隐藏 [#588](https://github.com/XiaoMi/hiui/issues/588) +- 修复 `` clearable 不生效的问题 [#580](https://github.com/XiaoMi/hiui/issues/580) - 修复 `` 中的自定义上传结合 maxCount 不能上传的问题 [#582](https://github.com/XiaoMi/hiui/issues/582) - 修复 `` type 为 textarea 时的底部的样式问题 [#584](https://github.com/XiaoMi/hiui/issues/584) - - ## 2.1.0 - 新增 `` 面包屑组件 [#573](https://github.com/XiaoMi/hiui/issues/573) diff --git a/package.json b/package.json index 6c73fc7b7..387b8c343 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hi-ui/hiui", - "version": "2.1.2", + "version": "2.2.0-rc", "description": "HIUI for React", "scripts": { "test": "node_modules/.bin/standard && node_modules/.bin/stylelint --config .stylelintrc 'components/**/*.scss'", From e09bd658a88e16af91bae480531e99ac6719faa5 Mon Sep 17 00:00:00 2001 From: solarjoker Date: Thu, 29 Aug 2019 10:46:46 +0800 Subject: [PATCH 2/2] docs: update doc --- docs/zh-CN/components/carousel.mdx | 4 ++-- docs/zh-CN/components/popover.mdx | 2 +- docs/zh-CN/components/tooltip.mdx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/zh-CN/components/carousel.mdx b/docs/zh-CN/components/carousel.mdx index f5dc47f3d..baae2b0b7 100644 --- a/docs/zh-CN/components/carousel.mdx +++ b/docs/zh-CN/components/carousel.mdx @@ -17,6 +17,6 @@ import DemoImage from '../../demo/carousel/section-icon.jsx' | 参数 | 说明 | 类型 | 可选值 | 默认值 | | -------------- | ------------------------------------------------- | --------------------------- | ------------- | ------------------------------------------------------- | | duration | 自动切换间隔,默认不自动切换 | number | - | 0 | -| showDots | 是否显示分页指示器 | boolean | - | false | -| showArrows | 是否显示箭头指示器 | boolean | - | false | +| showDots | 是否显示分页指示器 | boolean | true \| false | false | +| showArrows | 是否显示箭头指示器 | boolean | true \| false | false | | defaultActive | 默认激活索引,从0开始 | number | - | 0 | diff --git a/docs/zh-CN/components/popover.mdx b/docs/zh-CN/components/popover.mdx index f69cd6e68..675eb8ec5 100755 --- a/docs/zh-CN/components/popover.mdx +++ b/docs/zh-CN/components/popover.mdx @@ -16,4 +16,4 @@ import DemoBase from '../../demo/popover/section-base.jsx' | content | 气泡卡片内容 | string \| ReactNode | - | - | | placement | 气泡卡片显示的位置 | string | 'top' \| 'right' \| 'bottom' \| 'left' | 'top' | | trigger | 气泡卡片触发方式 | string | 'click' \| 'focus' \| 'hover' | 'click' | -| visible | 控制气泡卡片的显示和隐藏(需要组件完全受控时使用) | boolean |true \| false | true | +| visible | 控制气泡卡片的显示和隐藏(需要组件完全受控时使用) | boolean |true \| false | - | diff --git a/docs/zh-CN/components/tooltip.mdx b/docs/zh-CN/components/tooltip.mdx index 45b9ef7e7..e82b9835d 100755 --- a/docs/zh-CN/components/tooltip.mdx +++ b/docs/zh-CN/components/tooltip.mdx @@ -20,6 +20,7 @@ import DemoApi from '../../demo/tooltip/section-api.jsx' | --------- | ------------------ | ------ | -------------------------------------- | ------ | | title | 提示文字内容 | string | 字符串 | -- | | placement | tooltip 显示的位置 | string | 'top' \| 'right' \| 'bottom' \| 'left' | 'top' | +| visible | 控制 tooltip 的显示和隐藏(需要组件完全受控时使用) | boolean | true \| false | - | ## Methods