@byteluck-fe/model-driven-upgrade 2.8.1-alpha.12-g → 2.8.1-alpha.12-i

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.
@@ -3,7 +3,7 @@
3
3
  * @Autor: SuperLucky-Q
4
4
  * @Date: 2023-02-16 14:45:22
5
5
  * @LastEditors: SuperLuckyqi
6
- * @LastEditTime: 2023-12-22 09:15:33
6
+ * @LastEditTime: 2023-12-22 09:29:55
7
7
  */ function _define_property(obj, key, value) {
8
8
  if (key in obj) {
9
9
  Object.defineProperty(obj, key, {
@@ -146,12 +146,17 @@ function conversion(schema, payload) {
146
146
  if (item.props.limit === undefined) {
147
147
  item.props.limit = 3;
148
148
  }
149
- if (item.props.show_type === false) {
150
- item.props.show_type === "icon";
149
+ if (item.props.show_type === undefined) {
150
+ item.props.show_type = "icon";
151
151
  }
152
152
  }
153
153
  });
154
154
  }
155
+ if (schema.type === CONTROL_TYPE.CALC) {
156
+ if (schema.props.calcOnMounted === undefined) {
157
+ schema.props.calcOnMounted = true;
158
+ }
159
+ }
155
160
  //将操作项按钮的完成时事件转成点击时事件
156
161
  conversionListener(payload);
157
162
  return schema;