mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(menu): incorrect warning on default-expanded-keys
This commit is contained in:
parent
e6cdfbdf91
commit
336320001c
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## Pending
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix `n-menu`'s incorrect warning on `default-expanded-keys`.
|
||||
|
||||
## 2.19.5 (2021-10-07)
|
||||
|
||||
### Fixes
|
||||
|
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## Pending
|
||||
|
||||
### Fixes
|
||||
|
||||
- 修复 `n-menu` 对于 `default-expanded-keys` 的错误警报
|
||||
|
||||
## 2.19.5 (2021-10-07)
|
||||
|
||||
### Fixes
|
||||
|
@ -31,7 +31,7 @@ export function useCheckDeprecated (props: MenuSetupProps): void {
|
||||
'`expanded-names` is deprecated, please use `expanded-keys` instead.'
|
||||
)
|
||||
}
|
||||
if (props.defaultExpandedKeys) {
|
||||
if (props.defaultExpandedNames) {
|
||||
warnOnce(
|
||||
'menu',
|
||||
'`default-expanded-names` is deprecated, please use `default-expanded-keys` instead.'
|
||||
|
Loading…
Reference in New Issue
Block a user