mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
Merge 1.x-stable
This commit is contained in:
commit
94fe25f1b3
@ -21,7 +21,7 @@ export default class Badge extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
let { count, prefixCls, overflowCount, className, style, children, dot, ...restProps } = this.props;
|
||||
let { count, prefixCls, overflowCount, className, style, children, dot } = this.props;
|
||||
|
||||
count = count > overflowCount ? `${overflowCount}+` : count;
|
||||
|
||||
@ -40,17 +40,21 @@ export default class Badge extends React.Component {
|
||||
});
|
||||
|
||||
return (
|
||||
<span className={badgeCls} title={count} {...restProps} style={null}>
|
||||
<span className={badgeCls} title={count} style={null}>
|
||||
{children}
|
||||
<Animate component=""
|
||||
<Animate
|
||||
component=""
|
||||
showProp="data-show"
|
||||
transitionName={`${prefixCls}-zoom`}
|
||||
transitionAppear
|
||||
>
|
||||
{
|
||||
hidden ? null :
|
||||
<ScrollNumber data-show={!hidden} className={scrollNumberCls}
|
||||
count={count} style={style}
|
||||
<ScrollNumber
|
||||
data-show={!hidden}
|
||||
className={scrollNumberCls}
|
||||
count={count}
|
||||
style={style}
|
||||
/>
|
||||
}
|
||||
</Animate>
|
||||
|
@ -6,7 +6,6 @@ import Animate from 'rc-animate';
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
import assign from 'object-assign';
|
||||
import { TransferItem } from './index';
|
||||
import omit from 'object.omit';
|
||||
|
||||
function noop() {
|
||||
}
|
||||
@ -133,17 +132,9 @@ export default class TransferList extends React.Component<TransferListProps, any
|
||||
|
||||
render() {
|
||||
const { prefixCls, dataSource, titleText, filter, checkedKeys,
|
||||
checkStatus, body, footer, showSearch, render, ...otherProps } = this.props;
|
||||
checkStatus, body, footer, showSearch, render, style } = this.props;
|
||||
|
||||
let { searchPlaceholder, notFoundContent, ...restProps } = otherProps;
|
||||
|
||||
// fix https://fb.me/react-unknown-prop
|
||||
const lastProps = omit(restProps, [
|
||||
'handleClear',
|
||||
'handleFilter',
|
||||
'handleSelect',
|
||||
'handleSelectAll',
|
||||
]);
|
||||
let { searchPlaceholder, notFoundContent } = this.props;
|
||||
|
||||
// Custom Layout
|
||||
const footerDom = footer(assign({}, this.props));
|
||||
@ -192,7 +183,7 @@ export default class TransferList extends React.Component<TransferListProps, any
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={listCls} {...lastProps}>
|
||||
<div className={listCls} style={style}>
|
||||
<div className={`${prefixCls}-header`}>
|
||||
{this.renderCheckbox({
|
||||
prefixCls: 'ant-transfer',
|
||||
|
Loading…
Reference in New Issue
Block a user