mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(component): [table] row-key due to current-change trigger (#10060)
fix: table row-key due to current-change trigger
This commit is contained in:
parent
48b40a5f27
commit
bae2a62ba0
@ -57,7 +57,7 @@ function useStyle<T>(
|
||||
watch(
|
||||
() => [props.currentRowKey, store.states.rowKey],
|
||||
([currentRowKey, rowKey]) => {
|
||||
if (!unref(rowKey)) return
|
||||
if (!unref(rowKey) || !unref(currentRowKey)) return
|
||||
store.setCurrentRowKey(`${currentRowKey}`)
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user