import '../../../utils/index.mjs';
import '../../index.mjs';
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
import { iconTypes } from '../../icon-base/src/icon-base.mjs';

"use strict";
const operateIconProps = buildProps({
  /**
   * @description 是否显示dropdown
   */
  showDropdown: {
    type: Boolean,
    default: false
  },
  /**
   * @description  icon列表
   */
  list: {
    type: definePropType(Array)
  },
  /**
   * @description 是否禁用
   */
  disabled: {
    type: Boolean,
    default: false
  },
  /**
   * @description 显示多少个icon,其余在弹窗中显示
   */
  showIconLimit: {
    type: Number,
    default: 3
  },
  /**
   * @description 点击按钮传递的数据
   */
  data: {
    type: definePropType(void 0)
  },
  /**
   * @description 默认icon（edit和delete）的样式
   */
  iconType: {
    type: String,
    values: iconTypes
  },
  /**
   * @description 触发下拉的行为
   */
  trigger: {
    type: definePropType(Object),
    default: () => ["click"]
  },
  /**
   * @description 弹窗class类名
   */
  overlayClassName: {
    type: String
  },
  /**
   * @description 弹窗class类名
   */
  showDropdownItemIcon: {
    type: Boolean,
    default: false
  },
  dropdownOpen: {
    type: Boolean,
    default: false
  },
  /**
   * @description 设置下拉菜单父级位置
   */
  getPopupContainer: {
    type: Function,
    default: () => document.body
  },
  tooltipProps: {
    type: definePropType(Object),
    default: () => ({})
  }
});
const operateIconEmits = {
  edit: (v, data) => v || data,
  // 点击编辑
  delete: (v, data) => v || data,
  // 点击删除
  onDropdownOpenChange: (open) => open || true
  // 下拉菜单的open
};

export { operateIconEmits, operateIconProps };
//# sourceMappingURL=operate-icon.mjs.map
