inputNumber组件添加placeholder属性

This commit is contained in:
xiaofengsha 2018-04-17 21:38:52 +08:00
parent 3dc998e6ab
commit ff3d2a2e38

View file

@ -30,7 +30,8 @@
@change="change" @change="change"
:readonly="readonly || !editable" :readonly="readonly || !editable"
:name="name" :name="name"
:value="formatterValue"> :value="formatterValue"
:placeholder="placeholder">
</div> </div>
</div> </div>
</template> </template>
@ -120,7 +121,11 @@
}, },
parser: { parser: {
type: Function type: Function
} },
placeholder: {
type: String,
default: ''
},
}, },
data () { data () {
return { return {