mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-21 01:13:16 +08:00
fix(data-table): rowProps may override className & virtual-x without fixed columns & css-render version
This commit is contained in:
parent
5038519767
commit
b6564a4768
@ -1,5 +1,15 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.40.1
|
||||
|
||||
`2024-09-26`
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix `n-data-table` in virtual-x mode, when all column objects do not have the `fixed` attribute configured, it cannot be displayed normally.
|
||||
- Fix `css-render` dependency version is not high enough to affect the `style-mount-target` attribute of `n-config-provider`.
|
||||
- Fix `n-data-table`'s `rowProps` generated `class` will override the original row DOM's class.
|
||||
|
||||
## 2.40.0
|
||||
|
||||
`2024-09-26`
|
||||
|
@ -1,5 +1,15 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.40.1
|
||||
|
||||
`2024-09-26`
|
||||
|
||||
### Fixes
|
||||
|
||||
- 修复 `n-data-table` 在设定 `virtual-x`,且所有的 column 对象均没有配置 `fixed` 属性的时候无法正常显示
|
||||
- 修复 `css-render` 依赖版本不够高可能会影响 `n-config-provider` 的 `style-mount-target` 属性的问题
|
||||
- 修复 `n-data-table` 的 `rowProps` 产生的 `class` 会覆盖原本行 DOM 的 class
|
||||
|
||||
## 2.40.0
|
||||
|
||||
`2024-09-26`
|
||||
|
@ -66,13 +66,13 @@
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@css-render/plugin-bem": "^0.15.12",
|
||||
"@css-render/vue3-ssr": "^0.15.12",
|
||||
"@css-render/plugin-bem": "^0.15.14",
|
||||
"@css-render/vue3-ssr": "^0.15.14",
|
||||
"@types/katex": "^0.16.2",
|
||||
"@types/lodash": "^4.14.198",
|
||||
"@types/lodash-es": "^4.17.9",
|
||||
"async-validator": "^4.2.5",
|
||||
"css-render": "^0.15.12",
|
||||
"css-render": "^0.15.14",
|
||||
"csstype": "^3.1.3",
|
||||
"date-fns": "^3.6.0",
|
||||
"date-fns-tz": "^3.1.3",
|
||||
|
@ -1008,8 +1008,10 @@ export default defineComponent({
|
||||
|
||||
const row = (
|
||||
<tr
|
||||
onMouseenter={() => {
|
||||
{...props}
|
||||
onMouseenter={(e) => {
|
||||
this.hoverKey = rowKey
|
||||
props?.onMouseenter?.(e)
|
||||
}}
|
||||
key={rowKey}
|
||||
class={[
|
||||
@ -1020,8 +1022,10 @@ export default defineComponent({
|
||||
mergedRowClassName,
|
||||
props?.class
|
||||
]}
|
||||
style={props?.style}
|
||||
{...props}
|
||||
style={[
|
||||
props?.style,
|
||||
isVirtualX && { height: virtualXRowHeight }
|
||||
]}
|
||||
>
|
||||
{cells}
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user