mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(TextEllipsis): dots repeated (#12120)
* fix(TextEllipsis): dots repeated * feat(text-ellipsis): snapshot error
This commit is contained in:
@@ -129,7 +129,6 @@ export default defineComponent({
|
||||
return (
|
||||
content.slice(0, leftPart[1]) +
|
||||
dots +
|
||||
dots +
|
||||
content.slice(rightPart[1], end)
|
||||
);
|
||||
}
|
||||
|
@@ -35,7 +35,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
</div>
|
||||
<div>
|
||||
<div class="van-text-ellipsis">
|
||||
......
|
||||
...
|
||||
<span class="van-text-ellipsis__action">
|
||||
expand
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user