'use strict';

require('../../../utils/index.js');
require('../../new-drawer/index.js');
var runtime = require('../../../utils/props/runtime.js');
var drawer = require('../../new-drawer/src/drawer.js');

"use strict";
const modalType = ["confirm", "operate"];
const newModalProps = runtime.buildProps({
  /**
   * @description 弹窗是否可见
   */
  open: {
    type: Boolean,
    default: false
  },
  /**
   * @description 标题
   */
  title: {
    type: String,
    default: "\u63D0\u793A"
  },
  /**
   * @description  确认/知道了按钮loading
   */
  confirmLoading: {
    type: Boolean,
    default: false
  },
  /**
   * @description 取消按钮的配置信息
   */
  cancelButtonProps: {
    type: runtime.definePropType(Object)
  },
  /**
   * @description 确认按钮的配置信息
   */
  okButtonProps: {
    type: runtime.definePropType(Object)
  },
  /**
   * @description 弹窗类型 确认/操作框
   */
  type: {
    type: String,
    values: modalType,
    default: "operate"
  },
  /**
   * @description 弹窗外层容器的类名
   */
  wrapClassName: {
    type: String,
    default: ""
  },
  /**
   * @description 滚动是否显示底部阴影
   */
  isShowFooterShadow: {
    type: Boolean,
    default: true
  },
  /**
   * @description 决定底部阴影的方向(外部和内部）,默认由内容区域来决定
   */
  footerShadowPlacement: {
    type: String,
    values: drawer.footerShadowPlacement,
    default: "inner"
  },
  /**
   * @description 确认按钮文字
   */
  confirmText: {
    type: String,
    default: ""
  },
  /**
   * @description 取消按钮文字
   */
  cancelText: {
    type: String,
    default: "\u53D6\u6D88"
  },
  /**
   * @description 显示底部
   */
  showFooter: {
    type: Boolean,
    default: true
  },
  /**
   * @description 是否使用esc关闭
   */
  keyboard: {
    type: Boolean,
    default: true
  }
});
const newModalEmits = {
  /**
   * @description 点击取消时触发
   */
  cancel: () => true,
  /**
   * @description 点击确认时触发
   */
  ok: () => true,
  "update:open": () => true
};

exports.modalType = modalType;
exports.newModalEmits = newModalEmits;
exports.newModalProps = newModalProps;
//# sourceMappingURL=modal.js.map
