@steedos-widgets/amis-lib 6.10.14 → 6.10.15
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
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":
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
20345
|
-
const 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 =
|
|
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);
|