@xuda.io/xuda-widget-plugin-xuda-drive 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime.mjs +3 -3
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -771,7 +771,7 @@ export async function viewer(fields, e) {
|
|
|
771
771
|
|
|
772
772
|
// e.$containerP.html(`<div id="drive-app" class="h-full" />`);
|
|
773
773
|
var containerId = crypto.randomUUID();
|
|
774
|
-
e.$containerP.attr("id", containerId);
|
|
774
|
+
e.$containerP.attr("widget-id", containerId);
|
|
775
775
|
|
|
776
776
|
var app = createApp({
|
|
777
777
|
template: html,
|
|
@@ -1037,6 +1037,6 @@ export async function viewer(fields, e) {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
|
|
1039
1039
|
setTimeout(() => {
|
|
1040
|
-
app.mount(
|
|
1041
|
-
},
|
|
1040
|
+
app.mount(`[widget-id='${containerId}']`);
|
|
1041
|
+
}, 1000);
|
|
1042
1042
|
}
|