[new feature] Notify: add onOpened prop

This commit is contained in:
陈嘉涵
2019-05-30 14:29:59 +08:00
parent 333666f506
commit 5f5de381e8
7 changed files with 15 additions and 2 deletions
+3
View File
@@ -44,6 +44,9 @@ function Notify(
onClick={(event: Event) => {
emit(ctx, 'click', event);
}}
onOpened={() => {
emit(ctx, 'opened');
}}
{...inherit(ctx)}
>
{props.message}