element [Bug Report] Message content is too long and does not wrap

zzzyeukh  于 7个月前  发布在  其他
关注(0)|答案(3)|浏览(259)

Element UI version

2.13.1

OS/Browsers version

Win10 64/ Chrome 81.0.4044.138(正式版本) (64 位)

Vue version

2.6.11

https://codepen.io/wxh16144/pen/yLYEKLj

Steps to reproduce

内容过长不换行

  1. this.$message('ABC'.repeat(100));

中文换行

  1. this.$message('中文'.repeat(100));

建议添加css属性 word-break

Thanks

What is Expected?

允许在单词内换行

What is actually happening?

中文线上正常

1rhkuytd

1rhkuytd1#

Translation of this issue:

Element UI version

2.13.1

OS/Browsers version

Win10 64 / Chrome 81.0.4044.138 (official) (64 bit)

Vue version

2.6.11

https://codepen.io/wxh16144/pen/yLYEKLj

Steps to reproduce

Content is too long to wrap

  1. this.$message('ABC'.repeat(100));
  2. ` ` ` `
  3. Chinese new line
  4. ```javascript
  5. This. $message ('Chinese '. Repeat (100));
  6. ` ` ` `
  7. Suggest adding CSS property ` word break`
  8. Thanks
  9. ### What is Expected?
  10. Allow wrapping within words
  11. ### What is actually happening?
  12. Chinese online normal
展开查看全部
klh5stk1

klh5stk12#

还包括 notify

  1. this.$notify({
  2. title: '警告',
  3. message: '1,2,2,4'.repeat(100),
  4. duration: 0
  5. });
nbnkbykc

nbnkbykc3#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题