"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;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "树状表格"
 * description: ""
 */
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var console_components_actions_1 = __importStar(require("@alicloud/console-components-actions"));
var data = [
    {
        id: 1,
        name: '实例名称',
        status: '成功',
        type: '专有网络',
        children: [
            {
                id: 11,
                name: '实例名称',
                status: '成功',
                type: '专有网络',
            },
            {
                id: 12,
                name: '实例名称',
                status: '成功',
                type: '专有网络',
                children: [
                    {
                        id: 121,
                        name: '实例名称',
                        status: '失败',
                        type: '专有网络',
                    },
                ],
            },
            {
                id: 13,
                name: '实例名称',
                status: '失败',
                type: '专有网络',
                children: [
                    {
                        id: 131,
                        name: '实例名称',
                        status: '失败',
                        type: '专有网络',
                        children: [
                            {
                                id: 1311,
                                name: '实例名称',
                                status: '失败',
                                type: '专有网络',
                            },
                            {
                                id: 1312,
                                name: '实例名称',
                                status: '失败',
                                type: '专有网络',
                            },
                        ],
                    },
                ],
            },
        ],
    },
    {
        id: 2,
        name: '实例名称',
        status: '失败',
        type: '专有网络',
    },
];
var render = function () {
    return (react_1.default.createElement(console_components_actions_1.default, null,
        react_1.default.createElement(console_components_actions_1.LinkButton, { onClick: function () { } }, "\u64CD\u4F5C\u9879"),
        react_1.default.createElement(console_components_actions_1.LinkButton, { onClick: function () { } }, "\u64CD\u4F5C\u9879"),
        react_1.default.createElement(console_components_actions_1.LinkButton, { onClick: function () { } }, "\u64CD\u4F5C\u9879"),
        react_1.default.createElement(console_components_actions_1.LinkButton, { onClick: function () { } }, "\u64CD\u4F5C\u9879")));
};
exports.default = (function () {
    return (react_1.default.createElement(console_components_1.Table, { dataSource: data, primaryKey: "id", isTree: true },
        react_1.default.createElement(console_components_1.Table.Column, { title: "\u5B9E\u4F8BID/\u540D\u79F0", dataIndex: "name", width: 200 }),
        react_1.default.createElement(console_components_1.Table.Column, { title: "\u72B6\u6001", dataIndex: "status" }),
        react_1.default.createElement(console_components_1.Table.Column, { title: "\u7F51\u7EDC\u7C7B\u578B", dataIndex: "type" }),
        react_1.default.createElement(console_components_1.Table.Column, { title: "\u64CD\u4F5C", cell: render, width: 200 })));
});
