Skip to content
This repository has been archived by the owner on Mar 1, 2020. It is now read-only.

Commit

Permalink
tip style prop
Browse files Browse the repository at this point in the history
Change-Id: Id1f7e0221ffa7404b279818a36ba06a8288a5c8e
  • Loading branch information
cuizhirong committed Apr 18, 2019
1 parent fc0c4af commit d9bba9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/components/tip/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ class Tip extends React.Component {
let contentStyle = (props.width && iconType) ?
{width: parseInt(props.width, 10) - 70} : null;

if (props.style) {
style = Object.assign({}, style, props.style);
}

return (
<div className={className} style={style}>
{
Expand Down

0 comments on commit d9bba9f

Please sign in to comment.