nuke-input
Advanced tools
Comparing version 2.0.0 to 2.0.1
# Changelog | ||
## 2.0.1 / 2018-03-24 | ||
* [[122245cb](http://gitlab.alibaba-inc.com/nuke/input/commit/122245cb35a8a13abf643748486b18be502b1ccb)] - `feat` update demo | ||
## 2.0.0 / 2018-03-22 | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "nuke-input", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "输入框", | ||
"main": "lib/index", | ||
"files": ["lib", "docs", "theme", "README.md", "HISTORY.md"], | ||
"keywords": ["nuke", "input"], | ||
"files": [ | ||
"lib", | ||
"docs", | ||
"theme", | ||
"README.md", | ||
"HISTORY.md" | ||
], | ||
"keywords": [ | ||
"nuke", | ||
"input" | ||
], | ||
"author": { | ||
@@ -44,3 +53,3 @@ "name": "leanhunter", | ||
"nuke-button": "^2.x.x", | ||
"nuke-page": "^1.x.x", | ||
"nuke-page": "^2.x.x", | ||
"resemblejs-node": "^1.0.0", | ||
@@ -47,0 +56,0 @@ "webdriver-keycode": "^1.0.3" |
@@ -47,7 +47,7 @@ /** @jsx createElement */ | ||
<DemoContainer> | ||
<DemoSection title="全局-Size"> | ||
<DemoSection title="单行"> | ||
<Demo> | ||
<DemoItem direction="row"> | ||
<DemoItem direction="column"> | ||
<Input | ||
multiple | ||
style={{ alignSelf: 'stretch' }} | ||
materialDesign={false} | ||
@@ -59,13 +59,30 @@ renderClear | ||
</DemoItem> | ||
<DemoItem direction="row"> | ||
</Demo> | ||
</DemoSection> | ||
<DemoSection title="disabled"> | ||
<Demo> | ||
<DemoItem direction="column"> | ||
<Input | ||
multiple | ||
materialDesign={false} | ||
disabled | ||
renderClear | ||
defaultValue={'WATSON$7189833'} | ||
type="text" | ||
onChange={this.change} | ||
/> | ||
</DemoItem> | ||
</Demo> | ||
</DemoSection> | ||
<DemoSection title="error"> | ||
<Demo> | ||
<DemoItem direction="column"> | ||
<Input | ||
maxLength={20} | ||
defaultValue={this.state.value} | ||
onInput={this.checkLength} | ||
status={this.state.status1} | ||
renderCount={false} | ||
renderError | ||
renderClear | ||
type="text" | ||
onChange={this.change} | ||
status="error" | ||
placeholder="Ender Voucher Code" | ||
@@ -75,27 +92,45 @@ errorMessage={'Voucher code error'} | ||
</DemoItem> | ||
<DemoItem direction="row"> | ||
</Demo> | ||
</DemoSection> | ||
<DemoSection title="md 单行"> | ||
<Demo> | ||
<DemoItem direction="column"> | ||
<Input | ||
multiple | ||
maxRows={5} | ||
onInput={this.checkLength} | ||
renderCount | ||
materialDesign | ||
renderClear | ||
type="text" | ||
placeholder="milti-line input label" | ||
placeholder="Ender Voucher Code" | ||
/> | ||
</DemoItem> | ||
<DemoItem direction="row"> | ||
</Demo> | ||
</DemoSection> | ||
<DemoSection title="md disabled"> | ||
<Demo> | ||
<DemoItem direction="column"> | ||
<Input | ||
multiple | ||
materialDesign | ||
disabled | ||
renderClear | ||
defaultValue={'WATSON$7189833'} | ||
type="text" | ||
onChange={this.change} | ||
/> | ||
</DemoItem> | ||
</Demo> | ||
</DemoSection> | ||
<DemoSection title="md error"> | ||
<Demo> | ||
<DemoItem direction="column"> | ||
<Input | ||
maxLength={20} | ||
maxRows={20} | ||
materialDesign | ||
defaultValue={this.state.value} | ||
onInput={this.checkLength} | ||
renderCount={false} | ||
errorMessage="error" | ||
renderError | ||
renderClear | ||
type="text" | ||
status={this.state.status2} | ||
placeholder="milti-line input label" | ||
status="error" | ||
placeholder="Ender Voucher Code" | ||
errorMessage={'Voucher code error'} | ||
/> | ||
@@ -102,0 +137,0 @@ </DemoItem> |
189221
2720