1. 解决 FormItem 默认 margin 的问题;

2. FormItem 提供默认宽高;
3. 完善 demoshow 调试 schema.json
This commit is contained in:
金禅 2020-07-22 16:09:06 +08:00
parent 9295801305
commit 9a1501cff2
2 changed files with 140 additions and 22 deletions

View File

@ -296,7 +296,12 @@
"name": "lengths", "name": "lengths",
"propType": "object" "propType": "object"
} }
] ],
"configure": {
"component": {
"isContainer": true
}
}
}, },
{ {
"componentName": "Table.Column", "componentName": "Table.Column",
@ -313,6 +318,10 @@
{ {
"name": "title", "name": "title",
"propType": "string" "propType": "string"
},
{
"name": "dataIndex",
"propType": "string"
} }
] ]
}, },
@ -12152,10 +12161,10 @@
"componentName": "Table", "componentName": "Table",
"props": { "props": {
"dataSource": [{ "dataSource": [{
"title": {"name": "Quotation"}, "id": 1, "time": "2016"
"id": 100306660940, },{
"time": 2000 "id": 2, "time": "2017"
}], }],
"size": "medium", "size": "medium",
"prefix": "next-", "prefix": "next-",
"hasBorder": true, "hasBorder": true,
@ -12171,13 +12180,39 @@
{ {
"componentName": "Table.Column", "componentName": "Table.Column",
"props": { "props": {
"title": "name" "title": "id",
"dataIndex": "id"
}
},
{
"componentName": "Table.Column",
"props": {
"title": "time",
"dataIndex": "time"
} }
} }
] ]
} }
} }
] ]
},{
"componentName": "Table.Column",
"title": "表格列",
"icon": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_table.png",
"package": "@alife/next",
"library": "Next",
"snippets": [
{
"title": "表格列",
"screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_table.png",
"schema": {
"componentName": "Table.Column",
"props": {
"title": "name"
}
}
}
]
}, },
{ {
"componentName": "Calendar", "componentName": "Calendar",
@ -13133,7 +13168,13 @@
"screenshot": "", "screenshot": "",
"schema": { "schema": {
"componentName": "Form.Item", "componentName": "Form.Item",
"props": {} "props": {
"style":{
"margin-bottom": "0",
"min-width": "200px",
"min-height": "28px"
}
}
} }
} }
] ]

View File

@ -74,8 +74,8 @@
"prefix":"next-" "prefix":"next-"
}, },
"children":[ "children":[
"222", "首页"
"222111"] ]
}, },
{ {
"componentName":"Breadcrumb.Item", "componentName":"Breadcrumb.Item",
@ -84,8 +84,8 @@
"prefix":"next-" "prefix":"next-"
}, },
"children":[ "children":[
"222", "品质中台"
"222111"] ]
}, },
{ {
"componentName":"Breadcrumb.Item", "componentName":"Breadcrumb.Item",
@ -94,9 +94,19 @@
"prefix":"next-" "prefix":"next-"
}, },
"children":[ "children":[
"222", "商家品质页面管理"
"222111"] ]
}] },
{
"componentName":"Breadcrumb.Item",
"props":{
"prefix":"next-"
},
"children":[
"质检知识条配置"
]
}
]
}] }]
}, },
{ {
@ -126,6 +136,7 @@
"id":"node_dockcviv8fo2y", "id":"node_dockcviv8fo2y",
"props":{ "props":{
"style":{ "style":{
"margin-bottom": "0"
}, },
"label":"类目名:" "label":"类目名:"
}, },
@ -148,6 +159,7 @@
"id":"node_dockcviv8fo30", "id":"node_dockcviv8fo30",
"props":{ "props":{
"style":{ "style":{
"margin-bottom": "0"
}, },
"label":"项目类型:" "label":"项目类型:"
}, },
@ -170,6 +182,7 @@
"id":"node_dockcviv8fo32", "id":"node_dockcviv8fo32",
"props":{ "props":{
"style":{ "style":{
"margin-bottom": "0"
}, },
"label":"项目 ID" "label":"项目 ID"
}, },
@ -285,12 +298,25 @@
"props":{ "props":{
"dataSource":[ "dataSource":[
{ {
"title":{ "firstCategory": "其他",
"name":"Quotation" "secondCategory": "新品预览",
}, "leafCategory": "",
"id":100306660940, "projectType": "标识判断",
"time":2000 "projectId": "",
}], "title": "其他类目->新品预览类目类型知识库",
"url": "其他",
"operation": "编辑"
},{
"firstCategory": "其他",
"secondCategory": "新品预览",
"leafCategory": "",
"projectType": "",
"projectId": "1",
"title": "其他类目->新品预览项目Id知识库",
"url": "其他",
"operation": "编辑"
}
],
"size":"medium", "size":"medium",
"prefix":"next-", "prefix":"next-",
"hasBorder":true, "hasBorder":true,
@ -310,9 +336,60 @@
"componentName":"Table.Column", "componentName":"Table.Column",
"id":"node_dockcviv8fo3f", "id":"node_dockcviv8fo3f",
"props":{ "props":{
"title":"name" "title":"一级类目",
"dataIndex": "firstCategory"
} }
}] },{
"componentName":"Table.Column",
"id":"node_dockcviv8fo41",
"props":{
"title":"二级类目",
"dataIndex": "secondCategory"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo42",
"props":{
"title":"叶子类目",
"dataIndex": "leafCategory"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo43",
"props":{
"title":"项目类型",
"dataIndex": "projectType"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo44",
"props":{
"title":"项目 ID",
"dataIndex": "projectId"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo45",
"props":{
"title":"知识条标题",
"dataIndex": "title"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo46",
"props":{
"title":"知识条链接",
"dataIndex": "url"
}
},{
"componentName":"Table.Column",
"id":"node_dockcviv8fo47",
"props":{
"title":"操作",
"dataIndex": "operation"
}
}
]
}] }]
}, },
{ {