/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

const DropdownProps = {
  direction: {
    type: String,
    default: "right",
    validator(val) {
      if (!val) return true;
      return ["left", "right"].includes(val);
    }
  },
  disabled: Boolean,
  hideAfterItemClick: {
    type: Boolean,
    default: true
  },
  maxColumnWidth: {
    type: [String, Number],
    default: 100
  },
  maxHeight: {
    type: Number,
    default: 300
  },
  minColumnWidth: {
    type: [String, Number],
    default: 10
  },
  options: {
    type: Array,
    default: () => []
  },
  placement: {
    type: String,
    default: "bottom-left",
    validator(val) {
      if (!val) return true;
      return ["top", "left", "right", "bottom", "top-left", "top-right", "bottom-left", "bottom-right", "left-top", "left-bottom", "right-top", "right-bottom"].includes(val);
    }
  },
  popupProps: {
    type: Object
  },
  trigger: {
    type: String,
    default: "hover",
    validator(val) {
      if (!val) return true;
      return ["hover", "click", "focus", "context-menu"].includes(val);
    }
  },
  onClick: Function
};
const DropdownItemProps = {
  active: Boolean,
  content: {
    type: [String, Function],
    default: ""
  },
  disabled: Boolean,
  divider: Boolean,
  prefixIcon: {
    type: Function
  },
  theme: {
    type: String,
    default: "default",
    validator(val) {
      if (!val) return true;
      return ["default", "success", "warning", "error"].includes(val);
    }
  },
  value: {
    type: [String, Number, Object]
  },
  onClick: Function
};
var props = {
  DropdownProps,
  DropdownItemProps
};

export { DropdownItemProps, DropdownProps, props as default };
//# sourceMappingURL=props.js.map
