@steedos-widgets/amis-lib 6.3.8 → 6.3.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.
package/dist/index.esm.js CHANGED
@@ -13858,9 +13858,9 @@ async function getFieldSearchable(perField, permissionFields, ctx){
13858
13858
  _field.precision = field.precision;
13859
13859
  _field.scale = field.scale;
13860
13860
  }
13861
- else if(field.type === "select" && field.data_type && field.data_type != "text"){
13862
- _field.type = field.data_type;
13863
- }
13861
+ // else if(field.type === "select" && field.data_type && field.data_type != "text"){
13862
+ // _field.type = field.data_type;
13863
+ // }
13864
13864
 
13865
13865
  if(_field.type === 'number' || _field.type === 'currency'){
13866
13866
  _field.type = 'input-array';
@@ -13988,8 +13988,8 @@ var index = /*#__PURE__*/Object.freeze({
13988
13988
  /*
13989
13989
  * @Author: baozhoutao@steedos.com
13990
13990
  * @Date: 2022-05-26 16:02:08
13991
- * @LastEditors: yinlianghui@hotoa.com yinlianghui@hotoa.com
13992
- * @LastEditTime: 2024-02-25 14:13:10
13991
+ * @LastEditors: baozhoutao@steedos.com
13992
+ * @LastEditTime: 2024-09-11 15:27:32
13993
13993
  * @Description:
13994
13994
  */
13995
13995
 
@@ -14045,17 +14045,17 @@ const getSection = async (formFields, permissionFields, fieldSchemaArray, sectio
14045
14045
  // console.log(`perField.type object ===> field`, field)
14046
14046
  }
14047
14047
  if (field.name.indexOf(".") < 0) {
14048
- let _field = _.cloneDeep(field);
14049
- if(field.type === "select" && field.data_type && field.data_type != "text"){
14050
- _field.type = field.data_type;
14051
- }
14048
+ // let _field = _.cloneDeep(field);
14049
+ // if(field.type === "select" && field.data_type && field.data_type != "text"){
14050
+ // _field.type = field.data_type;
14051
+ // }
14052
14052
  if(field.type === "steedos-field"){
14053
14053
  // 如果是steedos-field则不需要通过convertSFieldToAmisField函数转换,因为steedos-field组件会转换
14054
- fieldSetBody.push(_field);
14054
+ fieldSetBody.push(field);
14055
14055
  }
14056
14056
  else {
14057
14057
  ctx.__formFields = formFields;
14058
- const amisField = await convertSFieldToAmisField(_field, _field.readonly, ctx);
14058
+ const amisField = await convertSFieldToAmisField(field, field.readonly, ctx);
14059
14059
  // 如果steedos-field稳定了,可以放开下面的代码直接用组件统一渲染字段
14060
14060
  // const amisField = {
14061
14061
  // "type": "steedos-field",