Skip to content

Commit

Permalink
finish #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhubaofu committed Mar 14, 2017
1 parent eb73a66 commit ed40010
Show file tree
Hide file tree
Showing 53 changed files with 554 additions and 390 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "melon-json-schema-form",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "melon json schema form",
"main": "lib/index.js",
"license": "MIT",
Expand Down
21 changes: 14 additions & 7 deletions example/simple/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ export default {
type: 'string',
title: '描述'
},
sex: {
'type': 'string',
'title': '性别',
'enum': ['male', 'female'],
'enumNames': ['男', '女'],
'default': 'male'
},
agree: {
type: 'boolean',
title: '同意',
Expand Down Expand Up @@ -112,13 +119,13 @@ export default {
}
},
cost: {
title: '抽奖消耗的金币数 (0-20)',
type: 'string',
format: 'numeric',
formatMaximum: '20',
formatMinimum: '0',
step: 1,
default: '0'
'title': '抽奖消耗的金币数 (0-20)',
'type': 'string',
'format': 'numeric',
'formatMaximum': '20',
'formatMinimum': '0',
'step': 1,
'default': '0'
},
noGoldMessage: {
'title': '金币不足时的提示语',
Expand Down
26 changes: 23 additions & 3 deletions lib/component/Field.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/component/Field.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions lib/component/controls/Boolean.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/component/controls/Boolean.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ed40010

Please sign in to comment.