File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ Component({
4848 } ,
4949 // 表单项的宽度,单位rpx
5050 width : {
51- type : Number ,
52- value : 750
51+ type : String ,
52+ value : 'auto'
5353 } ,
5454 // 表单项标题部分的宽度,单位rpx
5555 labelWidth : {
Original file line number Diff line number Diff line change 44 position : relative ;
55 font-size : 28 rpx;
66 color : #333 ;
7- width : 750 rpx;
87 height : 88 rpx;
9- // background: #f6f6f6;
108 display : flex ;
119 flex-direction : row ;
1210 align-items : center ;
Original file line number Diff line number Diff line change 11<!-- input/input.wxml -->
22<label
33 class='form-item {{disabled? "disabled": ""}} l-class form-item-{{labelLayout}}'
4- style="widthform-item :{{width}}rpx">
4+ style="width :{{width}}rpx">
55 <view class='mask' wx:if="{{disabled}}"></view>
66 <view class='row' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width}}rpx;"></view>
77 <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