@leafer-ui/data 2.0.0 → 2.0.1

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 +5 -5
  2. package/src/UIData.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "@leafer-ui/data",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "2.0.0",
26
- "@leafer-ui/external": "2.0.0"
25
+ "@leafer/core": "2.0.1",
26
+ "@leafer-ui/external": "2.0.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "2.0.0",
30
- "@leafer-ui/interface": "2.0.0"
29
+ "@leafer/interface": "2.0.1",
30
+ "@leafer-ui/interface": "2.0.1"
31
31
  }
32
32
  }
package/src/UIData.ts CHANGED
@@ -52,10 +52,10 @@ export class UIData extends LeafData implements IUIData {
52
52
  protected _shadow?: IValue
53
53
  protected _innerShadow?: IValue
54
54
 
55
- public get __autoWidth() { return !this._width }
56
- public get __autoHeight() { return !this._height }
57
- public get __autoSide() { return !this._width || !this._height }
58
- public get __autoSize() { return !this._width && !this._height }
55
+ public get __autoWidth() { return this._width == null }
56
+ public get __autoHeight() { return this._height == null }
57
+ public get __autoSide() { return this._width == null || this._height == null }
58
+ public get __autoSize() { return this._width == null && this._height == null }
59
59
 
60
60
 
61
61
  protected setVisible(value: IBoolean) {