"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "带描述的多选框"
 * description: "使用 `<Checkbox.Group>` 渲染 `<Checkbox>` 分组,定制Checkbox的children添加描述"
 */
var react_1 = __importStar(require("react"));
var console_components_1 = require("@alicloud/console-components");
var List = [
    {
        label: '文本信息',
        value: 'A',
    },
    {
        label: '文本信息',
        value: 'B',
    },
    {
        label: '文本信息',
        value: 'C',
        disabled: true,
    },
];
var itemStyle = {
    marginLeft: '24px',
    color: '#808080',
    display: 'inline-block',
    lineHeight: '16px',
};
exports.default = (function () {
    var _a = (0, react_1.useState)([]), checkedList = _a[0], setCheckedList = _a[1];
    return (react_1.default.createElement(console_components_1.Checkbox.Group, { value: checkedList, direction: "ver", onChange: setCheckedList }, List.map(function (item) { return (react_1.default.createElement(console_components_1.Checkbox, { value: item.value, disabled: item.disabled },
        item.label,
        react_1.default.createElement("br", null),
        react_1.default.createElement("span", { style: itemStyle }, "\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848\uFF0C\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848"))); })));
});
