Open lana-k opened 4 years ago
It is expected in current version. You can move the block level element outside. In future versions we may offer more flexibility.
@Justineo it's not obvious, because it's said in the doc:
after Slot scope: Same as before. Content displayed after the clamped text. Can contain anything.
Please, change it to
after Slot scope: Same as before. Content displayed after the clamped text. Can contain inline-level element.
It should be said explicitly that the inline element is expected.
This fork may work as you expect? https://boyuai.github.io/vue-clamp/demo/
I need a clamped text with 'read more' button displayed as block element (like this)
So, when I use block element in
after
slot thevue-clamp
hides more lines than needed.