Skip to content

Commit 1a7ee77

Browse files
VanishMaxtangbc
authored andcommitted
Add styling prop for child element
1 parent 1d7ddc9 commit 1a7ee77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
type: String,
6060
default: ''
6161
},
62+
wstyle: {
63+
type: Object,
64+
default: () => ({})
65+
},
6266
pagemode: {
6367
type: Boolean,
6468
default: false
@@ -574,6 +578,7 @@
574578
display: 'block',
575579
'padding-top': paddingTop + 'px',
576580
'padding-bottom': paddingBottom + 'px',
581+
...this.wstyle
577582
},
578583
class: this.wclass,
579584
attrs: {

0 commit comments

Comments
 (0)