Merge pull request #1400 from lcx960324/2.0

fix #1084
This commit is contained in:
Aresn 2017-07-19 16:46:30 +08:00 committed by GitHub
commit 5635802960
4 changed files with 13 additions and 4 deletions

View file

@ -4,6 +4,7 @@
{{ v1 }}
<div @click="c">change v1</div>
<Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number>
<Input-number :max="10" :min="1" v-model="obj.v"></Input-number>
</div>
</template>
<script>
@ -13,7 +14,10 @@
return {
v1: 1,
v2: 1,
autofocus: true
autofocus: true,
obj: {
}
};
},
computed: {},

View file

@ -11,6 +11,8 @@
<Input v-model="value2" placeholder="default size" icon="ios-clock-outline"></Input>
<br>
<Input v-model="value3" size="small" placeholder="small size" icon="ios-clock-outline"></Input>
<br>
<Input v-model="obj.test" type="textarea" autosize></Input>
</div>
</template>
<script>
@ -19,7 +21,10 @@
return {
value1: '',
value2: '',
value3: ''
value3: '',
obj: {
}
}
}
}

View file

@ -25,7 +25,7 @@
@keydown.stop="keyDown"
@change="change"
:name="name"
:value="value">
:value="currentValue">
</div>
</div>
</template>

View file

@ -39,7 +39,7 @@
:maxlength="maxlength"
:readonly="readonly"
:name="name"
:value="value"
:value="currentValue"
:autofocus="autofocus"
@keyup.enter="handleEnter"
@keyup="handleKeyup"