{
    "name": "gov-button",
    "label": "按钮组件",
    "description": "按钮组件",
    "codeSnap": "<gov-button\n    button-size=\"small\"\n    button-color=\"default\"\n    button-text=\"小按钮\">\n</gov-button>",
    "groups": "layout",
    "demoCode": {
        "s": " <gov-button\n        button-size=\"large\"\n        button-color=\"default\"\n        button-text=\"带icon的按钮\"\n        button-icon=\"../../../../src/calendar/images/arrow-right.png\"\n        button-disabled=\"{{false}}\">\n    </gov-button>\n    自定义样式的按钮：\n    <gov-button\n        button-size=\"large\"\n        button-color=\"default\"\n        button-text=\"自定义样式的按钮\"\n        gov-button=\"textColor\"\n        bind:click=\"clickFn\"\n        button-disabled=\"{{false}}\">\n    </gov-button>",
        "js": "Page({\n    clickFn() {\n        swan.showToast({\n            title: '点击按钮'\n        });\n    }\n});",
        "css": ".textColor {\n    color: #306e1d !important;\n    width: 300px !important;\n    font-size: 20px !important;\n    background: #a4f66a !important;\n}"
    },
    "fragement": "",
    "properties": {
        "attributes": [
            {
                "name": "buttonSize",
                "type": "String",
                "description": "按钮大小类型，有大、中、小，分别为large、middle、small",
                "required": "否",
                "default": ""
            },
            {
                "name": "buttonColor",
                "type": "String",
                "description": "按钮颜色，有主、辅、底部蓝色按钮，分别为primary、plain、default",
                "required": "否",
                "default": ""
            },
            {
                "name": "buttonDisabled",
                "type": "Boolean",
                "description": "按钮是否禁用",
                "required": "否",
                "default": "false"
            },
            {
                "name": "buttonIcon",
                "type": "String",
                "description": "按钮是否需要icon，如果需要，传icon路径",
                "required": "否",
                "default": ""
            },
            {
                "name": "buttonText",
                "type": "String",
                "description": "按钮文字",
                "required": "否",
                "default": ""
            }
        ],
        "events": [
            {
                "name": "click",
                "type": "Event",
                "description": "点击时触发",
                "required": "否",
                "default": "-"
            }
        ],
        "externalClasses": [
            {
                "name": "gov-button",
                "type": "",
                "description": "按钮的扩展样式类，可通过此class改变按钮的样式",
                "required": "否",
                "default": "-"
            },
            {
                "name": "gov-button-disabled",
                "type": "",
                "description": "按钮的禁用状态扩展样式类，可通过此class改变按钮的禁用状态的样式",
                "required": "否",
                "default": "-"
            },
            {
                "name": "gov-button-icon",
                "type": "",
                "description": "带有icon按钮的扩展样式类，可通过此class改变带有icon按钮的样式",
                "required": "否",
                "default": "-"
            }
        ]
    }
}