<template>
  <el-tag class="tag-ellipsis flex-between mb-8 w-full" effect="plain" v-bind="$attrs">
    <slot></slot>
  </el-tag>
</template>
<script setup lang="ts">
defineOptions({ name: 'TagEllipsis' })
</script>
<style lang="scss" scoped>
/* tag超出省略号 */
.tag-ellipsis {
  border: 1px solid var(--el-border-color);
  color: var(--app-text-color);
  border-radius: 4px;
  height: 30px;
  line-height: 30px;
  padding: 0 9px;
  box-sizing: border-box;

  :deep(.el-tag__content) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
</style>
