fix: protyle

This commit is contained in:
frostime 2023-06-28 21:28:38 +08:00
parent 34e3646add
commit ddca3e0e24
2 changed files with 12 additions and 5 deletions

View file

@ -83,7 +83,10 @@ export default class PluginSample extends Plugin {
let tabDiv = document.createElement("div");
new HelloExample({
target: tabDiv
target: tabDiv,
props: {
app: this.app,
}
});
this.customTab = this.addTab({
type: TAB_TYPE,
@ -234,6 +237,9 @@ export default class PluginSample extends Plugin {
});
new HelloExample({
target: dialog.element.querySelector("#helloPanel"),
props: {
app: this.app,
}
});
}