Skip to content

Commit

Permalink
feat: 动态计算 descriptions item span
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Jun 6, 2023
1 parent a9d67d1 commit bc176cf
Showing 1 changed file with 111 additions and 123 deletions.
234 changes: 111 additions & 123 deletions docs/data-view/schema/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,24 @@ export default [
"items": [
{
"label": "创建人",
"dataKey": "creator",
"span": 2,
"dataKey": "creator"
},
{
"label": "关联单据",
"dataKey": "relevanceCode",
"span": 2
"dataKey": "relevanceCode"
},
{
"label": "单据备注",
"dataKey": "desc",
"span": 1
"dataKey": "desc"
},
{
"label": "创建时间",
"dataKey": "create-time",
"span": 3
"dataKey": "create-time"
},
{
"label": "生效日期",
"dataKey": "effective-date"
},
{
"label": "描述项",
"showLevel": 1
},
{
"label": "描述项",
"showLevel": 1
Expand All @@ -63,115 +55,111 @@ export default [
}
]
},
// {
// "widget": "FTabs",
// "items": [
// {
// "label": "负载均衡(SLB)",
// "children": [
// {
// "widget": "FPanel",
// "style": {
// "paddingTop": "20px",
// "paddingLeft": "20px",
// "paddingBottom": "20px",
// "paddingRight": "20px",
// "backgroundColor": "#ffffff",
// "marginBottom": "12px"
// },
// "children": [
// {
// "widget": "FTitle",
// "data": "安全信息"
// },
// {
// "widget": "FDescriptions",
// "column": 2,
// "items": [
// {
// "label": "安全构建名称",
// "dataKey": "name",
// "span": 2
// },
// {
// "label": "所属应用",
// "dataKey": "app",
// "span": 1
// },
// {
// "label": "构建模式",
// "dataKey": "mode",
// "span": 1
// },
// {
// "label": "公网域名",
// "dataKey": "yum",
// "span": 3
// },
// {
// "label": "保留计算实例",
// "dataKey": "fore"
// }
// ],
// "dataKey": "safety"
// }
// ]
// },
// {
// "widget": "FPanel",
// "style": {
// "paddingTop": "20px",
// "paddingLeft": "20px",
// "paddingBottom": "20px",
// "paddingRight": "20px",
// "backgroundColor": "#ffffff",
// "marginBottom": "12px"
// },
// "children": [
// {
// "widget": "FTitle",
// "data": "操作日志"
// },
// {
// "widget": "FTable",
// "pagination": {
// "pageSize": "3"
// },
// "style": {
// "backgroundColor": "#ffffff"
// },
// "dataKey": "operLog",
// "column": {
// "type": {
// "title": "操作类型",
// "dataKey": "type"
// },
// "creator": {
// "title": "操作人",
// "dataKey": "creator"
// },
// "time": {
// "title": "操作时间",
// "dataKey": "time"
// },
// "result": {
// "title": "执行结果",
// "dataKey": "result"
// },
// "desc": {
// "title": "备注",
// "dataKey": "desc"
// }
// }
// }
// ]
// }
// ]
// },
// {
// "label": "云服务器(ECS)",
// "children": []
// }
// ]
// }
{
"widget": "FTabs",
"items": [
{
"label": "负载均衡(SLB)",
"children": [
{
"widget": "FPanel",
"style": {
"paddingTop": "20px",
"paddingLeft": "20px",
"paddingBottom": "20px",
"paddingRight": "20px",
"backgroundColor": "#ffffff",
"marginBottom": "12px"
},
"children": [
{
"widget": "FTitle",
"data": "安全信息"
},
{
"widget": "FDescriptions",
"column": 2,
"items": [
{
"label": "安全构建名称",
"dataKey": "name"
},
{
"label": "所属应用",
"dataKey": "app"
},
{
"label": "构建模式",
"dataKey": "mode"
},
{
"label": "公网域名",
"dataKey": "yum"
},
{
"label": "保留计算实例",
"dataKey": "fore"
}
],
"dataKey": "safety"
}
]
},
{
"widget": "FPanel",
"style": {
"paddingTop": "20px",
"paddingLeft": "20px",
"paddingBottom": "20px",
"paddingRight": "20px",
"backgroundColor": "#ffffff",
"marginBottom": "12px"
},
"children": [
{
"widget": "FTitle",
"data": "操作日志"
},
{
"widget": "FTable",
"pagination": {
"pageSize": "3"
},
"style": {
"backgroundColor": "#ffffff"
},
"dataKey": "operLog",
"column": {
"type": {
"title": "操作类型",
"dataKey": "type"
},
"creator": {
"title": "操作人",
"dataKey": "creator"
},
"time": {
"title": "操作时间",
"dataKey": "time"
},
"result": {
"title": "执行结果",
"dataKey": "result"
},
"desc": {
"title": "备注",
"dataKey": "desc"
}
}
}
]
}
]
},
{
"label": "云服务器(ECS)",
"children": []
}
]
}
]

0 comments on commit bc176cf

Please sign in to comment.