import '../../../utils/index.mjs';
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';

"use strict";
const checkableTagProps = buildProps({
  value: {
    type: definePropType(Array),
    default: () => []
  },
  options: {
    type: definePropType(Array),
    default: () => []
  },
  // 字段名
  fieldNames: {
    type: Object,
    default: () => ({
      label: "label",
      value: "value"
    })
  },
  // 是否启用添加
  enableAdd: {
    type: Boolean,
    default: true
  },
  // 最大可选标签数
  maxChecked: {
    type: Number,
    default: 0
  },
  // 是否自动选择新增标签
  addAutoSelect: {
    type: Boolean,
    default: true
  },
  placeholder: {
    type: String,
    default: "\u8BF7\u8F93\u5165"
  },
  disabled: {
    type: Boolean,
    default: false
  },
  // 删除规则（全部可删/全部不可删/除前N个外可删）
  deleteRule: {
    type: String,
    values: ["all", "none", "exceptFirstN"],
    default: "none"
  },
  // 当删除规则为exceptFirstN时，保留的标签数量
  exceptCount: {
    type: Number,
    default: 0
  },
  // 标签大小
  size: {
    type: String,
    values: ["small", "middle", "large"],
    default: "small"
  },
  addTagText: {
    type: String,
    default: "\u65B0\u589E"
  },
  inputWidth: {
    type: Number,
    default: 120
  },
  tagMaxWidth: {
    type: Number,
    default: 0
  },
  emptyText: {
    type: String,
    default: "\u6682\u65E0\u6807\u7B7E"
  },
  tagGap: {
    type: Number,
    default: 8
  },
  maxAddableTags: {
    type: Number,
    default: 0
  },
  disabledAddTag: {
    type: Boolean,
    default: false
  },
  disabledCloseTag: {
    type: Boolean,
    default: false
  },
  // 选择模式（multiple多选/single单选）
  selectionMode: {
    type: String,
    values: ["multiple", "single"],
    default: "multiple"
  }
});

export { checkableTagProps };
//# sourceMappingURL=checkable-tag.mjs.map
