希望ellipsis组件更加聪明
Open
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 5.3k
- Forks
- 619
- PR merge metrics
- No merged PRs in 30d
Description
现在的状况:
<VarEllipsis> 内容内容内容内容内容内容内容内容内容内容 </VarEllipsis>
在此时此刻 无论此组件是否省略内容 都可以点击后展开详细内容
但是我希望有一个名为「auto」自动的选项
详细描述:
开启这个选项后可以在省略时才可以点击后展开详细内容
如果文本并没有被省略 就不需要再可以点击后展开详细内容
希望可以实现这个功能 谢谢!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the VarEllipsis component entry point and inspect its current expand-on-click behavior and related tests, if present. Add an auto option whose expanded interaction is available only when the content is ellipsized; verify that non-ellipsized text is not clickable while ellipsized text still expands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100