Commit 5d2d2d6f7f69caf77a8bfcf8c24a6f7395f9bc79
1 parent
f8098275
fixed #1654
Showing
2 changed files
with
11 additions
and
9 deletions
Show diff stats
examples/routers/input-number.vue
1 | 1 | <template> |
2 | 2 | <div> |
3 | - <Input-number :max="max" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number> | |
4 | - {{ v1 }} | |
5 | - <div @click="c">change v1</div> | |
6 | - <div @click="changeMax">change max</div> | |
7 | - <Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number> | |
8 | - <Input-number :max="10" :min="1" v-model="obj.v"></Input-number> | |
3 | + <!--<Input-number :max="max" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>--> | |
4 | + <!--{{ v1 }}--> | |
5 | + <!--<div @click="c">change v1</div>--> | |
6 | + <!--<div @click="changeMax">change max</div>--> | |
7 | + <!--<Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number>--> | |
8 | + <!--<Input-number :max="10" :min="1" v-model="obj.v"></Input-number>--> | |
9 | + <InputNumber :max="10" :min="1" v-model="value1"></InputNumber> | |
9 | 10 | </div> |
10 | 11 | </template> |
11 | 12 | <script> |
... | ... | @@ -19,7 +20,8 @@ |
19 | 20 | autofocus: true, |
20 | 21 | obj: { |
21 | 22 | |
22 | - } | |
23 | + }, | |
24 | + value1: 1 | |
23 | 25 | }; |
24 | 26 | }, |
25 | 27 | computed: {}, | ... | ... |
src/components/input-number/input-number.vue
... | ... | @@ -3,13 +3,13 @@ |
3 | 3 | <div :class="handlerClasses"> |
4 | 4 | <a |
5 | 5 | @click="up" |
6 | - @mouse.down="preventDefault" | |
6 | + @mousedown="preventDefault" | |
7 | 7 | :class="upClasses"> |
8 | 8 | <span :class="innerUpClasses" @click="preventDefault"></span> |
9 | 9 | </a> |
10 | 10 | <a |
11 | 11 | @click="down" |
12 | - @mouse.down="preventDefault" | |
12 | + @mousedown="preventDefault" | |
13 | 13 | :class="downClasses"> |
14 | 14 | <span :class="innerDownClasses" @click="preventDefault"></span> |
15 | 15 | </a> | ... | ... |