"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "基础形态交互"
 * description: "设置disabled属性，禁用组件；设置state属性，设置组件状态。"
 */
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var FormItem = console_components_1.Form.Item;
var onChange = function (value) {
    console.log(value);
};
var dataSource = [
    {
        value: '1',
        label: '默认项',
    },
    {
        value: '2',
        label: '聚焦项',
    },
    {
        value: '3',
        label: '选中项',
    },
    {
        value: '4',
        label: '默认项',
    },
    {
        value: '5',
        label: '失效项',
        disabled: true,
    },
];
var h4Style = {
    fontSize: '12px',
    marginTop: '24px',
};
exports.default = (function () {
    return (react_1.default.createElement("div", { style: { display: 'flex', flexWrap: 'wrap' } },
        react_1.default.createElement("div", null,
            react_1.default.createElement("h4", { style: h4Style }, "\u9ED8\u8BA4"),
            react_1.default.createElement(console_components_1.Select, { placeholder: "\u8BF7\u9009\u62E9", defaultValue: "3", onChange: onChange, size: "medium", dataSource: dataSource, style: { width: '280px' } })),
        react_1.default.createElement("div", null,
            react_1.default.createElement("h4", { style: h4Style }, "\u7981\u7528"),
            react_1.default.createElement(console_components_1.Select, { placeholder: "\u8BF7\u9009\u62E9", onChange: onChange, size: "medium", disabled: true, dataSource: dataSource, style: { width: '280px' } })),
        react_1.default.createElement("div", null,
            react_1.default.createElement("h4", { style: h4Style }, "\u9519\u8BEF"),
            react_1.default.createElement(console_components_1.Form, { labelAlign: "inset", inline: true },
                react_1.default.createElement(FormItem, { validateState: "error", help: "\u9519\u8BEF\u4FE1\u606F\u63D0\u793A\u6587\u5B57\uFF0C\u4E0A\u95F4\u8DDD4px" },
                    react_1.default.createElement(console_components_1.Select, { placeholder: "\u5185\u5BB9\u51FA\u9519", state: 'error', dataSource: dataSource, style: { marginTop: 20, width: 280 } }))))));
});
