@steedos-widgets/amis-lib 6.10.30 → 6.10.32
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 +82 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +82 -62
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +62 -62
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/flow.d.ts +554 -545
- 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 17:13:13
|
|
17988
17988
|
* @Description:
|
|
17989
17989
|
*/
|
|
17990
17990
|
|
|
@@ -18933,7 +18933,7 @@ const getApproveButton = async (instance, events)=>{
|
|
|
18933
18933
|
var instancePageContent = document.querySelector(".steedos-amis-instance-view .antd-Page-content");
|
|
18934
18934
|
var approvalDrawerContent = document.querySelector(".approval-drawer .antd-Drawer-content");
|
|
18935
18935
|
if (instancePageContent && approvalDrawerContent) {
|
|
18936
|
-
$(instancePageContent).css("paddingBottom", `${approvalDrawerContent.clientHeight +
|
|
18936
|
+
$(instancePageContent).css("paddingBottom", `${approvalDrawerContent.clientHeight + 2}px`);
|
|
18937
18937
|
}
|
|
18938
18938
|
}
|
|
18939
18939
|
}
|
|
@@ -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
|
});
|
|
@@ -19063,8 +19074,12 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19063
19074
|
"font-size": "14px",
|
|
19064
19075
|
"font-weight": "500"
|
|
19065
19076
|
},
|
|
19066
|
-
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
19067
|
-
"width": "1024px"
|
|
19077
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body .steedos-amis-instance-view-content": {
|
|
19078
|
+
"max-width": "1024px"
|
|
19079
|
+
},
|
|
19080
|
+
".steedos-amis-instance-view .approval-drawer.antd-Drawer .antd-Drawer-content": {
|
|
19081
|
+
"box-shadow": "none",
|
|
19082
|
+
"border-top": "1px solid rgb(209 213 219)"
|
|
19068
19083
|
},
|
|
19069
19084
|
".antd-List-placeholder": {
|
|
19070
19085
|
"display": "none"
|
|
@@ -19083,66 +19098,71 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19083
19098
|
"background": "transparent !important"
|
|
19084
19099
|
}
|
|
19085
19100
|
},
|
|
19086
|
-
body: [
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
formContentSchema,
|
|
19109
|
-
await getApplicantTableView(instance),
|
|
19110
|
-
],
|
|
19111
|
-
id: "instance_form",
|
|
19112
|
-
onEvent: {
|
|
19113
|
-
// validateError: {
|
|
19114
|
-
// weight: 0,
|
|
19115
|
-
// actions: [
|
|
19116
|
-
// {
|
|
19117
|
-
// "componentId": "",
|
|
19118
|
-
// "args": {
|
|
19119
|
-
// "msgType": "info",
|
|
19120
|
-
// "position": "top-right",
|
|
19121
|
-
// "closeButton": true,
|
|
19122
|
-
// "showIcon": true,
|
|
19123
|
-
// "title": i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
19124
|
-
// "msg": i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
19125
|
-
// },
|
|
19126
|
-
// "actionType": "toast"
|
|
19127
|
-
// }
|
|
19128
|
-
// ],
|
|
19129
|
-
// },
|
|
19130
|
-
change: {
|
|
19131
|
-
weight: 0,
|
|
19132
|
-
actions: [
|
|
19133
|
-
{
|
|
19134
|
-
"actionType": "reload",
|
|
19135
|
-
"componentId": "u:next_step",
|
|
19136
|
-
"args": {}
|
|
19101
|
+
body: [{
|
|
19102
|
+
"type": "wrapper",
|
|
19103
|
+
"body": [
|
|
19104
|
+
await getAttachments(instance),
|
|
19105
|
+
await getRelatedInstances(),
|
|
19106
|
+
await getRelatedRecords(instance),
|
|
19107
|
+
{
|
|
19108
|
+
type: "form",
|
|
19109
|
+
debug: false,
|
|
19110
|
+
wrapWithPanel: false,
|
|
19111
|
+
resetAfterSubmit: true,
|
|
19112
|
+
body: [
|
|
19113
|
+
{
|
|
19114
|
+
type: "tpl",
|
|
19115
|
+
id: "u:f5bb0ad602a6",
|
|
19116
|
+
tpl: `<div class="instance-name">${instance.title}</div>`,
|
|
19117
|
+
inline: true,
|
|
19118
|
+
wrapperComponent: "",
|
|
19119
|
+
style: {
|
|
19120
|
+
fontFamily: "",
|
|
19121
|
+
fontSize: 12,
|
|
19122
|
+
textAlign: "center",
|
|
19137
19123
|
},
|
|
19138
|
-
|
|
19139
|
-
|
|
19124
|
+
},
|
|
19125
|
+
formContentSchema,
|
|
19126
|
+
await getApplicantTableView(instance),
|
|
19127
|
+
],
|
|
19128
|
+
id: "instance_form",
|
|
19129
|
+
onEvent: {
|
|
19130
|
+
// validateError: {
|
|
19131
|
+
// weight: 0,
|
|
19132
|
+
// actions: [
|
|
19133
|
+
// {
|
|
19134
|
+
// "componentId": "",
|
|
19135
|
+
// "args": {
|
|
19136
|
+
// "msgType": "info",
|
|
19137
|
+
// "position": "top-right",
|
|
19138
|
+
// "closeButton": true,
|
|
19139
|
+
// "showIcon": true,
|
|
19140
|
+
// "title": i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
19141
|
+
// "msg": i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
19142
|
+
// },
|
|
19143
|
+
// "actionType": "toast"
|
|
19144
|
+
// }
|
|
19145
|
+
// ],
|
|
19146
|
+
// },
|
|
19147
|
+
change: {
|
|
19148
|
+
weight: 0,
|
|
19149
|
+
actions: [
|
|
19150
|
+
{
|
|
19151
|
+
"actionType": "reload",
|
|
19152
|
+
"componentId": "u:next_step",
|
|
19153
|
+
"args": {}
|
|
19154
|
+
},
|
|
19155
|
+
...changeEvents
|
|
19156
|
+
]
|
|
19157
|
+
}
|
|
19140
19158
|
}
|
|
19141
|
-
}
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19159
|
+
},
|
|
19160
|
+
await getInstanceApprovalHistory(),
|
|
19161
|
+
await getApproveButton(instance, { submitEvents , nextStepInitedEvents, nextStepChangeEvents, nextStepUserChangeEvents})
|
|
19162
|
+
],
|
|
19163
|
+
"size": "none",
|
|
19164
|
+
"className": "steedos-amis-instance-view-content"
|
|
19165
|
+
}],
|
|
19146
19166
|
id: "u:instancePage",
|
|
19147
19167
|
messages: {},
|
|
19148
19168
|
pullRefresh: {},
|