@steedos-widgets/sortable 6.3.0-beta.15 → 6.3.0-beta.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.
@@ -26239,8 +26239,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
26239
26239
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
26240
26240
  const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
26241
26241
  // lookup字段配置过滤条件就强制不显示新建按钮
26242
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
26243
- if (isAllowCreate && isCreate && !isHasFilters) {
26242
+ let hasFilters = !lodash.exports.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
26243
+ if (isAllowCreate && isCreate && !hasFilters) {
26244
26244
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
26245
26245
  new_button.align = "right";
26246
26246
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "6.3.0-beta.15",
3
+ "version": "6.3.0-beta.16",
4
4
  "main": "dist/sortable.cjs.js",
5
5
  "module": "dist/sortable.esm.js",
6
6
  "unpkg": "dist/sortable.umd.js",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@dnd-kit/core": "^6.0.5",
47
47
  "@dnd-kit/sortable": "^7.0.1",
48
- "@steedos-widgets/amis-lib": "6.3.0-beta.15"
48
+ "@steedos-widgets/amis-lib": "6.3.0-beta.16"
49
49
  },
50
- "gitHead": "2814297d85c3ef6567fb501ada86fb28edb92b9d"
50
+ "gitHead": "8867570e2d1836d14ef3eae384eecf0d20c4e9d4"
51
51
  }