@byteluck-fe/model-driven-controls 2.8.1-beta → 2.8.1-beta.9

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.
@@ -202,6 +202,10 @@ _define_property(CalcControl, "setting", [
202
202
  key: "calc-script-echo",
203
203
  visible: false
204
204
  },
205
+ {
206
+ key: "calc-on-mounted",
207
+ visible: true
208
+ },
205
209
  {
206
210
  key: "common-setting",
207
211
  visible: true,
@@ -168,6 +168,9 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
168
168
  /**
169
169
  * 默认值
170
170
  * */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
171
+ /**
172
+ * 页面加载时计算
173
+ * */ _define_property(_assert_this_initialized(_this), "calcOnMounted", void 0);
171
174
  var _props_precision;
172
175
  _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
173
176
  var _props_micrometer;
@@ -184,6 +187,8 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
184
187
  _this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
185
188
  var _props_scriptSrc;
186
189
  _this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : "";
190
+ var _props_calcOnMounted;
191
+ _this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
187
192
  return _this;
188
193
  }
189
194
  return CalcProperty;
@@ -95,8 +95,8 @@ var SimpleSearchControl = /*#__PURE__*/ function(RuntimeSearchControl) {
95
95
  _define_property(_assert_this_initialized(_this), "props", void 0);
96
96
  _define_property(_assert_this_initialized(_this), "children", void 0);
97
97
  _this.props = new SimpleSearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
- var _ref;
99
- _this.children = (_ref = props === null || props === void 0 ? void 0 : props.children) !== null && _ref !== void 0 ? _ref : [];
98
+ var _props_children;
99
+ _this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [];
100
100
  return _this;
101
101
  }
102
102
  return SimpleSearchControl;