@leafer-ui/data 1.0.0-beta.10 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/UIData.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "@leafer-ui/data",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -19,10 +19,10 @@
19
19
  "leaferjs"
20
20
  ],
21
21
  "dependencies": {
22
- "@leafer/core": "1.0.0-beta.10"
22
+ "@leafer/core": "1.0.0-beta.11"
23
23
  },
24
24
  "devDependencies": {
25
- "@leafer/interface": "1.0.0-beta.10",
26
- "@leafer-ui/interface": "1.0.0-beta.10"
25
+ "@leafer/interface": "1.0.0-beta.11",
26
+ "@leafer-ui/interface": "1.0.0-beta.11"
27
27
  }
28
28
  }
package/src/UIData.ts CHANGED
@@ -84,7 +84,7 @@ export class UIData extends LeafData implements IUIData {
84
84
  let image: ILeaferImage, map: IBooleanMap
85
85
  for (let i = 0, len = paints.length; i < len; i++) {
86
86
  image = paints[i].image
87
- if (image) {
87
+ if (image && image.url) {
88
88
  const { url } = image
89
89
  if (!map) map = {}
90
90
  map[url] = true