Skip to content

Commit

Permalink
style(input): 修复空白节点导致的样式对齐问题 (jd-opensource#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Aug 3, 2023
1 parent c692ef9 commit 186ab94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`should render word limit correctly when modelValue is null 1`] = `
"<view class=\\"nut-input nut-input--border\\" maxlength=\\"3\\">
<view class=\\"nut-input-value\\">
<view class=\\"nut-input-inner\\">
<view class=\\"nut-input-left-box\\"></view>
<!--v-if-->
<view class=\\"nut-input-box\\"><input style=\\"text-align: left;\\" type=\\"text\\" class=\\"input-text\\" maxlength=\\"\\" placeholder=\\"\\" formattrigger=\\"onChange\\" enterkeyhint=\\"done\\">
<!--v-if-->
</view>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/input/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<view :class="classes" @click="onClick">
<view class="nut-input-value">
<view class="nut-input-inner">
<view class="nut-input-left-box">
<view v-if="$slots.left" class="nut-input-left-box">
<slot name="left"></slot>
</view>
<view class="nut-input-box">
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<view :class="classes" @click="onClick">
<view class="nut-input-value">
<view class="nut-input-inner">
<view class="nut-input-left-box">
<view v-if="$slots.left" class="nut-input-left-box">
<slot name="left"></slot>
</view>
<view class="nut-input-box">
Expand Down

0 comments on commit 186ab94

Please sign in to comment.