"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: "通过direction属性设置排列方向。"
 */
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',
    },
    {
        label: '文字信息',
        value: 'D',
    },
];
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, { dataSource: List, value: checkedList, direction: "hoz", onChange: function (value) { return setCheckedList("".concat(value)); } })));
});
