Skip to content

Commit

Permalink
fix: (input) 修复空白节点导致的样式对齐问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1206 committed Aug 4, 2023
1 parent 302cd53 commit 11b1d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/src/pages/demo/dentry/input/index.vue
Expand Up @@ -103,11 +103,11 @@ export default {
<h2 class="title">
配合表单使用
</h2>
<!-- <nut-form :model-value="state">
<nut-form :model-value="state">
<nut-form-item label-align="center" label="文本">
<nut-input v-model="state.val2" placeholder="请输入文本" :border="false" />
</nut-form-item>
</nut-form> -->
</nut-form>

<h2 class="title">
格式化输入内容
Expand Down
2 changes: 1 addition & 1 deletion packages/nutui/components/input/input.vue
Expand Up @@ -191,7 +191,7 @@ export default defineComponent({
<view :class="[classes, customClass]" @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" />
</view>
<view class="nut-input-box">
Expand Down

0 comments on commit 11b1d87

Please sign in to comment.