"use strict";
const props = {
  /** 标签是否可关闭 */
  closable: {
    type: [Boolean, Object],
    default: false
  },
  /** 标签禁用态，失效标签不能触发事件。默认风格（theme=default）才有禁用态 */
  disabled: Boolean,
  /** 标签中的图标，可自定义图标呈现 */
  icon: {
    type: [String, Object]
  },
  /** 标签最大宽度，宽度超出后会出现省略号。示例：'50px' / 80 */
  maxWidth: {
    type: [String, Number]
  },
  /** 标签类型，有三种：方形、圆角方形、标记型 */
  shape: {
    type: String,
    default: "square",
    validator(val) {
      if (!val)
        return true;
      return ["square", "round", "mark"].includes(val);
    }
  },
  /** 标签尺寸 */
  size: {
    type: String,
    default: "medium",
    validator(val) {
      if (!val)
        return true;
      return ["small", "medium", "large", "extra-large"].includes(val);
    }
  },
  /** 组件风格，用于描述组件不同的应用场景 */
  theme: {
    type: String,
    default: "default",
    validator(val) {
      if (!val)
        return true;
      return ["default", "primary", "warning", "danger", "success"].includes(val);
    }
  },
  /** 标签风格变体 */
  variant: {
    type: String,
    default: "dark",
    validator(val) {
      if (!val)
        return true;
      return ["dark", "light", "outline", "light-outline"].includes(val);
    }
  },
  /** 点击时触发 */
  onClick: {
    type: Function,
    default: () => ({})
  },
  /** 如果关闭按钮存在，点击关闭按钮时触发 */
  onClose: {
    type: Function,
    default: () => ({})
  }
};
exports.props = props;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/tdesign-uniapp/components/tag/props.js.map
