diff --git a/.npmignore b/.npmignore index 7aa526911..31d9b81b1 100644 --- a/.npmignore +++ b/.npmignore @@ -31,3 +31,4 @@ Desktop.ini Thumbs.db .Spotlight-V100 .Trashes +postcss.config.js \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e71106fd3..d6c089e3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,26 @@ # 更新日志 +## 3.4.0 + +- 优化组件弹出层自动计算合适的左右位置 [#1494](https://github.com/XiaoMi/hiui/issues/1494) +- 新增 `Select SelectTree Cascader DatePicker Input` 等组件无边框形态 [#1553](https://github.com/XiaoMi/hiui/issues/1553) +- 新增 `Preview` 预览组件 [#1546](https://github.com/XiaoMi/hiui/issues/1546) +- 新增 `Select` 组件 onSearch、onOverlayScroll 方法 [#1522](https://github.com/XiaoMi/hiui/issues/1522) +- 修复 `SelectTree` 搜索输入框在输入值时失焦问题 [#1491](https://github.com/XiaoMi/hiui/issues/1491) +- 修复 `SelectTree` 单选形态下受控问题 [#1519](https://github.com/XiaoMi/hiui/issues/1519) +- 修复 `Select` 组件分组形态 filterOption 函数无法使用问题 [#1497](https://github.com/XiaoMi/hiui/issues/1497) +- 修复 `Select` 组件分组形态全选以及受控问题 [#1501](https://github.com/XiaoMi/hiui/issues/1501) +- 修复 `Select` 异步数据请求返回结果顺序异常 [#1543](https://github.com/XiaoMi/hiui/issues/1543) +- 修复 `Tabs` 组件垂直方向样式显示异常问题 [#1493](https://github.com/XiaoMi/hiui/issues/1493) +- 修复 `Form` DatePicker、SelectTree 在 Form.Item 中点击清空Icon 无效问题 [#1524](https://github.com/XiaoMi/hiui/issues/1524) +- 修复 `DatePicker` minDate、maxDate、disabledDate 在非 date 类型下不生效问题 [#1547](https://github.com/XiaoMi/hiui/issues/1547) +- 优化 `Checkbox` 样式相关内容 [#1482](https://github.com/XiaoMi/hiui/issues/1482) +- 优化 `SelectTree` 异步受控数据返显问题 [#1510](https://github.com/XiaoMi/hiui/issues/1510) +- 优化 `Select SelectTree` 计数根据窗口自动调整 [#1527](https://github.com/XiaoMi/hiui/issues/1527) +- 优化 `Drawer` 组件支持className属性 [#1536](https://github.com/XiaoMi/hiui/issues/1536) + ## 3.3.0 + - 新增 `Card` 模式模式下 loading 加载中状态 [#1454](https://github.com/XiaoMi/hiui/issues/1454) - 新增 `Table` loading 加载中状态 [#1466](https://github.com/XiaoMi/hiui/issues/1466) - 新增 `Table` 列冻结结合树形使用 [#1424](https://github.com/XiaoMi/hiui/issues/1424) diff --git a/components/_util/EventEmitter.js b/components/_util/EventEmitter.js index a271531ea..e9eb39969 100644 --- a/components/_util/EventEmitter.js +++ b/components/_util/EventEmitter.js @@ -10,7 +10,6 @@ class EventEmitter { // 触发事件 emit(type, ...arg) { - console.log(this.event) this.event[type] && this.event[type](...arg) } diff --git a/components/button/ButtonGroup.js b/components/button/ButtonGroup.js index 40ff4ea3a..26f5fdeb4 100644 --- a/components/button/ButtonGroup.js +++ b/components/button/ButtonGroup.js @@ -6,14 +6,14 @@ class ButtonGroup extends Component { prefixCls: 'hi-btn-group' } - render () { - const { - prefixCls, - style, - className - } = this.props + render() { + const { prefixCls, style, className } = this.props const classes = classNames(`${prefixCls}`, className) - return
{emptyContent || localeDatasProps('emptyContent')}
' ' +{emptyContent || localeDatasProps('emptyContent')}
> )}