@chief-editor/brick-control
Version:
Control Brick for chief editor
775 lines (774 loc) • 96.1 kB
JSON
{
"id": "2965fae9-3f41-d317-30e1-12c891c1f187",
"board": {
"id": "root",
"type": "Stream",
"floatType": "none",
"bricks": [
{
"id": "c1a66834-4157-4ff4-1678-86f52f37c0e5",
"type": "Tab",
"info": {
"id": "",
"field": "",
"label": "属性面板",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "面板",
"__temp_index__": "props"
}
},
"styles": {
"marginTop": "",
"marginBottom": "",
"marginLeft": "",
"marginRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"datasource": {
"type": "local",
"useStaticDatasource": true,
"hasDefaultValue": false,
"data": [
{
"label": "数据",
"value": "datasource"
},
{
"label": "样式",
"value": "style"
}
],
"defaultValue": "datasource"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"datasource": {
"bricks": [
{
"id": "0419f24b-825a-3a09-1a1d-0c6813d17e48",
"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": "a741293e-a739-e78c-9ad9-1e846cab618f",
"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": "173cebfb-4403-cf6b-2695-34a166bc675c",
"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": "a741293e-a739-e78c-9ad9-1e846cab618f_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "6a7e815e-b230-edc4-0d7d-e91b0754d877",
"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": "2380e49b-d9cc-a8a8-5fe6-292f5ba5ea63",
"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": "6a7e815e-b230-edc4-0d7d-e91b0754d877_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "aa690d37-6ede-0c71-c3e3-b8e04ca22e2f",
"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": "56b3e5b9-4061-9db6-f016-3249911c77bd",
"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": "aa690d37-6ede-0c71-c3e3-b8e04ca22e2f_content",
"type": "Stream",
"floatType": "none"
}
}
}
],
"id": "0419f24b-825a-3a09-1a1d-0c6813d17e48_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "fa748243-2b1c-cdb8-20f4-9fc47da65361",
"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": "7d5b172c-0114-79fe-16f4-402af4e0fccd",
"type": "Panel",
"info": {
"id": "",
"field": "",
"label": "数据源",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "数据源"
}
},
"styles": {
"paddingTop": "",
"paddingBottom": "",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "82198eac-c929-75de-1445-f28b705038b7",
"type": "Datasource",
"info": {
"id": "",
"field": "datasource",
"label": "数据源",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"forceStatic": false,
"defaultValueType": "simple"
}
},
"datasource": {
"type": "local",
"data": [
{
"value": "local",
"label": "本地"
}
],
"defaultValue": "local"
},
"styles": {
"marginTop": 0,
"marginBottom": 0,
"marginLeft": 0,
"marginRight": 0
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"events": {
"eventList": []
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
}
}
],
"id": "7d5b172c-0114-79fe-16f4-402af4e0fccd_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "8c629c15-120f-03a0-5772-550e30bd644a",
"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": "051e475e-60d2-4b11-54e4-13f752a44fcc",
"type": "Panel",
"info": {
"id": "",
"field": "config",
"label": "配置信息",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"open": true,
"title": "数据源配置"
}
},
"styles": {
"paddingTop": "",
"paddingBottom": "",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "27e5d3a5-b0d5-9d12-bbae-5cc0b169136b",
"type": "Layer",
"info": {
"id": "",
"field": "props",
"label": "Props",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true
}
},
"styles": {
"paddingTop": "",
"paddingBottom": "",
"paddingLeft": "",
"paddingRight": ""
},
"layout": {
"horizontal": "left",
"vertical": "top"
},
"hooks": {
"hookList": []
},
"watchers": {
"watchers": []
},
"parts": {
"content": {
"bricks": [
{
"id": "68029322-306c-795e-7ea0-3ef825e829b1",
"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": "16226d01-2189-e6b2-05bf-f3f2205a8f5a",
"type": "Switch",
"info": {
"id": "",
"field": "forceStatic",
"label": "显示静态数据",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"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": "68029322-306c-795e-7ea0-3ef825e829b1_content",
"type": "Stream",
"floatType": "none"
}
}
},
{
"id": "05cbb4d0-1594-7844-527d-3d0133257ccf",
"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": "b1111cd8-37f9-224b-69b6-b1b34033a03a",
"type": "Select",
"info": {
"id": "",
"field": "defaultValueType",
"label": "下拉选择",
"expandProps": {
"props": {},
"styles": {}
}
},
"config": {
"props": {
"className": "",
"showBrick": true,
"disabled": false,
"clearable": false,
"readonly": false,
"placeholder": "",