@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/runtime.mjs +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-widget-plugin-xuda-drive",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Xuda Drive widget plugin",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
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("#" + containerId);
1041
- }, 500);
1040
+ app.mount(`[widget-id='${containerId}']`);
1041
+ }, 1000);
1042
1042
  }