fix(TextEllipsis): dots repeated (#12120)

* fix(TextEllipsis): dots repeated

* feat(text-ellipsis): snapshot error
This commit is contained in:
木仔四毛 2023-07-25 08:19:41 +08:00 committed by GitHub
parent 3326547cf1
commit 49e1e9f73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -129,7 +129,6 @@ export default defineComponent({
return ( return (
content.slice(0, leftPart[1]) + content.slice(0, leftPart[1]) +
dots + dots +
dots +
content.slice(rightPart[1], end) content.slice(rightPart[1], end)
); );
} }

View File

@ -35,7 +35,7 @@ exports[`should render demo and match snapshot 1`] = `
</div> </div>
<div> <div>
<div class="van-text-ellipsis"> <div class="van-text-ellipsis">
...... ...
<span class="van-text-ellipsis__action"> <span class="van-text-ellipsis__action">
expand expand
</span> </span>