{
    "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
    "data": {
        "properties": {
            "bindMetadata": {
                "title": "绑定数据源",
                "type": "object",
                "x-component": "schema-selector",
                "x-component-props": {
                    "showSystemField": false
                },
                "x-props": {
                    "data-hidebind": true,
                    "itemClassName": "ds-bind-form-item"
                },
                "properties": {
                    "datasource": {
                        "title": "数据源",
                        "type": "object",
                        "properties": {}
                    },
                    "enabledFieldNames": {
                        "title": "自定义字段",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {}
                        }
                    },
                    "disabledFieldNames": {
                        "title": "不展示字段",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {}
                        }
                    }
                },
                "x-index": 1
            },
            "buttons": {
                "type": "array",
                "title": "功能按钮",
                "items": {
                    "type": "object",
                    "title": "按钮",
                    "properties": {
                        "text": {
                            "title": "按钮文字",
                            "default": "按钮标题",
                            "type": "string"
                        },
                        "tooltip": {
                            "title": "提示文字",
                            "default": "",
                            "type": "string"
                        },
                        "htmlType": {
                            "type": "string",
                            "title": "按钮类型",
                            "default": "button",
                            "enum": [
                                {
                                    "label": "button",
                                    "value": "button"
                                },
                                {
                                    "label": "submit",
                                    "value": "submit"
                                },
                                {
                                    "label": "reset",
                                    "value": "reset"
                                }
                            ]
                        },
                        "type": {
                            "title": "样式类型",
                            "type": "string",
                            "default": "primary",
                            "enum": [
                                {
                                    "label": "primary(主要)",
                                    "value": "primary"
                                },
                                {
                                    "label": "weak(白色)",
                                    "value": "weak"
                                },
                                {
                                    "label": "pay(支付)",
                                    "value": "pay"
                                },
                                {
                                    "label": "error(错误)",
                                    "value": "error"
                                },
                                {
                                    "label": "text(文本)",
                                    "value": "text"
                                },
                                {
                                    "label": "link(连接)",
                                    "value": "link"
                                }
                            ]
                        },
                        "action": {
                            "type": "string",
                            "title": "按钮动作",
                            "default": "custom",
                            "enum": [
                                {
                                    "label": "提交",
                                    "value": "submit"
                                },
                                {
                                    "label": "取消",
                                    "value": "cancel"
                                },
                                {
                                    "label": "自定义",
                                    "value": "custom"
                                }
                            ]
                        },
                        "show": {
                            "type": "boolean",
                            "default": true,
                            "title": "是否展示"
                        },
                        "loading": {
                            "title": "加载中",
                            "type": "boolean",
                            "default": false
                        },
                        "disabled": {
                            "type": "boolean",
                            "default": false,
                            "title": "是否禁用"
                        }
                    },
                    "default": {
                        "text": "按钮标题",
                        "tooltip": "",
                        "htmlType": "button",
                        "type": "primary",
                        "action": "custom",
                        "show": true,
                        "loading": false,
                        "disabled": false
                    },
                    "x-image": "'https://imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Button.svg'",
                    "x-display": "this.text ? this.text : '按钮标题'"
                },
                "x-category": "基础属性",
                "x-index": 2,
                "default": [
                    {
                        "text": "提交",
                        "tooltip": "",
                        "htmlType": "button",
                        "type": "primary",
                        "action": "submit",
                        "show": true,
                        "loading": false,
                        "disabled": false
                    },
                    {
                        "text": "取消",
                        "tooltip": "",
                        "htmlType": "button",
                        "type": "weak",
                        "action": "cancel",
                        "show": true,
                        "loading": false,
                        "disabled": false
                    }
                ],
                "x-component": "list"
            }
        }
    },
    "events": [],
    "platforms": ["web"],
    "meta": {
        "title": "新增组件",
        "description": "",
        "icon": "https://imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ModelCreate.svg",
        "category": "模型组件",
        "categoryOrder": 2000,
        "componentOrder": 2,
        "selectableBlock": {
            "events": [
                {
                    "name": "tap",
                    "title": "点击"
                }
            ]
        }
    }
}
