Skip to content

Commit 6fbbb0d

Browse files
committed
fix(Input): 修复 Input 组件在 Dialog 中使用时底部线条会超出 Dialog 的问题
close #1422
1 parent b6f7235 commit 6fbbb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class='form-item {{disabled? "disabled": ""}} l-class form-item-{{labelLayout}}'
44
style="width:{{width===null?'auto':width+'rpx'}}">
55
<view class='mask' wx:if="{{disabled}}"></view>
6-
<view class='row l-row-class' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width}}rpx;"></view>
6+
<view class='row l-row-class' hidden="{{ showRow ? '' : 'hidden' }}" style="width:{{width===null?'100%':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" : "" }}'>
88
<text><text class='text-require' wx:if="{{required}}">* </text>{{label}}<text wx:if="{{colon}}">:</text>
99
</text>

0 commit comments

Comments
 (0)