nuke-input
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -50,2 +50,3 @@ # Input Demo | ||
'md-focus-placeholder-color': '#9E9E9E', | ||
'md-error-placeholder-color': '#9E9E9E', | ||
'md-placeholder-font-size': 28, | ||
@@ -52,0 +53,0 @@ 'md-input-margin-bottom': 0, |
# Changelog | ||
## 1.0.52 / 2018-02-13 | ||
* [[406e4ad](http://gitlab.alibaba-inc.com/nuke/input/commit/406e4ad6f9d2abf19919c77d2a95b804ba464663)] - `feat` add empty placeholder color | ||
## 1.0.51 / 2018-02-07 | ||
@@ -5,0 +9,0 @@ |
@@ -77,3 +77,3 @@ 'use strict'; | ||
var phStyle = Object.assign({}, themeStyle.placeholder, themeStyle['md-placeholder-small'], !focus && !inputValue && validInput ? themeStyle['md-placeholder'] : {}, floatPlaceholder ? {} : themeStyle['md-placeholder-static']); | ||
var phTextStyle = Object.assign({}, themeStyle['placeholder-text'], themeStyle['md-placeholder-small-text'], placeholderColor ? { color: placeholderColor } : {}, !focus && !inputValue ? themeStyle['md-placeholder-text'] : {}, hasError ? themeStyle['md-placeholder-small-text-has-error'] : {}, focus ? themeStyle['md-focus-placeholder-text'] : {}, disabled ? themeStyle['md-disabled-placeholder-text'] : {}); | ||
var phTextStyle = Object.assign({}, themeStyle['placeholder-text'], themeStyle['md-placeholder-small-text'], placeholderColor ? { color: placeholderColor } : {}, !focus && !inputValue ? themeStyle['md-placeholder-text'] : {}, hasError ? themeStyle['md-placeholder-small-text-has-error'] : {}, !inputValue ? themeStyle['md-empty-placeholder-text'] : {}, focus ? themeStyle['md-focus-placeholder-text'] : {}, disabled ? themeStyle['md-disabled-placeholder-text'] : {}); | ||
if (status === 'error' && (maxLengthError || !hideErrorWhenFocus)) { | ||
@@ -80,0 +80,0 @@ phTextStyle = Object.assign(phTextStyle, themeStyle['md-placeholder-small-text-has-error']); |
@@ -385,2 +385,5 @@ 'use strict'; | ||
}, | ||
'md-empty-placeholder-text': { | ||
color: Variables['md-empty-placeholder-color'] | ||
}, | ||
'md-disabled-placeholder-text': { | ||
@@ -387,0 +390,0 @@ color: Variables['md-disabled-placeholder-color'] |
@@ -111,2 +111,3 @@ 'use strict'; | ||
'md-focus-placeholder-color': core['color-brand1-6'], | ||
'md-empty-placeholder-color': core['color-text1-2'], | ||
'md-error-placeholder-color': MDErrorTextColor, | ||
@@ -113,0 +114,0 @@ 'md-disabled-placeholder-color': core['color-text1-1'], |
{ | ||
"name": "nuke-input", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "输入框", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
180592
2288