+
API demo:
+
+
+ System current time: {time}
-
-
- Wellcome to plugin sample with vite & svelte
- {@html i18n.makesure}
-
-
+
+
+
Protyle demo: id = {blockID}
+
+
-
diff --git a/src/index.ts b/src/index.ts
index a5ccd12..e12c75c 100644
--- a/src/index.ts
+++ b/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
- }
});
}