Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev

This commit is contained in:
suxiaoxin 2018-03-23 14:24:09 +08:00
commit e866df3eac
4 changed files with 7 additions and 3 deletions

View File

@ -17,7 +17,8 @@ const messageMap = {
enum: '枚举',
uniqueItems: '元素是否都不同',
itemType: 'item 类型',
format: 'format'
format: 'format',
itemFormat: 'format'
};
const columns = [

View File

@ -556,6 +556,7 @@ class InterfaceEditForm extends Component {
req_body_other = ''
}
const queryTpl = (data, index) => {
return (
<Row key={index} className="interface-edit-item-content">

View File

@ -137,7 +137,9 @@ const SchemaArray =(data, index) => {
maxItems: data.maxItems,
itemType: items.type,
children: optionForm
}
if(items.type === 'string'){
item = Object.assign({},item, {itemFormat: items.format})
}
return item
}

View File

@ -108,7 +108,7 @@
"fast-sass-loader-china": "1.2.5",
"ghooks": "^2.0.0",
"happypack": "^4.0.0-beta.5",
"json-schema-editor-visual": "^1.0.3",
"json-schema-editor-visual": "^1.0.4",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"node-sass-china": "4.5.0",