@chief-editor/brick-control
Version:
Control Brick for chief editor
686 lines (685 loc) • 98.1 kB
JSON
{
"id": "35777ad0-11a1-0509-0942-9d1a18e383f5",
"board": {
"id": "root",
"type": "Stream",
"floatType": "none",
"bricks": [
{
"id": "966f7c11-fbf3-0f25-3e6d-387115c8d8eb",
"type": "Tab",
"info": {
"id": "",
"field": "",
"label": "选项卡",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "面板",
"__temp_index__": "props"
}
},
"styles": {},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"datasource": {
"type": "local",
"useStaticDatasource": true,
"hasDefaultValue": false,
"data": [
{
"label": "属性",
"value": "props"
},
{
"label": "样式",
"value": "style"
}
]
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"props": {
"bricks": [
{
"id": "9f4c0e35-01e5-6701-5047-bbc3bc9745fa",
"type": "Panel",
"info": {
"id": "",
"field": "info",
"label": "面板",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "基本信息"
}
},
"styles": {},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "6ffdbae2-8132-44b2-e487-db233147a80e",
"type": "FormContainer",
"info": {
"id": "",
"field": "",
"label": "表单项容器",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"hasLabel": true,
"cLabel": "组件ID",
"required": false,
"tooltip": "",
"hint": "",
"align": "left"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingBottom": 12
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "01ce9904-248e-e8a2-8081-ba70ed1d8949",
"type": "Input",
"info": {
"id": "",
"field": "id",
"label": "输入框",
"expandProps": {
"props": {},
"styles": {}
},
"filed": "id"
},
"config": {
"props": {
"className": "",
"showBrick": true,
"prefix": "",
"suffix": ""
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "6ffdbae2-8132-44b2-e487-db233147a80e_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "42f6da6c-26ae-a1a7-a53f-1edbf9932b7a",
"type": "FormContainer",
"info": {
"id": "",
"field": "",
"label": "表单项容器",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"hasLabel": true,
"cLabel": "字段名",
"required": false,
"tooltip": "",
"hint": "",
"align": "left"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingBottom": 12
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "3e2186af-b47c-58b2-0452-2e421dcb5d27",
"type": "Input",
"info": {
"id": "",
"field": "field",
"label": "字段名",
"expandProps": {
"props": {},
"styles": {}
},
"filed": "field"
},
"config": {
"props": {
"className": "",
"showBrick": true,
"prefix": "",
"suffix": "",
"placeholder": "请输入字段名"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "42f6da6c-26ae-a1a7-a53f-1edbf9932b7a_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "eb3d3a16-b02e-a993-121b-d7d1173b9668",
"type": "FormContainer",
"info": {
"id": "",
"field": "",
"label": "表单项容器",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"hasLabel": true,
"cLabel": "组件名称",
"required": false,
"tooltip": "",
"hint": "",
"align": "left"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingBottom": 8
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "b132650b-70c6-22c6-aa7f-4918672198e5",
"type": "Input",
"info": {
"id": "",
"field": "label",
"label": "组件名称",
"expandProps": {
"props": {},
"styles": {}
},
"filed": "label"
},
"config": {
"props": {
"className": "",
"showBrick": true,
"prefix": "",
"suffix": "",
"placeholder": "请输入组件名称"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "eb3d3a16-b02e-a993-121b-d7d1173b9668_content",
"type": "Stream",
"floatType": "none"
}
}
}
],
"id": "9f4c0e35-01e5-6701-5047-bbc3bc9745fa_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "4d130028-b914-9def-8a7d-59dadca1dd5c",
"type": "Divider",
"info": {
"id": "",
"field": "",
"label": "分割线",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"type": "horizontal"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
},
{
"id": "b173e85a-ae0a-a6e3-67f8-3cd5b8f1f142",
"type": "Layer",
"info": {
"id": "",
"field": "config",
"label": "普通层",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true
}
},
"styles": {},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "aa489fbd-e2a9-79af-8d21-97ba5a696ac6",
"type": "Panel",
"info": {
"id": "",
"field": "props",
"label": "面板",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "属性"
}
},
"styles": {},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "3f727712-d220-623c-5699-37629e93c521",
"type": "Layer",
"info": {
"id": "",
"field": "",
"label": "普通层",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true
}
},
"styles": {},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "2b0ddaa1-194c-1f05-ba1f-b3547ec0788c",
"type": "FormContainer",
"info": {
"id": "",
"field": "",
"label": "表单项容器",
"expandProps": {
"props": {},
"styles": {}
},
"__bind__": {}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"hasLabel": true,
"cLabel": "标题",
"required": false,
"tooltip": "",
"hint": "",
"align": "left",
"title": "默认提示",
"__bind__": {}
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingTop": "",
"paddingBottom": "12px",
"paddingLeft": "",
"paddingRight": "",
"__bind__": {}
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "f254071d-2b19-f824-cc24-b4ad6433cc61",
"type": "Input",
"info": {
"id": "",
"field": "title",
"label": "输入框",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"prefix": "",
"suffix": "",
"placeholder": "请输入标题",
"defaultValue": ""
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingTop": 0,
"paddingBottom": "",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top",
"width": "",
"height": ""
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "2b0ddaa1-194c-1f05-ba1f-b3547ec0788c_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "2f6c4370-ad97-9d6a-506d-18a09caec7e5",
"type": "FormContainer",
"info": {
"id": "",
"field": "",
"label": "表单项容器",
"expandProps": {
"props": {},
"styles": {}
},
"__bind__": {}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"hasLabel": true,
"cLabel": "是否开启绑定",
"required": false,
"tooltip": "",
"hint": "",
"align": "left",
"__bind__": {}
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingBottom": 12,
"paddingTop": "",
"paddingLeft": "",
"paddingRight": "",
"__bind__": {}
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "5ecd7ee8-51b2-e133-58f1-2de05af9049a",
"type": "Switch",
"info": {
"id": "",
"field": "bind",
"label": "开关",
"expandProps": {
"props": {},
"styles": {}
},
"__bind__": {}
},
"config": {
"props": {
"placeholder": "是否开启绑定",
"defaultValue": false,
"__bind__": {}
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0,
"paddingTop": 0,
"paddingBottom": "",
"paddingLeft": "",
"paddingRight": "",
"__bind__": {}
},