Commit 463228809619237f0c3a9f7893aeadc10a9878bc

Authored by ly525
1 parent 132de08d

feat: add customStyle for component to fit size; !#zh: 增加 customStyle 属性,以支持元素自定义大小

front-end/h5/src/components/plugins/lbp-form-checkbox-group.js
... ... @@ -22,6 +22,10 @@ function getDefaultItems () {
22 22 }
23 23  
24 24 export default {
  25 + customStyle: {
  26 + width: 120,
  27 + height: 120
  28 + },
25 29 name: 'lbp-form-checkbox-group',
26 30 components: {
27 31 LbpFormRadio
... ...
front-end/h5/src/components/plugins/lbp-form-radio-group.js
... ... @@ -33,6 +33,10 @@ function getDefaultItems () {
33 33 }
34 34  
35 35 export default {
  36 + customStyle: {
  37 + width: 120,
  38 + height: 120
  39 + },
36 40 name: 'lbp-form-radio-group',
37 41 props: {
38 42 aliasName: PropTypes.string({
... ...
front-end/h5/src/components/plugins/lbp-notice-bar.js
... ... @@ -14,6 +14,10 @@ import { NoticeBar } from 'vant'
14 14 import 'vant/lib/notice-bar/style'
15 15  
16 16 export default {
  17 + customStyle: {
  18 + width: 300,
  19 + height: 30
  20 + },
17 21 name: 'lbp-notice-bar',
18 22 props: {
19 23 text: PropTypes.string({
... ...