Skip to content

Commit

Permalink
Merge pull request #586 from XiaoMi/develop
Browse files Browse the repository at this point in the history
release: 2.1.2
  • Loading branch information
solarjoker authored Aug 23, 2019
2 parents 07b0aa2 + 9d3bcf7 commit 9ca4bd3
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 更新日志

## 2.1.2

- 修复 `<Input />` clearable 不生效的问题 [#580](https://github.com/XiaoMi/hiui/issues/580)
- 修复 `<Upload />` 中的自定义上传结合 maxCount 不能上传的问题 [#582](https://github.com/XiaoMi/hiui/issues/582)
- 修复 `<Input />` type 为 textarea 时的底部的样式问题 [#584](https://github.com/XiaoMi/hiui/issues/584)


## 2.1.0

- 新增 `<Breadcrumb />` 面包屑组件 [#573](https://github.com/XiaoMi/hiui/issues/573)
Expand Down
4 changes: 2 additions & 2 deletions components/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class Input extends Component {
/>
{// 清除
noClear.indexOf(type) === -1 &&
typeof prefix === 'undefined' &&
typeof suffix === 'undefined' &&
prefix === '' &&
suffix === '' &&
(value !== '' && clearable) && (
<span
className={`hi-input__fix-box ${hover && !disabled ? '' : 'invisible'}`}
Expand Down
2 changes: 1 addition & 1 deletion components/input/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ textarea.#{$input} {
color: $normal-color;
font-size: $font-size;
min-height: 30px;
height: auto;
line-height: $line-height;
resize: vertical;
overflow: auto;
height: 100%;
padding: 4px 12px;
border: 1px solid $border-color-normal;
box-sizing: border-box;
Expand Down
3 changes: 2 additions & 1 deletion components/upload/Upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Upload extends Component {
componentWillReceiveProps (nextProps) {
if (!shallowEqual(nextProps.fileList, this.props.fileList)) {
this.setState({
fileList: this.prepareDefaultFileList(nextProps.fileList)
fileList: this.prepareDefaultFileList(nextProps.fileList),
fileCountLimted: nextProps.fileList.length >= nextProps.maxCount
})
}
}
Expand Down
6 changes: 6 additions & 0 deletions docs/demo/form/section-align.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class Demo extends React.Component {
<FormItem label='手机号码'>
<Input placeholder='phone' />
</FormItem>
<FormItem label='备注'>
<Input
type="textarea"
placeholder="多行文本"
/>
</FormItem>
<FormItem>
<Button type='primary'>提交</Button>
</FormItem>
Expand Down
34 changes: 29 additions & 5 deletions docs/zh-CN/components/changelog.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,42 @@
# 更新日志

## 2.1.2

- 修复 `<Input />` clearable 不生效的问题 [#580](https://github.com/XiaoMi/hiui/issues/580)
- 修复 `<Upload />` 中的自定义上传结合 maxCount 不能上传的问题 [#582](https://github.com/XiaoMi/hiui/issues/582)
- 修复 `<Input />` type 为 textarea 时的底部的样式问题 [#584](https://github.com/XiaoMi/hiui/issues/584)



## 2.1.0

- 新增 `<Breadcrumb />` 面包屑组件 [#573](https://github.com/XiaoMi/hiui/issues/573)
- 新增 `<Tree />` 线型展示模式 [#541](https://github.com/XiaoMi/hiui/issues/541)
- 修复 `<Upload />` 中的自定义上传同一个文件失败的问题 [#567](https://github.com/XiaoMi/hiui/issues/567)
- 修复 `<Switch />` 重复渲染问题 [#565](https://github.com/XiaoMi/hiui/issues/565)
- 修复 `<Collapse />` activeId 无效的问题 [#560](https://github.com/XiaoMi/hiui/issues/560)

## 2.0.5

- 修复 `<Tooltip />` hover 的闪烁问题 [#522](https://github.com/XiaoMi/hiui/issues/522)
- 修复 `<Upload />` maxCount 结合 onChange return false 的计算错误问题 [#549](https://github.com/XiaoMi/hiui/issues/549)
- 修复 `<Dropdown />` 部分区域点击无效的问题 [#555](https://github.com/XiaoMi/hiui/issues/555)
- 修复 `<Menu />` 高亮项计算错误的问题 [#556](https://github.com/XiaoMi/hiui/issues/556)

## 2.0.4

- 修复:`DatePicker.format` 方法丢失的问题 [#540](https://github.com/XiaoMi/hiui/issues/540)
- 修复:`<Radio />` 垂直布局的问题 [#545](https://github.com/XiaoMi/hiui/issues/545)
- 修复:`<Card />` 增加默认背景色 [#546](https://github.com/XiaoMi/hiui/issues/546)
- 优化:过滤`<Input />``<Counter />` 无关属性 [#547](https://github.com/XiaoMi/hiui/issues/547)
- 修复:`DatePicker.format` 方法丢失的问题 [#540](https://github.com/XiaoMi/hiui/issues/540)
- 修复:`<Radio />` 垂直布局的问题 [#545](https://github.com/XiaoMi/hiui/issues/545)
- 修复:`<Card />` 增加默认背景色 [#546](https://github.com/XiaoMi/hiui/issues/546)
- 优化:过滤`<Input />``<Counter />` 无关属性 [#547](https://github.com/XiaoMi/hiui/issues/547)

## 2.0.2

- 修复:`<Menu />` 组件未传入图标时收起的显示问题 [#529](https://github.com/XiaoMi/hiui/issues/529)

## 2.0.1

- 修复:`Table` 组件服务端表格分页和错误请求处理的问题 [#519](https://github.com/XiaoMi/hiui/issues/519)
- 修复:`<Table />` 组件服务端表格分页和错误请求处理的问题 [#519](https://github.com/XiaoMi/hiui/issues/519)
- 修复:`<Tag />``<Message />` 组件的导出问题 [#516](https://github.com/XiaoMi/hiui/issues/516)
- 修复:`<Upload/>` 组件 onchange 返回 boolean 无效的问题 [#514](https://github.com/XiaoMi/hiui/issues/514)

Expand Down Expand Up @@ -331,6 +354,7 @@
- 第一个公开版本,发布基本组件;
- 发布 HIUI 首页和文档。


---

## Roadmap
Expand Down
1 change: 1 addition & 0 deletions docs/zh-CN/components/input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { Badge } from '@libs'
| prepend | 输入框前置内容 | string \| ReactNode | - | - |
| append | 输入框后置内容 | string \| ReactNode | - | - |
| disabled | 是否禁用 | boolean | true \| false | false |
| clearable | 是否可清空 | boolean | true \| false | false |
| placeholder | 输入框占位符 | string \| ReactNode | - | - |
| onFocus | 获得焦点时的回调 | (e: Event) => void | - | - |
| onBlur | 失去焦点时的回调 | (e: Event) => void | - | - |
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/components/theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ render(<Layout />, document.getElementById('app'))

```jsx
import React, { Component } from 'react'
import { Theme, Login } from '@hi-ui/classic-theme'
import { Theme } from '@hi-ui/classic-theme'

// 路由组件
const Mi = () => <div>小米手机</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hi-ui/hiui",
"version": "2.1.1",
"version": "2.1.2",
"description": "HIUI for React",
"scripts": {
"test": "node_modules/.bin/standard && node_modules/.bin/stylelint --config .stylelintrc 'components/**/*.scss'",
Expand Down

0 comments on commit 9ca4bd3

Please sign in to comment.