@steedos-widgets/amis-lib 6.10.30 → 6.10.31
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -17984,7 +17984,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17984
17984
|
* @Author: baozhoutao@steedos.com
|
|
17985
17985
|
* @Date: 2022-09-07 16:20:45
|
|
17986
17986
|
* @LastEditors: yinlianghui yinlianghui@hotoa.com
|
|
17987
|
-
* @LastEditTime: 2025-12-09
|
|
17987
|
+
* @LastEditTime: 2025-12-09 16:06:24
|
|
17988
17988
|
* @Description:
|
|
17989
17989
|
*/
|
|
17990
17990
|
|
|
@@ -18965,6 +18965,15 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
|
|
|
18965
18965
|
|
|
18966
18966
|
var lastAtBottom = false; // 上一个scroll事件是否到底
|
|
18967
18967
|
|
|
18968
|
+
function scrollToBottom(){
|
|
18969
|
+
setTimeout(function(){
|
|
18970
|
+
var instanceViewBody = document.querySelector(".steedos-amis-instance-view .antd-Page-content .steedos-amis-instance-view-body");
|
|
18971
|
+
if (instanceViewBody){
|
|
18972
|
+
$(instanceViewBody).animate({scrollTop: $(instanceViewBody).prop("scrollHeight")});
|
|
18973
|
+
}
|
|
18974
|
+
}, 1000);
|
|
18975
|
+
}
|
|
18976
|
+
|
|
18968
18977
|
function isAtBottom() {
|
|
18969
18978
|
var scrollTop = bodyEl.scrollTop,
|
|
18970
18979
|
scrollHeight = bodyEl.scrollHeight,
|
|
@@ -18978,6 +18987,7 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
|
|
|
18978
18987
|
if (atBottom && e.deltaY > 0 && !isDrawerOpen()) {
|
|
18979
18988
|
// [wheel] 拖动条在底部且向下滚,弹drawer
|
|
18980
18989
|
btn.click();
|
|
18990
|
+
scrollToBottom();
|
|
18981
18991
|
}
|
|
18982
18992
|
});
|
|
18983
18993
|
|
|
@@ -18987,6 +18997,7 @@ const getScrollToBottomAutoOpenApproveDrawerScript = () => {
|
|
|
18987
18997
|
if (!lastAtBottom && atBottom && !isDrawerOpen()) {
|
|
18988
18998
|
// [scroll] 拖动条到底,弹drawer
|
|
18989
18999
|
btn.click();
|
|
19000
|
+
scrollToBottom();
|
|
18990
19001
|
}
|
|
18991
19002
|
lastAtBottom = atBottom;
|
|
18992
19003
|
});
|