Skip to content

Commit

Permalink
feat(Popup): 支持 className 属性
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Apr 2, 2019
1 parent fce0d33 commit 0069a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ export default class MPopup extends component({
}

render() {
const { visible, duration, position, customTransition } = this.props
const { visible, duration, position, customTransition, className } = this.props
const { zIndex, display } = this.state
return (
<View
className={`m-popup m-popup_${position}`}
className={`m-popup m-popup_${position} ${className}`}
style={{
zIndex,
...(display ? {} : { display: 'none' }),
Expand Down

0 comments on commit 0069a3f

Please sign in to comment.