File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ Component({
48
48
} ,
49
49
// 表单项的宽度,单位rpx
50
50
width : {
51
- type : Number ,
52
- value : 750
51
+ type : String ,
52
+ value : 'auto'
53
53
} ,
54
54
// 表单项标题部分的宽度,单位rpx
55
55
labelWidth : {
Original file line number Diff line number Diff line change 4
4
position : relative ;
5
5
font-size : 28 rpx;
6
6
color : #333 ;
7
- width : 750 rpx;
8
7
height : 88 rpx;
9
- // background: #f6f6f6;
10
8
display : flex ;
11
9
flex-direction : row ;
12
10
align-items : center ;
Original file line number Diff line number Diff line change 1
1
<!-- input/input.wxml -->
2
2
<label
3
3
class='form-item {{disabled? "disabled": ""}} l-class form-item-{{labelLayout}}'
4
- style="widthform-item :{{width}}rpx">
4
+ style="width :{{width}}rpx">
5
5
<view class='mask' wx:if="{{disabled}}"></view>
6
6
<view class='row' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width}}rpx;"></view>
7
7
<view wx:if="{{label && !labelCustom}}" hidden="{{hideLabel}}" class='form-label l-label-class form-label-{{labelLayout}}' style='{{labelLayout !== "top" ? "width:"+ labelWidth+ "rpx;" : "" }} height:{{labelLayout=== "top" ? labelWidth + "rpx" : "" }}'>
You can’t perform that action at this time.
0 commit comments