Skip to content

Commit 1e509da

Browse files
committed
Update QA.md
1 parent db819ff commit 1e509da

File tree

1 file changed

+18
-3
lines changed
  • examples/src/docs/en

1 file changed

+18
-3
lines changed

examples/src/docs/en/QA.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
:::anchor 'scrollWidth' attribute
44

5-
Q:When to use `scrollWidth` attribute
5+
Q:When to use `scrollWidth` attribute?
66

77
A:When the outer container width is less than the `scrollwidth` value, a horizontal scroll bar will appear; when the outer container width is greater than the `scrollwidth` value, it will follow the container adaptively
88

99
:::anchor Column Fixed
10-
Q:Why can't some columns be displayed after setting fixed columns
10+
Q:Why can't some columns be displayed after setting fixed columns?
1111

1212
A:Because the set scrollWidth value is less than the sum of the width of the column (setting the specific width), it will cause the column with no width or set percentage to be squeezed out
1313

1414
:::anchor 'rowKeyFieldName' property
1515

16-
Q:When to use `rowKeyFieldName` property
16+
Q:When to use `rowKeyFieldName` property?
1717

1818
A:This attribute is to solve the correctness of rendering when the data is updated. Applicable functions are: row expansion, row single selection, row multiple selection, row click highlighting, virtual scroll
1919

@@ -27,3 +27,18 @@ renderBodyCell: ({ row, column, rowIndex },h) => {
2727
return (<div>hello</div>);
2828
}
2929
```
30+
31+
:::anchor Long text destroys layout
32+
Q:When there are too many cell contents, the width set does not take effect?
33+
34+
A:Too much text in a cell destroys the layout,This can be controlled by style [word-break](https://developer.mozilla.org/zh-CN/docs/Web/CSS/word-break) ,[Refer to this example](#/en/doc/table/column-width?anchor=long-text-destroys-layout),Such as:
35+
36+
```html
37+
<template>
38+
<ve-table
39+
style="word-break: break-all"
40+
:columns="columns"
41+
:table-data="tableData"
42+
/>
43+
</template>
44+
```

0 commit comments

Comments
 (0)