Commit 7959adf7a85d032d6d9ab1533d94a0acf8973c2f

Authored by 梁灏
1 parent 5a9a12cd

fixed #862

examples/routers/input-number.vue
1 1 <template>
2 2 <div>
3   - <Input-number :max="10" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>
  3 + <Input-number :max="10" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>
4 4 {{ v1 }}
5 5 <div @click="c">change v1</div>
6 6 <Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number>
... ...
src/components/input-number/input-number.vue
... ... @@ -24,6 +24,7 @@
24 24 @blur="blur"
25 25 @keydown.stop="keyDown"
26 26 @change="change"
  27 + :name="name"
27 28 :value="value">
28 29 </div>
29 30 </div>
... ... @@ -94,6 +95,9 @@
94 95 autofocus: {
95 96 type: Boolean,
96 97 default: false
  98 + },
  99 + name: {
  100 + type: String
97 101 }
98 102 },
99 103 data () {
... ...