@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.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.16/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.16/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.16/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.15/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.16/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.16/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -59938,8 +59938,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
59938
59938
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
59939
59939
  const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
59940
59940
  // lookup字段配置过滤条件就强制不显示新建按钮
59941
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
59942
- if (isAllowCreate && isCreate && !isHasFilters) {
59941
+ let hasFilters = !lodash.exports.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
59942
+ if (isAllowCreate && isCreate && !hasFilters) {
59943
59943
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
59944
59944
  new_button.align = "right";
59945
59945
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后