We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Playground for https://play.vuejs.org
The text was updated successfully, but these errors were encountered:
我修改了编译后的源码,实现了这个功能。给作者大佬参考一下。 在copyCssStyles函数中,对style这个变量做一个判断:
function copyCssStyles(node, cloned, isRoot, context) { ... const style = getDiffStyle(computedStyle, defaultStyle, includeStyleProperties); /** * css 多行省略识别修复 * 问题的原因:getComputedStyle 读取到的display属性,在 display 为 -webkit-box 时识别为flow-root * 先决条件:-webkit-box-orient: vertical -webkit-line-clamp: 数字 */ if (style.get('-webkit-box-orient')?.[0] == 'vertical' && style.get('-webkit-line-clamp')?.[0] >= 0 && style.has('display')) { style.set('display', ['-webkit-box', '']) } ... }
Sorry, something went wrong.
No branches or pull requests
Steps To Reproduce
Playground for https://play.vuejs.org
Environment
The text was updated successfully, but these errors were encountered: