{
    "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
    "data": {
        "properties": {
            "label": {
                "type": "string",
                "default": "上传文件",
                "title": "标题",
                "x-category": "基础属性",
                "x-index": 10
            },
            "labelVisible": {
                "type": "boolean",
                "default": true,
                "title": "显示标题",
                "x-category": "基础属性",
                "x-index": 20
            },
            "single": {
                "type": "boolean",
                "default": true,
                "title": "单个文件上传模式",
                "x-category": "基础属性",
                "x-index": 30
            },
            "maxUploadCount": {
                "type": "number",
                "default": 9,
                "title": "上传文件最大数量",
                "x-category": "基础属性",
                "x-index": 40
            },
            "downloadVisible": {
                "type": "boolean",
                "default": true,
                "title": "显示下载按钮",
                "x-category": "基础属性",
                "x-index": 50
            },
            "deleteVisible": {
                "type": "boolean",
                "default": true,
                "title": "显示删除按钮",
                "x-category": "基础属性",
                "x-index": 60
            },
            "defaultValue": {
                "x-category": "基础属性",
                "title": "初始默认值",
                "type": "array",
                "items": {
                    "type": "string"
                },
                "x-index": 70
            },
            "maxSize": {
                "type": "number",
                "default": 10,
                "maximum": 500,
                "title": "单个文件最大限制(M)",
                "description": "最大支持500M",
                "x-category": "高级属性",
                "x-index": 80
            },
            "layout": {
                "title": "布局方式",
                "type": "string",
                "default": "horizontal",
                "x-category": "高级属性",
                "enum": [
                    {
                        "label": "水平",
                        "value": "horizontal"
                    },
                    {
                        "label": "垂直",
                        "value": "vertical"
                    }
                ],
                "x-index": 90
            },
            "acceptTypes": {
                "type": "array",
                "title": "文件类型",
                "x-platforms": ["WEB"],
                "default": ["*"],
                "x-category": "高级属性",
                "x-helper-text": "绑定表达式示例：['.pdf','.xlsx','.zip']，该属性暂不支持小程序",
                "x-index": 100,
                "items": {
                    "type": "string",
                    "enum": [
                        {
                            "label": "全部",
                            "value": "*"
                        },
                        {
                            "label": "png",
                            "value": "image/png"
                        },
                        {
                            "label": "jpeg",
                            "value": "image/jpeg"
                        },
                        {
                            "label": "pdf",
                            "value": "application/pdf"
                        },
                        {
                            "label": "doc",
                            "value": "application/msword"
                        },
                        {
                            "label": "xls",
                            "value": "application/vnd.ms-excel"
                        },
                        {
                            "label": "zip",
                            "value": "application/zip"
                        }
                    ]
                }
            },
            "requiredFlag": {
                "type": "boolean",
                "default": false,
                "title": "是否必填",
                "x-category": "高级属性",
                "x-index": 110
            },
            "disabled": {
                "type": "boolean",
                "default": false,
                "title": "是否禁用",
                "x-category": "高级属性",
                "x-index": 120
            }
        }
    },
    "events": [
        {
            "name": "success",
            "title": "上传成功"
        },
        {
            "name": "error",
            "title": "上传失败"
        },
        {
            "name": "change",
            "title": "值变化"
        }
    ],
    "meta": {
        "title": "上传文件",
        "description": "上传文件组件",
        "category": "表单",
        "icon": "../../icons/UploaderFile.svg",
        "visible": []
    }
}
