@byteluck-fe/model-driven-controls 2.9.0-alpha.24 → 2.9.0-alpha.25
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.
- package/dist/esm/formControls/Amount/designer.js +4 -0
- package/dist/esm/formControls/Amount/property.js +7 -0
- package/dist/esm/formControls/Calc/designer.js +4 -0
- package/dist/esm/formControls/Calc/property.js +7 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Amount/property.d.ts +6 -0
- package/dist/types/formControls/Calc/property.d.ts +6 -0
- package/package.json +2 -2
|
@@ -240,6 +240,11 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
240
240
|
* @defaultValue ''
|
|
241
241
|
*/ _define_property(_assert_this_initialized(_this), "precision", void 0);
|
|
242
242
|
/**
|
|
243
|
+
* 单位位置 left right align-right
|
|
244
|
+
* @defaultValue 'right'
|
|
245
|
+
* @public
|
|
246
|
+
* */ _define_property(_assert_this_initialized(_this), "unitPosition", void 0);
|
|
247
|
+
/**
|
|
243
248
|
* 选项配置 custom datasource
|
|
244
249
|
* @defaultValue 'datasource'
|
|
245
250
|
* */ _define_property(_assert_this_initialized(_this), "optionConfig", void 0);
|
|
@@ -279,6 +284,8 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
279
284
|
amount: "",
|
|
280
285
|
currency: AMOUNT_TYPE.CNY
|
|
281
286
|
});
|
|
287
|
+
var _props_unitPosition;
|
|
288
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : "right";
|
|
282
289
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
283
290
|
var _props_caption;
|
|
284
291
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
@@ -169,6 +169,11 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
169
169
|
* 默认值
|
|
170
170
|
* */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
171
171
|
/**
|
|
172
|
+
* 单位位置 left right align-right
|
|
173
|
+
* @defaultValue 'right'
|
|
174
|
+
* @public
|
|
175
|
+
* */ _define_property(_assert_this_initialized(_this), "unitPosition", void 0);
|
|
176
|
+
/**
|
|
172
177
|
* 页面加载时计算
|
|
173
178
|
* */ _define_property(_assert_this_initialized(_this), "calcOnMounted", void 0);
|
|
174
179
|
var _props_precision;
|
|
@@ -181,6 +186,8 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
181
186
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
182
187
|
var _props_caption;
|
|
183
188
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
189
|
+
var _props_unitPosition;
|
|
190
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : "right";
|
|
184
191
|
var _props_placeholder;
|
|
185
192
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
186
193
|
var _props_scriptEcho;
|