'use strict';

require('../../../utils/index.js');
require('../../index.js');
var runtime = require('../../../utils/props/runtime.js');
var iconBase = require('../../icon-base/src/icon-base.js');

"use strict";
const operateIconProps = runtime.buildProps({
  /**
   * @description 是否显示dropdown
   */
  showDropdown: {
    type: Boolean,
    default: false
  },
  /**
   * @description  icon列表
   */
  list: {
    type: runtime.definePropType(Array)
  },
  /**
   * @description 是否禁用
   */
  disabled: {
    type: Boolean,
    default: false
  },
  /**
   * @description 显示多少个icon,其余在弹窗中显示
   */
  showIconLimit: {
    type: Number,
    default: 3
  },
  /**
   * @description 点击按钮传递的数据
   */
  data: {
    type: runtime.definePropType(void 0)
  },
  /**
   * @description 默认icon（edit和delete）的样式
   */
  iconType: {
    type: String,
    values: iconBase.iconTypes
  },
  /**
   * @description 触发下拉的行为
   */
  trigger: {
    type: runtime.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: runtime.definePropType(Object),
    default: () => ({})
  }
});
const operateIconEmits = {
  edit: (v, data) => v || data,
  // 点击编辑
  delete: (v, data) => v || data,
  // 点击删除
  onDropdownOpenChange: (open) => open || true
  // 下拉菜单的open
};

exports.operateIconEmits = operateIconEmits;
exports.operateIconProps = operateIconProps;
//# sourceMappingURL=operate-icon.js.map
