Skip to content

Commit

Permalink
fix: fix style don't into root element
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Nov 26, 2020
1 parent 7b7b570 commit 8148ef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/input/Input.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div
:style="$attrs.style"
:class="[
classProp,
type === 'textarea' ? 'el-textarea' : 'el-input',
Expand Down Expand Up @@ -27,7 +28,7 @@
:tabindex="tabindex"
v-if="type !== 'textarea'"
class="el-input__inner"
v-bind="$attrs"
v-bind="{ ...$attrs, style: null }"
:type="showPassword ? (passwordVisible ? 'text' : 'password') : type"
:disabled="inputDisabled"
:readonly="readonly"
Expand Down

0 comments on commit 8148ef5

Please sign in to comment.