Commit 463228809619237f0c3a9f7893aeadc10a9878bc
1 parent
132de08d
feat: add customStyle for component to fit size; !#zh: 增加 customStyle 属性,以支持元素自定义大小
Showing
3 changed files
with
12 additions
and
0 deletions
front-end/h5/src/components/plugins/lbp-form-checkbox-group.js
| @@ -22,6 +22,10 @@ function getDefaultItems () { | @@ -22,6 +22,10 @@ function getDefaultItems () { | ||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | export default { | 24 | export default { |
| 25 | + customStyle: { | ||
| 26 | + width: 120, | ||
| 27 | + height: 120 | ||
| 28 | + }, | ||
| 25 | name: 'lbp-form-checkbox-group', | 29 | name: 'lbp-form-checkbox-group', |
| 26 | components: { | 30 | components: { |
| 27 | LbpFormRadio | 31 | LbpFormRadio |
front-end/h5/src/components/plugins/lbp-form-radio-group.js
| @@ -33,6 +33,10 @@ function getDefaultItems () { | @@ -33,6 +33,10 @@ function getDefaultItems () { | ||
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | export default { | 35 | export default { |
| 36 | + customStyle: { | ||
| 37 | + width: 120, | ||
| 38 | + height: 120 | ||
| 39 | + }, | ||
| 36 | name: 'lbp-form-radio-group', | 40 | name: 'lbp-form-radio-group', |
| 37 | props: { | 41 | props: { |
| 38 | aliasName: PropTypes.string({ | 42 | aliasName: PropTypes.string({ |
front-end/h5/src/components/plugins/lbp-notice-bar.js
| @@ -14,6 +14,10 @@ import { NoticeBar } from 'vant' | @@ -14,6 +14,10 @@ import { NoticeBar } from 'vant' | ||
| 14 | import 'vant/lib/notice-bar/style' | 14 | import 'vant/lib/notice-bar/style' |
| 15 | 15 | ||
| 16 | export default { | 16 | export default { |
| 17 | + customStyle: { | ||
| 18 | + width: 300, | ||
| 19 | + height: 30 | ||
| 20 | + }, | ||
| 17 | name: 'lbp-notice-bar', | 21 | name: 'lbp-notice-bar', |
| 18 | props: { | 22 | props: { |
| 19 | text: PropTypes.string({ | 23 | text: PropTypes.string({ |