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);
};
import React from 'react';
import { Icon, Balloon, Radio, Form, Input, Checkbox, Select } from '@alicloud/console-components';
var FormItem = Form.Item;
var formItemLayout = {
    labelCol: {
        fixedSpan: 10
    },
    wrapperCol: {
        span: 14
    }
};
export var dataSource = [
    {
        value: '10001',
        label: '选项A',
    },
    {
        value: '10002',
        label: '选项B',
    },
];
export default (function () {
    var handleSubmit = function (values) {
        console.log('Get form value:', values);
    };
    var renderLable = function (text) { return (React.createElement("span", null,
        text,
        React.createElement(Balloon, { type: "primary", trigger: React.createElement(Icon, { style: { marginLeft: 4, display: 'inline-flex' }, type: "help", size: "xs" }), closable: false }, "blablablablablablablabla"))); };
    return React.createElement(Form, __assign({ style: { width: '50%' } }, formItemLayout, { labelAlign: "top" }),
        React.createElement(FormItem, { label: renderLable('输入框') },
            React.createElement(Input, { name: "id", placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })),
        React.createElement(FormItem, { label: renderLable('必选项'), required: true, requiredMessage: "\u8BF7\u8F93\u5165\u5FC5\u9009\u9879" },
            React.createElement(Select, { name: 'required_data', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: dataSource, style: { width: '100%' } })),
        React.createElement(FormItem, { label: "\u591A\u4E2A\u4E0B\u62C9\u6846\u7EC4\u5408" },
            React.createElement("div", { style: { display: 'flex', gap: '8px' } },
                React.createElement(Select, { name: 'province', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: dataSource, style: { width: '33%' } }),
                React.createElement(Select, { name: 'city', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: dataSource, style: { width: '33%' } }),
                React.createElement(Select, { name: 'county', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: dataSource, style: { width: '33%' } })),
            React.createElement(Select, { name: 'address', placeholder: "\u8BF7\u9009\u62E9", size: "medium", dataSource: dataSource, style: { width: '100%', marginTop: '8px' } })),
        React.createElement(FormItem, { label: "\u5355\u9009\u9009\u9879" },
            React.createElement(Radio.Group, { name: "radio", direction: "ver" },
                React.createElement(Radio, { value: "apple" }, "\u9009\u98791"),
                React.createElement(Radio, { value: "banana" }, "\u9009\u98792"),
                React.createElement(Radio, { disabled: true, value: "cherry" }, "\u9009\u98793"))),
        React.createElement(FormItem, { label: "\u591A\u9009\u9009\u9879" },
            React.createElement(Checkbox.Group, { name: "checkbox", direction: "ver" },
                React.createElement(Checkbox, { value: "a" }, "\u9009\u98791 "),
                React.createElement(Checkbox, { value: "b" }, "\u9009\u98792"),
                React.createElement(Checkbox, { disabled: true, value: "c" }, "\u9009\u98793"))),
        React.createElement(FormItem, { label: "\u591A\u9009\u9009\u9879\u6709\u5907\u6CE8" },
            React.createElement(Checkbox.Group, { name: "checkboxs", direction: "ver" },
                React.createElement(Checkbox, { value: "a" },
                    "\u9009\u98791",
                    React.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.createElement(Checkbox, { value: "b" },
                    "\u9009\u98792",
                    React.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.createElement(FormItem, { label: "", style: { marginTop: 24 } },
            React.createElement(Form.Submit, { onClick: handleSubmit, validate: true, type: "primary" }, "\u63D0\u4EA4"),
            React.createElement(Form.Reset, { style: { marginLeft: 8 } }, "\u53D6\u6D88")));
});
