@byteluck-fe/model-driven-controls 7.0.0-props.29 → 7.0.0-props.30

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.
@@ -94,15 +94,15 @@ var CounterPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
94
94
  ]), _define_property(_this, "max", {
95
95
  type: 'any'
96
96
  });
97
- var valueMax = props.max === '' ? 100 : props.max;
98
- var valueMin = props.min === '' ? 0 : props.min;
97
+ var valueMax = props.max === '' ? undefined : props.max;
98
+ var valueMin = props.min === '' ? undefined : props.min;
99
99
  _this.defaultValue[0].max = valueMax;
100
100
  _this.defaultValue[0].min = valueMin;
101
101
  _this.defaultValue[0].message = getLocaleText('CMD.pleaseEnterNumberRange', {
102
102
  max: valueMax,
103
103
  min: valueMin
104
104
  }, '请输入大于等于{min}且小于等于{max}的数值');
105
- if (valueMin !== undefined && valueMax !== undefined) {
105
+ if (valueMin && valueMax !== undefined) {
106
106
  _this.max = {
107
107
  type: 'number',
108
108
  min: valueMin,
@@ -125,8 +125,8 @@ var CounterPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunt
125
125
  if (_this[0] !== undefined) {
126
126
  _this[0].type = 'number';
127
127
  }
128
- var valueMax = props.max === '' ? 100 : props.max;
129
- var valueMin = props.min === '' ? 0 : props.min;
128
+ var valueMax = props.max === '' ? undefined : props.max;
129
+ var valueMin = props.min === '' ? undefined : props.min;
130
130
  _this.push({
131
131
  type: 'number',
132
132
  min: valueMin,