File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 height : 15px ;
6060 fill : white;
6161}
62+
63+ .rce-mbox-title {
64+ margin : 0 ;
65+ font-size : 10px ;
66+ color : # 4f81a1 ;
67+ }
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ export class MessageBox extends Component {
1818 onClick = { this . props . onClick } >
1919 < div
2020 className = { positionCls } >
21+ {
22+ this . props . title &&
23+ < p className = "rce-mbox-title" > { this . props . title } </ p >
24+ }
25+
2126 {
2227 this . props . type === 'text' &&
2328 < div className = "rce-mbox-text" >
@@ -77,6 +82,7 @@ MessageBox.defaultProps = {
7782 position : 'left' ,
7883 type : 'text' ,
7984 text : '' ,
85+ title : null ,
8086 date : new Date ( ) ,
8187 data : { } ,
8288 onClick : null ,
Original file line number Diff line number Diff line change @@ -30,11 +30,10 @@ module.exports = {
3030 } ,
3131 {
3232 test : / \. c s s $ / ,
33- // loader: ExtractTextPlugin.extract({
34- // fallback: "style-loader",
35- // use: "css-loader"
36- // }),
37- loader : "style-loader!css-loader" ,
33+ loader : ExtractTextPlugin . extract ( {
34+ fallback : "style-loader" ,
35+ use : "css-loader"
36+ } ) ,
3837 } ,
3938 ]
4039 } ,
@@ -49,6 +48,6 @@ module.exports = {
4948 beautify : false ,
5049 comments : false ,
5150 } ) ,
52- // new ExtractTextPlugin("main.css"),
51+ new ExtractTextPlugin ( "main.css" ) ,
5352 ] ,
5453} ;
You can’t perform that action at this time.
0 commit comments