@leafer/decorator 1.0.0-rc.22 → 1.0.0-rc.23

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/data.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/decorator",
3
- "version": "1.0.0-rc.22",
3
+ "version": "1.0.0-rc.23",
4
4
  "description": "@leafer/decorator",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/platform": "1.0.0-rc.22",
26
- "@leafer/debug": "1.0.0-rc.22"
25
+ "@leafer/platform": "1.0.0-rc.23",
26
+ "@leafer/debug": "1.0.0-rc.23"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.22"
29
+ "@leafer/interface": "1.0.0-rc.23"
30
30
  }
31
31
  }
package/src/data.ts CHANGED
@@ -163,6 +163,7 @@ export function maskType(defaultValue?: IValue) {
163
163
  this.__setAttr(key, value)
164
164
  this.__layout.boxChanged || this.__layout.boxChange()
165
165
  this.waitParent(() => { this.parent.__updateMask(value) })
166
+ if (typeof value === 'string') this.maskType = value
166
167
  }
167
168
  }))
168
169
  }