@zscreate/zhxy-app-component 1.0.166 → 1.0.168

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.
@@ -1652,6 +1652,17 @@ export default {
1652
1652
  if (this.widget.type === 'deptSelector') {
1653
1653
  this.updatedeptSelectorModal()
1654
1654
  }
1655
+ if (this.widget.type === 'number') {
1656
+ const { max, min } = this.widget.options
1657
+ if ((max || max === 0) && v > max) {
1658
+ this.dataModel = max
1659
+ return
1660
+ }
1661
+ if ((min || min === 0) && v < min) {
1662
+ this.dataModel = min
1663
+ return
1664
+ }
1665
+ }
1655
1666
  if (this.widget.type === 'codeControl') {
1656
1667
 
1657
1668
  // const randomNum = String(Math.random())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.166",
3
+ "version": "1.0.168",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",