-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
光弘
committed
May 10, 2016
0 parents
commit 2041975
Showing
19 changed files
with
925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*.{js,css}] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
*.iml | ||
*.log | ||
.idea/ | ||
.ipr | ||
.iws | ||
*~ | ||
~* | ||
*.diff | ||
*.patch | ||
*.bak | ||
.DS_Store | ||
Thumbs.db | ||
.project | ||
.*proj | ||
.svn/ | ||
*.swp | ||
*.swo | ||
*.pyc | ||
*.pyo | ||
.build | ||
node_modules | ||
_site | ||
sea-modules | ||
spm_modules | ||
.cache | ||
dist | ||
build | ||
assets/**/*.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"node": true, | ||
"browser": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"immed": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"undef": true, | ||
"unused": "vars", | ||
"esnext": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
bower_components/ | ||
*.cfg | ||
node_modules/ | ||
nohup.out | ||
*.iml | ||
.idea/ | ||
.ipr | ||
.iws | ||
*~ | ||
~* | ||
*.diff | ||
*.log | ||
*.patch | ||
*.bak | ||
.DS_Store | ||
Thumbs.db | ||
.project | ||
.*proj | ||
.svn/ | ||
*.swp | ||
out/ | ||
.build | ||
node_modules | ||
_site | ||
sea-modules | ||
spm_modules | ||
.cache | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"generator-uxcore": {} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
|
||
## uxcore-input-form-field [](https://david-dm.org/uxcore/uxcore-input-form-field) [](https://david-dm.org/uxcore/uxcore-input-form-field#info=devDependencies) | ||
|
||
## TL;DR | ||
|
||
uxcore-input-form-field ui component for react | ||
|
||
#### setup develop environment | ||
|
||
```sh | ||
$ git clone https://github.com/uxcore/uxcore-input-form-field | ||
$ cd uxcore-input-form-field | ||
$ npm install | ||
$ gulp server | ||
``` | ||
|
||
## Usage | ||
|
||
## demo | ||
http://uxcore.github.io/ | ||
|
||
## API | ||
|
||
## Props | ||
|
||
| 配置项 | 类型 | 必填 | 默认值 | 功能/备注 | | ||
|---|---|---|---|---| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* InputFormField Component Demo for uxcore | ||
* @author eternalsky | ||
* | ||
* Copyright 2015-2016, Uxcore Team, Alinw. | ||
* All rights reserved. | ||
*/ | ||
|
||
let classnames = require('classnames'); | ||
|
||
let InputFormField = require('../src'); | ||
let {LeftAddon, RightAddon, Count} = InputFormField; | ||
let Form = require('uxcore-form/build/Form'); | ||
let Validators = require('uxcore-validator'); | ||
|
||
class Demo extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
} | ||
} | ||
|
||
handleKeyDown() { | ||
|
||
} | ||
|
||
render() { | ||
let me = this; | ||
return ( | ||
<div> | ||
<Form> | ||
<InputFormField | ||
required={true} | ||
jsxname="test1" | ||
jsxdisabled={false} | ||
autoTrim={false} | ||
jsxlabel="普通输入框" | ||
jsxtips="请输入数字" | ||
validateOnBlur={false} | ||
onKeyDown={me.handleKeyDown.bind(me)} | ||
jsxrules={{validator: Validators.isNotEmpty, errMsg: "不能为空"}}> | ||
<LeftAddon> | ||
<i className="kuma-icon kuma-icon-phone"></i> | ||
</LeftAddon> | ||
<RightAddon> | ||
<span>元</span> | ||
</RightAddon> | ||
<Count total={20}/> | ||
</InputFormField> | ||
</Form> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
module.exports = Demo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* InputFormField Component Demo Style for Uxcore | ||
* @author eternalsky | ||
* | ||
* Copyright 2015-2016, Uxcore Team, Alinw. | ||
* All rights reserved. | ||
*/ | ||
|
||
@import "../node_modules/kuma-base/theme/orange"; | ||
@import "../src/InputFormField.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* InputFormField Component Demo for uxcore | ||
* @author eternalsky | ||
* | ||
* Copyright 2015-2016, Uxcore Team, Alinw. | ||
* All rights reserved. | ||
*/ | ||
|
||
var Demo = require('./InputFormFieldDemo'); | ||
ReactDOM.render(<Demo/>, document.getElementById('UXCoreDemo')); |
Oops, something went wrong.