Merge branch 'fix/ducheng-1116-bugs' into 'release/1.0.0'

feat: 新增插件的静态函数onInit,每次插件安装的时候会执行



See merge request !1053631
This commit is contained in:
彼洋 2020-11-20 12:30:49 +08:00
commit c06249b1a4

View File

@ -109,6 +109,10 @@ export default class Panel implements IWidget {
if (props.onInit) {
props.onInit.call(this, this);
}
if (content.onInit) {
content.onInit.call(this, this);
}
// todo: process shortcut
}