From ff3d2a2e387bc0cc13dcd417590c7e6d25c6ef83 Mon Sep 17 00:00:00 2001 From: xiaofengsha <181347204@qq.com> Date: Tue, 17 Apr 2018 21:38:52 +0800 Subject: [PATCH] inputNumber组件添加placeholder属性 --- src/components/input-number/input-number.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/input-number/input-number.vue b/src/components/input-number/input-number.vue index 137289d..7eb24c6 100644 --- a/src/components/input-number/input-number.vue +++ b/src/components/input-number/input-number.vue @@ -30,7 +30,8 @@ @change="change" :readonly="readonly || !editable" :name="name" - :value="formatterValue"> + :value="formatterValue" + :placeholder="placeholder"> @@ -120,7 +121,11 @@ }, parser: { type: Function - } + }, + placeholder: { + type: String, + default: '' + }, }, data () { return { -- libgit2 0.21.4