'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var index = require('../_util/vue-types/index.js');
var type = require('../_util/type.js');

function convertLegacyProps(type) {
  if (type === "danger")
    return { danger: true };
  return { type };
}
const buttonProps = () => ({
  prefixCls: String,
  type: String,
  htmlType: { type: String, default: "button" },
  shape: { type: String },
  size: {
    type: String
  },
  loading: {
    type: [Boolean, Object],
    default: () => false
  },
  disabled: { type: Boolean, default: void 0 },
  ghost: { type: Boolean, default: void 0 },
  block: { type: Boolean, default: void 0 },
  danger: { type: Boolean, default: void 0 },
  icon: index.default.any,
  href: String,
  target: String,
  title: String,
  onClick: type.eventType(),
  onMousedown: type.eventType()
});

exports.buttonProps = buttonProps;
exports.convertLegacyProps = convertLegacyProps;
exports.default = buttonProps;
//# sourceMappingURL=buttonTypes.js.map
