This commit is contained in:
梁灏 2017-08-21 16:48:07 +08:00
parent f8098275ca
commit 5d2d2d6f7f
2 changed files with 11 additions and 9 deletions

View file

@ -1,11 +1,12 @@
<template>
<div>
<Input-number :max="max" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>
{{ v1 }}
<div @click="c">change v1</div>
<div @click="changeMax">change max</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>
<!--<Input-number :max="max" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>-->
<!--{{ v1 }}-->
<!--<div @click="c">change v1</div>-->
<!--<div @click="changeMax">change max</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>-->
<InputNumber :max="10" :min="1" v-model="value1"></InputNumber>
</div>
</template>
<script>
@ -19,7 +20,8 @@
autofocus: true,
obj: {
}
},
value1: 1
};
},
computed: {},

View file

@ -3,13 +3,13 @@
<div :class="handlerClasses">
<a
@click="up"
@mouse.down="preventDefault"
@mousedown="preventDefault"
:class="upClasses">
<span :class="innerUpClasses" @click="preventDefault"></span>
</a>
<a
@click="down"
@mouse.down="preventDefault"
@mousedown="preventDefault"
:class="downClasses">
<span :class="innerDownClasses" @click="preventDefault"></span>
</a>