Skip to content

Commit

Permalink
Merge pull request alibaba-fusion#83 from alibaba-fusion/fix/jinli
Browse files Browse the repository at this point in the history
Fix Timeline & Input Bugs
  • Loading branch information
youluna authored Dec 10, 2018
2 parents 9bb74d8 + 23754a3 commit 537843e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/input/input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ export default class Input extends Base {
</span>);
}

if (state === 'loading') {
clearWrap = null;
}

return clearWrap || lenWrap || stateWrap || extra ? <span className={`${prefix}input-control`}>
{clearWrap}{lenWrap}{stateWrap}{extra}
</span> : null;
Expand Down
6 changes: 3 additions & 3 deletions src/timeline/view/timeline-item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class TimelineItem extends Component {
this['timeline-item'].style['min-height'] = '48px'; // timeleft 节点最小高度
}
render() {
const { prefix, className, state, icon, dot, time, title, timeLeft, content, index, total, folderIndex, foldShow, locale, animation } = this.props;
const { prefix, className, state, icon, dot, time, title, timeLeft, content, index, total, folderIndex, foldShow, locale, animation, ...others } = this.props;
const finalItemNode = dot ? dot : icon ? <span className={`${prefix}timeline-item-icon`}><Icon type={icon} size="xs" /></span> : <span className={`${prefix}timeline-item-dot`}></span>;
const itemCls = classNames({
[`${prefix}timeline-item`]: true,
Expand All @@ -80,7 +80,7 @@ class TimelineItem extends Component {
[`${prefix}timeline-item-folded`]: folderIndex,
[`${prefix}timeline-item-unfolded`]: foldShow,
[`${prefix}timeline-item-has-left-content`]: timeLeft,
className: className
[className]: className
});
const folderCls = classNames({
[`${prefix}timeline-item-folder`]: true,
Expand All @@ -102,7 +102,7 @@ class TimelineItem extends Component {
type: 'primary',
onClick: this.toggleFold.bind(this, folderIndex, total),
};
const timelineNode = folderIndex && foldShow || !folderIndex ? (<div className={itemCls} ref={e => {
const timelineNode = folderIndex && foldShow || !folderIndex ? (<div {...others} className={itemCls} ref={e => {
this['timeline-item'] = e;
}}>
<div className={`${prefix}timeline-item-left-content`}>
Expand Down

0 comments on commit 537843e

Please sign in to comment.