dialog use protyle
This commit is contained in:
parent
22c27c0542
commit
73070a56fd
2 changed files with 33 additions and 53 deletions
12
src/index.ts
12
src/index.ts
|
@ -83,11 +83,7 @@ export default class PluginSample extends Plugin {
|
|||
|
||||
let tabDiv = document.createElement("div");
|
||||
new HelloExample({
|
||||
target: tabDiv,
|
||||
props: {
|
||||
name: this.i18n.name,
|
||||
i18n: this.i18n.hello
|
||||
}
|
||||
target: tabDiv
|
||||
});
|
||||
this.customTab = this.addTab({
|
||||
type: TAB_TYPE,
|
||||
|
@ -236,12 +232,8 @@ export default class PluginSample extends Plugin {
|
|||
// hello.$destroy();
|
||||
},
|
||||
});
|
||||
let hello = new HelloExample({
|
||||
new HelloExample({
|
||||
target: dialog.element.querySelector("#helloPanel"),
|
||||
props: {
|
||||
name: this.i18n.name,
|
||||
i18n: this.i18n.hello
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue