Commit 5cc2fdab by zhanghaozhe

CallApp组件添加自定义文字

parent 41da80ff
...@@ -26,13 +26,17 @@ class OpenApp extends Component { ...@@ -26,13 +26,17 @@ class OpenApp extends Component {
callApp = new CallApp(options) callApp = new CallApp(options)
static defaultProps = {
text: '在APP打开'
}
handleClick = () => { handleClick = () => {
this.callApp.open({}) this.callApp.open({})
} }
render() { render() {
return ( return (
<div className={this.props.className} onClick={this.handleClick}>APP打开</div> <div className={this.props.className} onClick={this.handleClick}>{this.props.text}</div>
); );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment