@byteluck-fe/model-driven-controls 7.0.0-props.20 → 7.0.0-props.21
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.
|
@@ -92,8 +92,8 @@ var CounterPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
92
92
|
}), _define_property(_this, "max", {
|
|
93
93
|
type: 'any'
|
|
94
94
|
});
|
|
95
|
-
var valueMax = props.max === '' ?
|
|
96
|
-
var valueMin = props.min === '' ?
|
|
95
|
+
var valueMax = props.max === '' ? 100 : props.max;
|
|
96
|
+
var valueMin = props.min === '' ? 0 : props.min;
|
|
97
97
|
_this.defaultValue.max = valueMax;
|
|
98
98
|
_this.defaultValue.min = valueMin;
|
|
99
99
|
_this.defaultValue.message = getLocaleText('CMD.pleaseEnterNumberRange', {
|
|
@@ -123,8 +123,8 @@ var CounterPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunt
|
|
|
123
123
|
if (_this[0] !== undefined) {
|
|
124
124
|
_this[0].type = 'number';
|
|
125
125
|
}
|
|
126
|
-
var valueMax = props.max === '' ?
|
|
127
|
-
var valueMin = props.min === '' ?
|
|
126
|
+
var valueMax = props.max === '' ? 100 : props.max;
|
|
127
|
+
var valueMin = props.min === '' ? 0 : props.min;
|
|
128
128
|
_this.push({
|
|
129
129
|
type: 'number',
|
|
130
130
|
min: valueMin,
|
|
@@ -151,8 +151,8 @@ var CounterProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
151
151
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : CounterControl.controlName;
|
|
152
152
|
_this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
153
153
|
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
154
|
-
_this.min = (_ref3 = props === null || props === void 0 ? void 0 : props.min) !== null && _ref3 !== void 0 ? _ref3 :
|
|
155
|
-
_this.max = (_ref4 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref4 !== void 0 ? _ref4 :
|
|
154
|
+
_this.min = (_ref3 = props === null || props === void 0 ? void 0 : props.min) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
155
|
+
_this.max = (_ref4 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref4 !== void 0 ? _ref4 : 100;
|
|
156
156
|
_this.step = (_ref5 = props === null || props === void 0 ? void 0 : props.step) !== null && _ref5 !== void 0 ? _ref5 : 1;
|
|
157
157
|
_this.precision = (_ref6 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref6 !== void 0 ? _ref6 : 0;
|
|
158
158
|
_this.controls = (_ref7 = props === null || props === void 0 ? void 0 : props.controls) !== null && _ref7 !== void 0 ? _ref7 : true;
|