This commit is contained in:
mo.duan 2019-12-02 14:28:54 +08:00
parent 9a9a95edc5
commit 389579b3fe
3 changed files with 41 additions and 37 deletions

View file

@ -139,8 +139,9 @@
<!--<br><br>--> <!--<br><br>-->
<!--<Input v-model="value" search enter-button="Search" style="width: 300px" @on-search="hs" />--> <!--<Input v-model="value" search enter-button="Search" style="width: 300px" @on-search="hs" />-->
<!--</div>--> <!--</div>-->
<!--#6338-->
<div style="width: 200px"> <div style="width: 200px">
<Input v-model="value7" type="textarea" :autosize="true" placeholder="Enter something..."></Input> <Input search enter-button="搜索" clearable placeholder="Enter something..." />
</div> </div>
</template> </template>
<script> <script>
@ -154,8 +155,8 @@
select1: 'http', select1: 'http',
select2: 'com', select2: 'com',
select3: 'day', select3: 'day',
value7: `` value7: ''
} };
}, },
methods: { methods: {
hs (val) { hs (val) {

View file

@ -2,6 +2,7 @@
<div :class="wrapClasses"> <div :class="wrapClasses">
<template v-if="type !== 'textarea'"> <template v-if="type !== 'textarea'">
<div :class="[prefixCls + '-group-prepend']" v-if="prepend" v-show="slotReady"><slot name="prepend"></slot></div> <div :class="[prefixCls + '-group-prepend']" v-if="prepend" v-show="slotReady"><slot name="prepend"></slot></div>
<div :class="[prefixCls + '-inner-container']">
<i class="ivu-icon" :class="['ivu-icon-ios-close-circle', prefixCls + '-icon', prefixCls + '-icon-clear' , prefixCls + '-icon-normal']" v-if="clearable && currentValue && !disabled" @click="handleClear"></i> <i class="ivu-icon" :class="['ivu-icon-ios-close-circle', prefixCls + '-icon', prefixCls + '-icon-clear' , prefixCls + '-icon-normal']" v-if="clearable && currentValue && !disabled" @click="handleClear"></i>
<i class="ivu-icon" :class="['ivu-icon-' + icon, prefixCls + '-icon', prefixCls + '-icon-normal']" v-else-if="icon" @click="handleIconClick"></i> <i class="ivu-icon" :class="['ivu-icon-' + icon, prefixCls + '-icon', prefixCls + '-icon-normal']" v-else-if="icon" @click="handleIconClick"></i>
<i class="ivu-icon ivu-icon-ios-search" :class="[prefixCls + '-icon', prefixCls + '-icon-normal', prefixCls + '-search-icon']" v-else-if="search && enterButton === false" @click="handleSearch"></i> <i class="ivu-icon ivu-icon-ios-search" :class="[prefixCls + '-icon', prefixCls + '-icon-normal', prefixCls + '-search-icon']" v-else-if="search && enterButton === false" @click="handleSearch"></i>
@ -35,6 +36,7 @@
@compositionend="handleComposition" @compositionend="handleComposition"
@input="handleInput" @input="handleInput"
@change="handleChange"> @change="handleChange">
</div>
<div :class="[prefixCls + '-group-append']" v-if="append" v-show="slotReady"><slot name="append"></slot></div> <div :class="[prefixCls + '-group-append']" v-if="append" v-show="slotReady"><slot name="append"></slot></div>
<div :class="[prefixCls + '-group-append', prefixCls + '-search']" v-else-if="search && enterButton" @click="handleSearch"> <div :class="[prefixCls + '-group-append', prefixCls + '-search']" v-else-if="search && enterButton" @click="handleSearch">
<i class="ivu-icon ivu-icon-ios-search" v-if="enterButton === true"></i> <i class="ivu-icon ivu-icon-ios-search" v-if="enterButton === true"></i>

View file

@ -159,7 +159,8 @@
vertical-align: middle; vertical-align: middle;
} }
.@{inputClass} { .@{inputClass},
.@{inputClass}-inner-container {
width: 100%; width: 100%;
float: left; float: left;
margin-bottom: 0; margin-bottom: 0;