@byteluck-fe/model-driven-upgrade 2.8.0-alpha.15 → 2.8.0-alpha.19

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-11-09 09:05:21
6
+ * @LastEditTime: 2023-11-10 14:49:27
7
7
  */ import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
8
8
  import { MetaAutoWidth } from "@byteluck-fe/model-driven-core";
9
9
  var dataCleaner = function(schemaItems, payload) {
@@ -83,6 +83,23 @@ function conversion(schema, payload) {
83
83
  }
84
84
  });
85
85
  }
86
+ if (schema.type === CONTROL_TYPE.SIMPLE_SEARCH) {
87
+ var addKeys1 = [
88
+ {
89
+ key: "col-gap",
90
+ value: 24
91
+ },
92
+ {
93
+ key: "child-min-width",
94
+ value: 230
95
+ }
96
+ ];
97
+ addKeys1.forEach(function(item) {
98
+ if (schema.props[item.key] === undefined) {
99
+ schema.props[item.key] = item.value;
100
+ }
101
+ });
102
+ }
86
103
  //将操作项按钮的完成时事件转成点击时事件
87
104
  conversionListener(payload);
88
105
  return schema;