{
    "name": "gov-person-card",
    "label": "个人信息钮组件",
    "description": "个人信息组件",
    "codeSnap": "<gov-person-card\n    name=\"李思\"\n    info-list=\"{{personCard}}\"\n/>",
    "groups": "layout",
    "demoCode": {
        "s": "<gov-person-card\n        name=\"李思\"\n        type=\"normal\"\n        info-list=\"{{personCard}}\"\n        type=\"{{cardType}}\"\n    />\n    <view class=\"preview-caption\">卡片类型（big）</view>\n    <gov-person-card\n        name=\"李思\"\n        type=\"big\"\n        info-list=\"{{personCard}}\"\n        type=\"{{cardType}}\"\n    />\n    <view class=\"preview-caption\">自定义样式</view>\n    <gov-person-card\n        name=\"李思\"\n        type=\"normal\"\n        gov-person-card=\"gov-person-card\"\n        gov-info-name=\"gov-info-name\"\n        gov-info-title=\"gov-info-title\"\n        gov-info-desc=\"gov-info-desc\"\n        info-list=\"{{personCard}}\"\n        type=\"{{cardType}}\"\n    />",
        "js": "Page({\n    data: {\n        imgSrc: 'http://img5.imgtn.bdimg.com/it/u=2281288140,3829534191&fm=26&gp=0.jpg',\n        personCard: [\n            {\n                title: '职位',\n                desc: '副教授'\n            },\n            {\n                title: '研究领域',\n                desc: '决策理论及应用，社会经济统计学'\n            }\n        ]\n    }\n});",
        "css": ".gov-person-card {\n    color: #666 !important;\n    width: 320px !important;\n    background:#cccc99 !important;\n    margin:0 auto !important;\n}\n.gov-info-name {\n    font-size: 20px !important;\n}\n.gov-info-title {\n    font-size: 14px !important;\n    color: #300 !important;\n}\n.gov-info-desc {\n    font-size: 14px !important;\n    color: #ffffcc !important;\n}"
    },
    "fragement": "",
    "properties": {
        "attributes": [
            {
                "name": "type",
                "type": "String",
                "description": "卡片类型，分为两种normal、big",
                "required": "否",
                "default": ""
            },
            {
                "name": "bgImg",
                "type": "String",
                "description": "卡片背景图片",
                "required": "否",
                "default": ""
            },
            {
                "name": "name",
                "type": "String",
                "description": "卡片的名称",
                "required": "是",
                "default": ""
            },
            {
                "name": "infoList",
                "type": "Array",
                "description": "卡片信息，最多可配置5条，超过不会显示",
                "required": "是",
                "default": []
            }
        ],
        "externalClasses": [
            {
                "name": "gov-person-card",
                "type": "",
                "description": "卡片的扩展样式类，可通过此class改变卡片的样式，如背景颜色，背景图的展现方式",
                "required": "否",
                "default": "-"
            },
            {
                "name": "gov-info-name",
                "type": "",
                "description": "卡片name的扩展样式类，可通过此class改变卡片name的的样式",
                "required": "否",
                "default": "-"
            },
            {
                "name": "gov-info-title",
                "type": "",
                "description": "卡片信息的左边的扩展样式类，可通过此class改变卡片信息的左边的样式",
                "required": "否",
                "default": "-"
            },
            {
                "name": "gov-info-desc",
                "type": "",
                "description": "卡片信息的右边的扩展样式类，可通过此class改变卡片信息的右边的样式",
                "required": "否",
                "default": "-"
            }
        ]
    }
}