import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
import snippets from './snippets';

const ButtonGroupPreviewMeta: IPublicTypeComponentMetadata = {
    "componentName": "ButtonGroupPreview",
    "title": "ButtonGroupPreview",
    category: "通用",
    "docUrl": "",
    "screenshot": "",
    "devMode": "proCode",
    "npm": {
        package: "@pisell/materials",
        "version": "0.1.0",
        "exportName": "ButtonGroupPreview",
        "main": "src/index.tsx",
        "destructuring": true,
        "subName": ""
    },
    "configure": {
        props: [
            {
                "title": {
                    "label": {
                        "type": "i18n",
                        "en-US": "buttonGroupList",
                        "zh-CN": "按钮数据"
                    }
                },
                "name": "buttonGroupList",
                "setter": ["JsonSetter", "VariableSetter"],
            },
            {
                "title": {
                    "label": {
                        "type": "i18n",
                        "en-US": "buttonConfig",
                        "zh-CN": "修改按钮数据"
                    }
                },
                "name": "buttonConfig",
                "setter": ["JsonSetter", "VariableSetter"],
            },
        ]
    },
    "supports": {
        "style": true,
        "events": [{
            "name": "onChange"
        }]
    },
}
export default {
    ...ButtonGroupPreviewMeta,
    snippets
}