Commit ff3d2a2e387bc0cc13dcd417590c7e6d25c6ef83

Authored by xiaofengsha
1 parent 3dc998e6

inputNumber组件添加placeholder属性

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
src/components/input-number/input-number.vue
... ... @@ -30,7 +30,8 @@
30 30 @change="change"
31 31 :readonly="readonly || !editable"
32 32 :name="name"
33   - :value="formatterValue">
  33 + :value="formatterValue"
  34 + :placeholder="placeholder">
34 35 </div>
35 36 </div>
36 37 </template>
... ... @@ -120,7 +121,11 @@
120 121 },
121 122 parser: {
122 123 type: Function
123   - }
  124 + },
  125 + placeholder: {
  126 + type: String,
  127 + default: ''
  128 + },
124 129 },
125 130 data () {
126 131 return {
... ...