fix(menu): incorrect warning on default-expanded-keys

This commit is contained in:
07akioni 2021-10-08 00:15:32 +08:00
parent e6cdfbdf91
commit 336320001c
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- Fix `n-menu`'s incorrect warning on `default-expanded-keys`.
## 2.19.5 (2021-10-07)
### Fixes

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- 修复 `n-menu` 对于 `default-expanded-keys` 的错误警报
## 2.19.5 (2021-10-07)
### Fixes

View File

@ -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.'