@steedos-widgets/amis-object 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.
@@ -1293,6 +1293,9 @@ fieldset.antd-Collapse > legend{
1293
1293
  .sm\:sticky {
1294
1294
  position: sticky
1295
1295
  }
1296
+ .sm\:z-10 {
1297
+ z-index: 10
1298
+ }
1296
1299
  .sm\:m-2 {
1297
1300
  margin: 0.5rem
1298
1301
  }
@@ -14769,8 +14769,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
14769
14769
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
14770
14770
  const isCreate = _$1__namespace.isBoolean(field.create) ? field.create : true;
14771
14771
  // lookup字段配置过滤条件就强制不显示新建按钮
14772
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
14773
- if (isAllowCreate && isCreate && !isHasFilters) {
14772
+ let hasFilters = !_$1__namespace.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
14773
+ if (isAllowCreate && isCreate && !hasFilters) {
14774
14774
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
14775
14775
  new_button.align = "right";
14776
14776
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
@@ -21994,7 +21994,7 @@ var AmisRecordDetailHeader = function (props) { return __awaiter(void 0, void 0,
21994
21994
  return __generator(this, function (_d) {
21995
21995
  switch (_d.label) {
21996
21996
  case 0:
21997
- _a = props.className, className = _a === void 0 ? 'sm:sticky top-0 p-0 bg-gray-50' : _a, schemaFilter = props.schemaFilter, showButtons = props.showButtons, showBackButton = props.showBackButton;
21997
+ _a = props.className, className = _a === void 0 ? 'sm:sticky top-0 sm:z-10 p-0 bg-gray-50' : _a, schemaFilter = props.schemaFilter, showButtons = props.showButtons, showBackButton = props.showBackButton;
21998
21998
  return [4 /*yield*/, getUISchema(props.objectApiName || "space_users", false)];
21999
21999
  case 1:
22000
22000
  _d.sent();