"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.dataSource = void 0;
/**
 * title: "带多选标签形态交互"
 * description: "设置mode值为multiple，选择器为带多选标签形态。"
 */
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var onChange = function (value) {
    console.log(value);
};
exports.dataSource = [
    {
        value: '1',
        label: '默认项',
    },
    {
        value: '2',
        label: '聚焦项',
    },
    {
        value: '3',
        label: '选中项',
    },
    {
        value: '4',
        label: '选中项',
    },
    {
        value: '5',
        label: '默认项',
    },
    {
        value: '6',
        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", { style: { marginRight: '78px' } },
            react_1.default.createElement("h4", { style: h4Style }, "\u9ED8\u8BA4"),
            react_1.default.createElement(console_components_1.Select, { placeholder: "\u8BF7\u9009\u62E9", onChange: onChange, defaultValue: ['3', '4'], dataSource: exports.dataSource, style: {
                    width: 280,
                }, mode: "multiple" })),
        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, defaultValue: ['3', '4'], dataSource: exports.dataSource, style: {
                    width: 280,
                }, mode: "multiple", disabled: true }))));
});
