Commit 0592109e2d324444ef6268f726c6fa00e82ff495
1 parent
b39f6382
update button style
Showing
2 changed files
with
4 additions
and
7 deletions
front-end/h5/src/components/plugins/lbp-button.js
| ... | ... | @@ -35,9 +35,9 @@ export default { |
| 35 | 35 | props: { |
| 36 | 36 | text: PropTypes.string(), |
| 37 | 37 | vertical: PropTypes.boolean(), |
| 38 | - backgroundColor: PropTypes.color({ label: '背景色', defaultValue: 'rgba(255, 255, 255, 0.2)' }), | |
| 38 | + backgroundColor: PropTypes.color({ label: '背景色', defaultValue: '#ffffff' }), | |
| 39 | 39 | color: PropTypes.color(), |
| 40 | - fontSize: PropTypes.number({ label: '字号(px)' }), | |
| 40 | + fontSize: PropTypes.number({ label: '字号(px)', defaultValue: 14 }), | |
| 41 | 41 | lineHeight: PropTypes.number({ label: '行高(px)', defaultValue: 1 }), |
| 42 | 42 | borderWidth: PropTypes.number({ label: '边框宽度(px)', defaultValue: 1 }), |
| 43 | 43 | borderRadius: PropTypes.number({ label: '圆角(px)', defaultValue: 4 }), | ... | ... |
front-end/h5/src/components/plugins/lbp-form-button.js
| ... | ... | @@ -40,16 +40,13 @@ export default { |
| 40 | 40 | vertical: PropTypes.boolean(), |
| 41 | 41 | backgroundColor: PropTypes.color({ label: '背景色', defaultValue: 'rgba(255, 255, 255, 0.2)' }), |
| 42 | 42 | color: PropTypes.color(), |
| 43 | - fontSize: PropTypes.number({ label: '字号(px)' }), | |
| 43 | + fontSize: PropTypes.number({ label: '字号(px)', defaultValue: 14 }), | |
| 44 | 44 | lineHeight: PropTypes.number({ label: '行高(px)', defaultValue: 1 }), |
| 45 | 45 | borderWidth: PropTypes.number({ label: '边框宽度(px)', defaultValue: 1 }), |
| 46 | 46 | borderRadius: PropTypes.number({ label: '圆角(px)', defaultValue: 4 }), |
| 47 | 47 | borderColor: PropTypes.color({ label: '边框颜色', defaultValue: '#ced4da' }), |
| 48 | 48 | textAlign: PropTypes.textAlign(), |
| 49 | - disabled: { | |
| 50 | - type: Boolean, | |
| 51 | - default: false | |
| 52 | - } | |
| 49 | + disabled: PropTypes.boolean() | |
| 53 | 50 | }, |
| 54 | 51 | methods: { |
| 55 | 52 | handleClick () { | ... | ... |