Commit f40c302 1 parent dcf9c06 commit f40c302 Copy full SHA for f40c302
File tree 1 file changed +11
-9
lines changed
front-end/h5/src/components/core/models
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,18 @@ class Element {
38
38
}
39
39
40
40
getStyle ( ) {
41
- return {
42
- top : `${ this . top } px` ,
43
- left : `${ this . left } px` ,
44
- width : `${ this . width } px` ,
45
- height : `${ this . height } px` ,
46
- fontSize : `${ this . fontSize } px` ,
47
- color : this . color ,
48
- backgroundColor : this . backgroundColor ,
49
- textAlign : this . textAlign
41
+ const pluginProps = this . pluginProps
42
+ let style = {
43
+ top : `${ pluginProps . top || this . top } px` ,
44
+ left : `${ pluginProps . left || this . left } px` ,
45
+ width : `${ pluginProps . width || this . width } px` ,
46
+ height : `${ pluginProps . height || this . height } px` ,
47
+ fontSize : `${ pluginProps . fontSize || this . fontSize } px` ,
48
+ color : pluginProps . color || this . color ,
49
+ backgroundColor : pluginProps . backgroundColor || this . backgroundColor ,
50
+ textAlign : pluginProps . textAlign || this . textAlign
50
51
}
52
+ return style
51
53
}
52
54
53
55
getClass ( ) {
You can’t perform that action at this time.
0 commit comments