"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.dataSource = void 0;
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var FormItem = console_components_1.Form.Item;
var formItemLayout = {
    labelCol: {
        fixedSpan: 10
    },
    wrapperCol: {
        span: 14
    }
};
exports.dataSource = [
    {
        value: '10001',
        label: '选项A',
    },
    {
        value: '10002',
        label: '选项B',
    },
];
exports.default = (function () {
    var handleSubmit = function (values) {
        console.log('Get form value:', values);
    };
    var renderLable = function (text) { return (react_1.default.createElement("span", null,
        text,
        react_1.default.createElement(console_components_1.Balloon, { type: "primary", trigger: react_1.default.createElement(console_components_1.Icon, { style: { marginLeft: 4, display: 'inline-flex' }, type: "help", size: "xs" }), closable: false }, "blablablablablablablabla"))); };
    return react_1.default.createElement(console_components_1.Form, __assign({ style: { width: '50%' } }, formItemLayout, { labelAlign: "top" }),
        react_1.default.createElement(FormItem, { label: renderLable('输入框') },
            react_1.default.createElement(console_components_1.Input, { name: "id", placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })),
        react_1.default.createElement(FormItem, { label: renderLable('必选项'), required: true, requiredMessage: "\u8BF7\u8F93\u5165\u5FC5\u9009\u9879" },
            react_1.default.createElement(console_components_1.Select, { name: 'required_data', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: exports.dataSource, style: { width: '100%' } })),
        react_1.default.createElement(FormItem, { label: "\u591A\u4E2A\u4E0B\u62C9\u6846\u7EC4\u5408" },
            react_1.default.createElement("div", { style: { display: 'flex', gap: '8px' } },
                react_1.default.createElement(console_components_1.Select, { name: 'province', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: exports.dataSource, style: { width: '33%' } }),
                react_1.default.createElement(console_components_1.Select, { name: 'city', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: exports.dataSource, style: { width: '33%' } }),
                react_1.default.createElement(console_components_1.Select, { name: 'county', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: exports.dataSource, style: { width: '33%' } })),
            react_1.default.createElement(console_components_1.Select, { name: 'address', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: exports.dataSource, style: { width: '100%', marginTop: '8px' } })),
        react_1.default.createElement(FormItem, { label: "\u5355\u9009\u9009\u9879" },
            react_1.default.createElement(console_components_1.Radio.Group, { name: "radio", direction: "ver" },
                react_1.default.createElement(console_components_1.Radio, { value: "apple" }, "\u9009\u98791"),
                react_1.default.createElement(console_components_1.Radio, { value: "banana" }, "\u9009\u98792"),
                react_1.default.createElement(console_components_1.Radio, { disabled: true, value: "cherry" }, "\u9009\u98793"))),
        react_1.default.createElement(FormItem, { label: "\u591A\u9009\u9009\u9879" },
            react_1.default.createElement(console_components_1.Checkbox.Group, { name: "checkbox", direction: "ver" },
                react_1.default.createElement(console_components_1.Checkbox, { value: "a" }, "\u9009\u98791 "),
                react_1.default.createElement(console_components_1.Checkbox, { value: "b" }, "\u9009\u98792"),
                react_1.default.createElement(console_components_1.Checkbox, { disabled: true, value: "c" }, "\u9009\u98793"))),
        react_1.default.createElement(FormItem, { label: "\u591A\u9009\u9009\u9879\u6709\u5907\u6CE8" },
            react_1.default.createElement(console_components_1.Checkbox.Group, { name: "checkboxs", direction: "ver" },
                react_1.default.createElement(console_components_1.Checkbox, { value: "a" },
                    "\u9009\u98791",
                    react_1.default.createElement("p", { style: { margin: '0 0 4px 24px', color: '#808080', fontSize: '12px', height: 0 } }, "\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848\uFF0C#808080\uFF0C12px")),
                react_1.default.createElement(console_components_1.Checkbox, { value: "b" },
                    "\u9009\u98792",
                    react_1.default.createElement("p", { style: { margin: '0 0 4px 24px', color: '#808080', fontSize: '12px', height: 0 } }, "\u5BF9\u4E8E\u9009\u9879\u7684\u63CF\u8FF0/\u89E3\u91CA\u6587\u6848\uFF0C#808080\uFF0C12px")))),
        react_1.default.createElement(FormItem, { label: "", style: { marginTop: 24 } },
            react_1.default.createElement(console_components_1.Form.Submit, { onClick: handleSubmit, validate: true, type: "primary" }, "\u63D0\u4EA4"),
            react_1.default.createElement(console_components_1.Form.Reset, { style: { marginLeft: 8 } }, "\u53D6\u6D88")));
});
