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,7 +30,8 @@
30 @change="change" 30 @change="change"
31 :readonly="readonly || !editable" 31 :readonly="readonly || !editable"
32 :name="name" 32 :name="name"
33 - :value="formatterValue"> 33 + :value="formatterValue"
  34 + :placeholder="placeholder">
34 </div> 35 </div>
35 </div> 36 </div>
36 </template> 37 </template>
@@ -120,7 +121,11 @@ @@ -120,7 +121,11 @@
120 }, 121 },
121 parser: { 122 parser: {
122 type: Function 123 type: Function
123 - } 124 + },
  125 + placeholder: {
  126 + type: String,
  127 + default: ''
  128 + },
124 }, 129 },
125 data () { 130 data () {
126 return { 131 return {