@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.
@@ -220,6 +220,10 @@ _define_property(AmountControl, "setting", [
220
220
  key: "default-value",
221
221
  visible: true
222
222
  },
223
+ {
224
+ key: "unit-position",
225
+ visible: true
226
+ },
223
227
  {
224
228
  key: "currency-type",
225
229
  visible: true
@@ -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;
@@ -220,6 +220,10 @@ _define_property(CalcControl, "setting", [
220
220
  key: "unit-alone",
221
221
  visible: true
222
222
  },
223
+ {
224
+ key: "unit-position",
225
+ visible: true
226
+ },
223
227
  {
224
228
  key: "default-value",
225
229
  visible: false
@@ -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;