glib-web 3.0.10 → 3.0.11

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/LICENSE CHANGED
File without changes
File without changes
@@ -6,7 +6,8 @@ export default class {
6
6
 
7
7
  const target = GLib.component.findById(spec.targetId);
8
8
  if (target) {
9
- Object.assign(target.spec, spec.views[0]);
9
+ // force update
10
+ Object.assign(target.spec, spec.views[0], { forceUpdate: true });
10
11
  }
11
12
  }
12
13
  }
File without changes
File without changes
File without changes
@@ -57,7 +57,11 @@ export default {
57
57
  },
58
58
  viewKey(item, index) {
59
59
  // Use view name for key to avoid component reuse issue
60
- return `view${index}_${item.view}_value${item.value}`
60
+ if (!item.forceUpdate) {
61
+ return `view${index}_${item.view}_value${item.value}`
62
+ } else {
63
+ return `comp-${Date.now().toString()}`
64
+ }
61
65
  // return item
62
66
  },
63
67
  $registryEnabled() {
File without changes
File without changes
File without changes
File without changes
package/components/hr.vue CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/keys.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,4 +45,4 @@
45
45
  "prettier": "^1.18.2",
46
46
  "typescript": "^4.9.5"
47
47
  }
48
- }
48
+ }
File without changes
package/styles/test.sass CHANGED
File without changes
package/styles/test.scss CHANGED
File without changes
File without changes
package/utils/dom.js CHANGED
File without changes
package/utils/storage.js CHANGED
File without changes
package/utils/url.js CHANGED
File without changes