@chief-editor/brick-control
Version:
Control Brick for chief editor
768 lines (767 loc) • 152 kB
JSON
{
"id": "35777ad0-11a1-0509-0942-9d1a18e383f5",
"board": {
"id": "root",
"type": "Stream",
"floatType": "none",
"bricks": [
{
"id": "c65ab88b-c011-d9db-b758-6062c9a9b49b",
"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": {}
}
},
"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": {}
}
},
"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": {}
}
},
"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": "879e0f26-1626-d4ee-a3ea-c2873ca41d74",
"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": "9375a4e9-c135-413f-db47-9b87ddbb85f5",
"type": "Panel",
"info": {
"id": "",
"field": "",
"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": "",
"type": "Datasource",
"info": {
"id": "",
"field": "datasource",
"label": "数据源",
"expandProps": {
"props": {},
"styles": {}
}
},
"datasource": {
"type": "local",
"data": [
{
"value": "local",
"label": "本地"
},
{
"value": "bind",
"label": "绑定"
},
{
"value": "func",
"label": "函数"
}
],
"defaultValue": "local"
},
"config": {
"props": {
"forceStatic": false,
"defaultValueType": "multiple",
"supportDynamic": true
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"events": {
"eventList": []
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "9375a4e9-c135-413f-db47-9b87ddbb85f5_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "d26ee70d-d49f-acd5-bdd5-f3cc2f6ced5d",
"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": "95a59502-5a08-dfd9-315d-295b3617783b",
"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": "2b0ddaa1-194c-1f05-ba1f-b3547ec0788c",
"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,
"paddingTop": "",
"paddingBottom": "12px",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "24a54180-0bd6-0630-e954-d70c6e725ad6",
"type": "Input",
"info": {
"id": "",
"field": "placeholder",
"label": "默认提示",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"prefix": "",
"suffix": "",
"cLabel": "请输入默认提示",
"title": "请输入默认提示",
"placeholder": "请输入默认提示"
}
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "2b0ddaa1-194c-1f05-ba1f-b3547ec0788c_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "0c3d78d5-191e-eed6-f23f-99be55339492",
"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,
"paddingTop": "",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "3167171b-86a7-cdc1-41af-9632b0fb78aa",
"type": "Input",
"info": {
"id": "",
"field": "defaultValue",
"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": "",