#13438·vant

[Feature Request] TextEllipsis 文本省略提供插槽自定义富文本展示内容

Author: uselnessCreated Apr 15, 2025Updated Sep 29, 2026
Labelsfeature: need confirm

What problem does this feature solve?

TextEllipsis 文本省略组件目前只提供字符串展示,后续能否新增插槽展示富文本或其他组件的插槽

What does the proposed API look like?

xml
<van-text-ellipsis>
  <template #content>
    <span><van-tag mark type="primary">标签</van-tag></span>
    <span>样例样例样例样例样例样例样例样例样例样例样例样例样例样例样例样例</span>
  </template>
</van-text-ellipsis>