Commit d93ef8615a3050c8d547fbbf96268a775d6c8e5e

Authored by ly525
1 parent c94a4f0e

replace extra.style with extra.defaultStyle

front-end/h5/src/components/core/models/element.js
@@ -45,7 +45,7 @@ class Element { @@ -45,7 +45,7 @@ class Element {
45 ...defaultStyle, 45 ...defaultStyle,
46 zindex: ele.zindex, 46 zindex: ele.zindex,
47 ...ele.defaultStyle, 47 ...ele.defaultStyle,
48 - ...(ele.extra && ele.extra.style) 48 + ...(ele.extra && ele.extra.defaultStyle)
49 } 49 }
50 } 50 }
51 51
front-end/h5/src/components/plugins/lbp-form-checkbox-group.js
@@ -23,7 +23,7 @@ function getDefaultItems () { @@ -23,7 +23,7 @@ function getDefaultItems () {
23 23
24 export default { 24 export default {
25 extra: { 25 extra: {
26 - style: { 26 + defaultStyle: {
27 width: 120, 27 width: 120,
28 height: 120 28 height: 120
29 } 29 }
front-end/h5/src/components/plugins/lbp-form-radio-group.js
@@ -34,7 +34,7 @@ function getDefaultItems () { @@ -34,7 +34,7 @@ function getDefaultItems () {
34 34
35 export default { 35 export default {
36 extra: { 36 extra: {
37 - style: { 37 + defaultStyle: {
38 width: 120, 38 width: 120,
39 height: 120 39 height: 120
40 } 40 }
front-end/h5/src/components/plugins/lbp-notice-bar.js
@@ -15,7 +15,7 @@ import 'vant/lib/notice-bar/style' @@ -15,7 +15,7 @@ import 'vant/lib/notice-bar/style'
15 15
16 export default { 16 export default {
17 extra: { 17 extra: {
18 - style: { 18 + defaultStyle: {
19 width: 300, 19 width: 300,
20 height: 30 20 height: 30
21 } 21 }