@steedos-widgets/amis-lib 6.10.7 → 6.10.9

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
@@ -1889,7 +1889,7 @@ var frontend_objects_related_alert_end = "关联的相关表字段";
1889
1889
  var frontend_no_records_found = "无法找到记录";
1890
1890
  var frontend_records_no_allowedit = "您对这条记录没有编辑权限";
1891
1891
  var frontend_app_menu_save_order_group_nesting_error = "不支持分组嵌套";
1892
- var frontend_menu_setup = "编辑应用";
1892
+ var frontend_menu_setup = "设置";
1893
1893
  var frontend_menu_new_object = "新建对象";
1894
1894
  var frontend_menu_view_object = "查看对象";
1895
1895
  var frontend_menu_new_micro_page = "新建微页面";
@@ -1905,7 +1905,7 @@ var frontend_menu_delete_group = "删除分组";
1905
1905
  var frontend_menu_move_group = "移动分组";
1906
1906
  var frontend_menu_dialog_move_group = "移动到指定分组";
1907
1907
  var frontend_menu_group_none_children = "无菜单";
1908
- var frontend_menu_edit_app = "编辑应用";
1908
+ var frontend_menu_edit_app = "查看应用";
1909
1909
  var frontend_menu_dialog_name_placeholder = "唯一标识";
1910
1910
  var frontend_menu_tabs_group_name_label = "名称";
1911
1911
  var frontend_menu_tabs_group_name_placeholder = "分组名称";
@@ -19927,7 +19927,7 @@ const getInstanceApprovalHistory = async ()=>{
19927
19927
  * @Author: baozhoutao@steedos.com
19928
19928
  * @Date: 2022-09-07 16:20:45
19929
19929
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
19930
- * @LastEditTime: 2025-11-19 16:06:23
19930
+ * @LastEditTime: 2025-11-19 17:21:28
19931
19931
  * @Description:
19932
19932
  */
19933
19933
 
@@ -20768,11 +20768,16 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
20768
20768
  return `
20769
20769
  (function () {
20770
20770
  setTimeout(function () {
20771
- var bodyEl = document.querySelector('.steedos-amis-instance-view-body');
20771
+ var bodyEl = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .steedos-amis-instance-view-body');
20772
20772
  if (!bodyEl) return;
20773
- var btn = document.querySelector('.approve-button');
20773
+ var btn = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .approve-button');
20774
20774
  if (!btn) return;
20775
20775
 
20776
+ function isDrawerOpen() {
20777
+ var dr = document.querySelector('.amis-dialog-widget.approval-drawer');
20778
+ return dr && dr.offsetParent !== null;
20779
+ }
20780
+
20776
20781
  var lastAtBottom = false; // 上一个scroll事件是否到底
20777
20782
 
20778
20783
  function isAtBottom() {
@@ -20785,7 +20790,7 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
20785
20790
  // wheel: 只要现在到底、且是向下滚,即可弹出
20786
20791
  bodyEl.addEventListener('wheel', function (e) {
20787
20792
  var atBottom = isAtBottom();
20788
- if (atBottom && e.deltaY > 0) {
20793
+ if (atBottom && e.deltaY > 0 && !isDrawerOpen()) {
20789
20794
  // [wheel] 拖动条在底部且向下滚,弹drawer
20790
20795
  btn.click();
20791
20796
  }
@@ -20794,7 +20799,7 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
20794
20799
  // scroll: 拖动时仅“从非底部->底部”瞬间弹
20795
20800
  bodyEl.addEventListener('scroll', function () {
20796
20801
  var atBottom = isAtBottom();
20797
- if (!lastAtBottom && atBottom) {
20802
+ if (!lastAtBottom && atBottom && !isDrawerOpen()) {
20798
20803
  // [scroll] 拖动条到底,弹drawer
20799
20804
  btn.click();
20800
20805
  }
@@ -20829,7 +20834,7 @@ const getFlowFormSchema = async (instance, box) => {
20829
20834
  }
20830
20835
  // if (box == 'inbox' || box == 'draft') {
20831
20836
  // TODO: 临时去掉 AutoOpenApproveDrawer 功能因为测试到性能问题
20832
- if ((box == 'inbox' || box == 'draft') && window.enableAutoOpenApproveDrawer) {
20837
+ if ((box == 'inbox' || box == 'draft') && window.disableAutoOpenApproveDrawer !== true) {
20833
20838
  // 滚动条滚动到底部弹出底部签批drawer窗口
20834
20839
  initedEvents.push({
20835
20840
  "actionType": "custom",