Skip to content

Commit

Permalink
fix: remove the append background
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Mar 11, 2019
1 parent e81c66f commit e7775d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ $primary-color: #1284e7;
.mx-clear-wrapper {
display: block;
}
.mx-clear-wrapper + .mx-input-append {
display: none;
}
}
}

Expand Down Expand Up @@ -72,8 +75,6 @@ $primary-color: #1284e7;
width: 30px;
height: 100%;
padding: 6px;
background-color: #fff;
background-clip: content-box;
}

.mx-input-icon {
Expand Down
16 changes: 8 additions & 8 deletions src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
@blur="handleBlur"
@input="handleInput"
@change="handleChange">
<span
v-if="showClearIcon"
class="mx-input-append mx-clear-wrapper"
@click.stop="clearDate">
<slot name="mx-clear-icon">
<i class="mx-input-icon mx-clear-icon"></i>
</slot>
</span>
<span class="mx-input-append">
<slot name="calendar-icon">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 200 200" class="mx-calendar-icon">
Expand All @@ -38,14 +46,6 @@
</svg>
</slot>
</span>
<span
v-if="showClearIcon"
class="mx-input-append mx-clear-wrapper"
@click.stop="clearDate">
<slot name="mx-clear-icon">
<i class="mx-input-icon mx-clear-icon"></i>
</slot>
</span>
</div>
<div class="mx-datepicker-popup"
:style="innerPopupStyle"
Expand Down

0 comments on commit e7775d6

Please sign in to comment.