jimu-mobile
Version:
积木组件库助力移动端开发
24 lines (20 loc) • 451 B
JavaScript
import React, { Component } from 'react';
class Drawer extends Component {
static defaultProps = {
normalMsg: 'asdasdM',
}
render() {
const { normalMsg, ...others } = this.props;
return (
<div className="drawer" {...others}>
{this.props.children && <div>{this.props.children}</div>}
<div>
<p>
{normalMsg}
</p>
</div>
</div>
);
}
}
module.exports = Drawer;