"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: "通过设置onOk,onCancel属性，控制底部按钮的显示与隐藏"
 */
var react_1 = __importStar(require("react"));
var console_components_1 = require("@alicloud/console-components");
var console_components_slide_panel_1 = __importDefault(require("@alicloud/console-components-slide-panel"));
var containerStyle = {
    height: '128px',
    borderRadius: '4px',
    lineHeight: '128px',
    background: '#f6f6f6',
    textAlign: 'center',
};
exports.default = (function () {
    var _a = (0, react_1.useState)(false), active = _a[0], setActive = _a[1];
    return (react_1.default.createElement(react_1.default.Fragment, null,
        react_1.default.createElement(console_components_1.Button, { onClick: function () {
                setActive(true);
            } }, "open"),
        react_1.default.createElement(console_components_slide_panel_1.default, { placement: "right", title: "\u6807\u9898 Title", isShowing: active, width: "medium", onOk: function () { }, onCancel: function () { }, cancelText: "\u57FA\u7840\u6309\u94AE", okText: "\u57FA\u7840\u6309\u94AE", onVisibleChange: function (v) {
                setActive(v);
            }, onClose: function () {
                setActive(false);
            } },
            react_1.default.createElement("div", { style: containerStyle }, "Content Placehoder"))));
});
