[improvement] TreeSelect: rename event name (#3892)

This commit is contained in:
neverland
2019-07-18 20:51:16 +08:00
committed by GitHub
parent ee09f34bc2
commit 6aaab466af
4 changed files with 119 additions and 24 deletions
+6
View File
@@ -53,6 +53,9 @@ function TreeSelect(
]}
onClick={() => {
if (!item.disabled) {
emit(ctx, 'click-nav', index);
// compatible for old usage, should be removed in next major version
emit(ctx, 'navclick', index);
}
}}
@@ -74,6 +77,9 @@ function TreeSelect(
]}
onClick={() => {
if (!item.disabled) {
emit(ctx, 'click-item', item);
// compatible for old usage, should be removed in next major version
emit(ctx, 'itemclick', item);
}
}}