@steedos-widgets/amis-lib 6.3.0-beta.14 → 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/index.esm.js CHANGED
@@ -1359,6 +1359,7 @@ var frontend_setup$1 = "Setup";
1359
1359
  var frontend_notifications$1 = "Notifications";
1360
1360
  var frontend_notifications_allread$1 = "Mark all as read";
1361
1361
  var frontend_notifications_allread_message$1 = "All marked as read";
1362
+ var frontend_notifications_close_dialog$1 = "Close";
1362
1363
  var frontend_profile$1 = "Profile";
1363
1364
  var switch_space$1 = "Switch Space";
1364
1365
  var frontend_about$1 = "About";
@@ -1448,6 +1449,7 @@ var en_us = {
1448
1449
  frontend_notifications: frontend_notifications$1,
1449
1450
  frontend_notifications_allread: frontend_notifications_allread$1,
1450
1451
  frontend_notifications_allread_message: frontend_notifications_allread_message$1,
1452
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog$1,
1451
1453
  frontend_profile: frontend_profile$1,
1452
1454
  switch_space: switch_space$1,
1453
1455
  frontend_about: frontend_about$1,
@@ -1539,6 +1541,7 @@ var frontend_setup = "设置";
1539
1541
  var frontend_notifications = "通知";
1540
1542
  var frontend_notifications_allread = "全部标记为已读";
1541
1543
  var frontend_notifications_allread_message = "已全部标记为已读";
1544
+ var frontend_notifications_close_dialog = "关闭";
1542
1545
  var frontend_profile = "个人资料";
1543
1546
  var switch_space = "切换工作区";
1544
1547
  var frontend_about = "关于";
@@ -1629,6 +1632,7 @@ var zh_cn = {
1629
1632
  frontend_notifications: frontend_notifications,
1630
1633
  frontend_notifications_allread: frontend_notifications_allread,
1631
1634
  frontend_notifications_allread_message: frontend_notifications_allread_message,
1635
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog,
1632
1636
  frontend_profile: frontend_profile,
1633
1637
  switch_space: switch_space,
1634
1638
  frontend_about: frontend_about,
@@ -11584,8 +11588,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
11584
11588
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
11585
11589
  const isCreate = _$1.isBoolean(field.create) ? field.create : true;
11586
11590
  // lookup字段配置过滤条件就强制不显示新建按钮
11587
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
11588
- if (isAllowCreate && isCreate && !isHasFilters) {
11591
+ let hasFilters = !_$1.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
11592
+ if (isAllowCreate && isCreate && !hasFilters) {
11589
11593
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
11590
11594
  new_button.align = "right";
11591
11595
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后