diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 0ad1f45155..f10423e8c6 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -14,6 +14,13 @@ timeline: true * Major version release is not included in this schedule for breaking change and new features. --- +## 0.5.2 + +`2018-02-22` + +- 💄 `Table`: The confirmation button for the filter in the repair table is fixed at the bottom of the selection box and the style is overwritten. +- 🌟 `Sidebar`: add `alwaysCanCancel`. + ## 0.5.1 `2018-02-19` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 916160fd7a..426bd581f6 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -14,6 +14,12 @@ timeline: true * 主版本号:含有破坏性更新和新特性,不在发布周期内。 --- +## 0.5.2 + +`2018-02-22` + +- 💄 `Table`: 修复Table中过滤的确认按钮固定在选择框底部样式被覆盖。 +- 🌟 `Sidebar`: 增加属性alwaysCanCancel。 ## 0.5.1 diff --git a/components/modal/Sidebar.tsx b/components/modal/Sidebar.tsx index f933e61521..e10ba94488 100644 --- a/components/modal/Sidebar.tsx +++ b/components/modal/Sidebar.tsx @@ -10,6 +10,7 @@ export interface SidebarState { export interface SidebarProps extends ModalFuncProps { close?: (...args: any[]) => void; + alwaysCanCancel?: boolean; } export default class Sidebar extends React.Component { @@ -20,6 +21,7 @@ export default class Sidebar extends React.Component { transitionName: 'slide-right', maskTransitionName: 'fade', confirmLoading: false, + alwaysCanCancel: false, visible: false, okType: 'primary', funcType: 'raised', @@ -49,7 +51,7 @@ export default class Sidebar extends React.Component { renderFooter = () => { const props = this.props; - const { prefixCls, onCancel, onOk, okType, funcType, confirmLoading } = props; + const { prefixCls, onCancel, onOk, okType, funcType, confirmLoading, alwaysCanCancel } = props; const okCancel = ('okCancel' in props) ? props.okCancel! : true; const runtimeLocale = getConfirmLocale(); const okText = props.okText || @@ -59,7 +61,7 @@ export default class Sidebar extends React.Component { const cancalBtn = okCancel ? (