diff --git a/examples/pages/input/index.wxml b/examples/pages/input/index.wxml index 826a75b..5c27a6d 100644 --- a/examples/pages/input/index.wxml +++ b/examples/pages/input/index.wxml @@ -1,6 +1,7 @@ + diff --git a/src/input/index.js b/src/input/index.js index c9d4c41..824f977 100644 --- a/src/input/index.js +++ b/src/input/index.js @@ -20,6 +20,10 @@ Component({ type: String, value: '' }, + placeholderStyle: { + type: String, + value: '' + }, autofocus: { type: Boolean, value: false diff --git a/src/input/index.wxml b/src/input/index.wxml index 52b0ee3..fa471e2 100644 --- a/src/input/index.wxml +++ b/src/input/index.wxml @@ -13,6 +13,7 @@ bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" + placeholder-style="{{ placeholderStyle }}" >