"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: "在Radio中添加描述文案。"
 */
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',
    },
];
exports.default = (function () {
    var _a = (0, react_1.useState)(''), checkedList = _a[0], setCheckedList = _a[1];
    return (react_1.default.createElement("div", null,
        react_1.default.createElement("h5", null, "\u5355\u9009\u5408\u96C6\u6807\u9898"),
        react_1.default.createElement(console_components_1.Radio.Group, { value: checkedList, itemDirection: "ver", onChange: function (value) { return setCheckedList("".concat(value)); } }, List.map(function (item) { return (react_1.default.createElement(console_components_1.Radio, { value: item.value, style: { height: '40px' } },
            item.label,
            react_1.default.createElement("p", { style: {
                    margin: '0 0 0 24px',
                    color: '#808080',
                } }, "\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848\uFF0C\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848"))); }))));
});
