Skip to content

Commit 4632288

Browse files
committed
feat: add customStyle for component to fit size; !#zh: 增加 customStyle 属性,以支持元素自定义大小
1 parent 132de08 commit 4632288

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

front-end/h5/src/components/plugins/lbp-form-checkbox-group.js

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ function getDefaultItems () {
2222
}
2323

2424
export default {
25+
customStyle: {
26+
width: 120,
27+
height: 120
28+
},
2529
name: 'lbp-form-checkbox-group',
2630
components: {
2731
LbpFormRadio

front-end/h5/src/components/plugins/lbp-form-radio-group.js

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ function getDefaultItems () {
3333
}
3434

3535
export default {
36+
customStyle: {
37+
width: 120,
38+
height: 120
39+
},
3640
name: 'lbp-form-radio-group',
3741
props: {
3842
aliasName: PropTypes.string({

front-end/h5/src/components/plugins/lbp-notice-bar.js

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { NoticeBar } from 'vant'
1414
import 'vant/lib/notice-bar/style'
1515

1616
export default {
17+
customStyle: {
18+
width: 300,
19+
height: 30
20+
},
1721
name: 'lbp-notice-bar',
1822
props: {
1923
text: PropTypes.string({

0 commit comments

Comments
 (0)