Blame view

examples/routers/input-number.vue 1.15 KB
c97c42ab   梁灏   support InputNumber
1
2
  <template>
      <div>
5d2d2d6f   梁灏   fixed #1654
3
4
5
6
7
8
          <!--<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>-->
7309b434   梁灏   InputNumber add `...
9
          <InputNumber :editable="false" :max="10" :min="1" :step="1.2" v-model="value2"></InputNumber>
7a05b6e5   梁灏   fixed #1810
10
          <InputNumber :precision="1" :max="10" :min="1" :step="0.1" v-model="value1"></InputNumber>
c97c42ab   梁灏   support InputNumber
11
12
13
14
15
16
17
18
      </div>
  </template>
  <script>
      export default {
          props: {},
          data () {
              return {
                  v1: 1,
8d3a02a5   丁强   修改input组件 autofoc...
19
                  v2: 1,
fa66bfb1   Rijn   add watchers for ...
20
                  max: 10,
b6861430   Lawrence Lee   add test case for...
21
22
23
                  autofocus: true,
                  obj: {
  
5d2d2d6f   梁灏   fixed #1654
24
                  },
cb2678c4   梁灏   fix InputNumber b...
25
26
                  value1: 1.0,
                  value2: 1
c97c42ab   梁灏   support InputNumber
27
28
29
30
31
32
              };
          },
          computed: {},
          methods: {
              c () {
                  this.v1 = 5;
fa66bfb1   Rijn   add watchers for ...
33
34
35
              },
              changeMax () {
                  this.max++;
c97c42ab   梁灏   support InputNumber
36
37
38
39
              }
          }
      };
  </script>