@steedos-widgets/amis-lib 6.10.14 → 6.10.16

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
@@ -11105,7 +11105,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
11105
11105
  "name": keywordsSearchBoxName,
11106
11106
  "placeholder": i18next.t('frontend_crud_toolbar_quick_search_placeholder'),//"快捷搜索",
11107
11107
  "value": crudKeywords,
11108
- "mini": true,
11108
+ "mini": false,
11109
11109
  "clearable": true,//因为清除并不会触发失去焦点事件,只有禁用,但是它会触发change事件,所以等升级到amis 3.4+后可以重新放开
11110
11110
  "clearAndSubmit": true,
11111
11111
  "searchImediately": false,
@@ -11275,15 +11275,15 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
11275
11275
  ...toolbars,
11276
11276
  ]
11277
11277
  }else {
11278
- toolbars.push(toolbarDQuickSearchBox);
11278
+ if(toolbarFilter){
11279
+ toolbars.push(toolbarFilter);
11280
+ }
11279
11281
  toolbars.push(toolbarReloadButton);
11280
11282
  toolbars.push(toolbarDisplayAsButton);
11281
11283
  if(mainObject?.permissions?.allowCreateListViews){
11282
11284
  toolbars.push(getSettingListviewToolbarButtonSchema());
11283
11285
  }
11284
- if(toolbarFilter){
11285
- toolbars.push(toolbarFilter);
11286
- }
11286
+ toolbars.push(toolbarDQuickSearchBox);
11287
11287
  if(toolbarCount){
11288
11288
  toolbars.push(toolbarCount);
11289
11289
  }
@@ -20341,11 +20341,11 @@ const getFieldEditTpl = async (field, label)=>{
20341
20341
  return payload;
20342
20342
  `,
20343
20343
  requestAdaptor: `
20344
- const filters = ${_.replace(field.filters, /_.pluck/g, '_.map')};
20345
- const url = ${field.url}
20344
+ const filters = \`${_.replace(field.filters, /_.pluck/g, '_.map')}\`;
20345
+ const url = \`${field.url}\`;
20346
20346
  if(filters){
20347
20347
  console.log('filters', filters);
20348
- const joinKey = field.url.indexOf('?') > 0 ? '&' : '?';
20348
+ const joinKey = url.indexOf('?') > 0 ? '&' : '?';
20349
20349
  if(filters.startsWith('function(') || filters.startsWith('function (')){
20350
20350
  const argsName = ${JSON.stringify(argsName)};
20351
20351
  const fun = eval('_fun='+filters);