Skip to content

Commit 9a72444

Browse files
committed
Update QA.md
1 parent 2b8e4f0 commit 9a72444

File tree

1 file changed

+17
-0
lines changed
  • examples/src/docs/zh

1 file changed

+17
-0
lines changed

examples/src/docs/zh/QA.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,20 @@ renderBodyCell: ({ row, column, rowIndex },h) => {
2525
return (<div>hello</div>);
2626
}
2727
```
28+
29+
:::anchor 长文本破坏布局
30+
Q:为什么当单元格内容过多时,设置的宽度不生效
31+
32+
A:当单元格文本内容过多时会破坏布局,此时可以通过样式 [word-break](https://developer.mozilla.org/zh-CN/docs/Web/CSS/word-break) 控制([具体参考这个示例](#/zh/doc/table/column-width?anchor=long-text-destroys-layout)),如:
33+
```html
34+
<template>
35+
<ve-table
36+
style="word-break: break-all"
37+
:columns="columns"
38+
:table-data="tableData"
39+
/>
40+
</template>
41+
```
42+
43+
44+

0 commit comments

Comments
 (0)