[new feature] TreeSelect: main-active-index support sync modifier (#4132)

This commit is contained in:
neverland
2019-08-16 17:43:32 +08:00
committed by GitHub
parent bfb3196438
commit 85356ac302
4 changed files with 8 additions and 25 deletions
+1
View File
@@ -63,6 +63,7 @@ function TreeSelect(
onClick={() => {
if (!item.disabled) {
emit(ctx, 'click-nav', index);
emit(ctx, 'update:main-active-index', index);
// compatible for old usage, should be removed in next major version
emit(ctx, 'navclick', index);