@steedos-widgets/amis-lib 1.3.10 → 1.3.12

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
@@ -4433,6 +4433,7 @@ const getSetListviewFiltersButtonSchema = ()=>{
4433
4433
  }
4434
4434
  }
4435
4435
  ],
4436
+ "className": "steedos-overflow-visible-dialog",
4436
4437
  "showCloseButton": true,
4437
4438
  "showErrorMsg": true,
4438
4439
  "showLoading": true,
@@ -5019,7 +5020,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
5019
5020
  "value": crudKeywords,
5020
5021
  "clearable": true,
5021
5022
  "clearAndSubmit": true,
5022
- "searchImediately": true
5023
+ "searchImediately": false
5023
5024
  }
5024
5025
  ]
5025
5026
  }
@@ -5497,6 +5498,8 @@ async function lookupToAmisTreeSelect(field, readonly, ctx) {
5497
5498
  return amisSchema;
5498
5499
  }
5499
5500
 
5501
+ const keywordsSearchBoxName = `__keywords_lookup`;
5502
+
5500
5503
  const getReferenceTo = async (field)=>{
5501
5504
  let referenceTo = field.reference_to;
5502
5505
  if(!referenceTo){
@@ -5740,8 +5743,6 @@ async function lookupToAmisPicker(field, readonly, ctx){
5740
5743
 
5741
5744
  source.data.$term = "$term";
5742
5745
  source.data.$self = "$$";
5743
-
5744
- let keywordsSearchBoxName = `__keywords_lookup__${field.name}__to__${refObjectConfig.name}`;
5745
5746
 
5746
5747
  source.requestAdaptor = `
5747
5748
  const selfData = JSON.parse(JSON.stringify(api.data.$self));
@@ -7149,7 +7150,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
7149
7150
  suffix: "%",
7150
7151
  pipeIn: (value, data) => {
7151
7152
  if(value){
7152
- return value*100;
7153
+ // 因为例如 1.11 * 100 的值不是111,所以调整下。
7154
+ const result = value*100;
7155
+ return Number(result.toFixed(field.scale));
7153
7156
  }
7154
7157
  return value;
7155
7158
  },