@steedos-widgets/amis-lib 6.10.31 → 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 +71 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +71 -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
|
}
|
|
@@ -19074,8 +19074,12 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19074
19074
|
"font-size": "14px",
|
|
19075
19075
|
"font-weight": "500"
|
|
19076
19076
|
},
|
|
19077
|
-
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
19078
|
-
"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)"
|
|
19079
19083
|
},
|
|
19080
19084
|
".antd-List-placeholder": {
|
|
19081
19085
|
"display": "none"
|
|
@@ -19094,66 +19098,71 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19094
19098
|
"background": "transparent !important"
|
|
19095
19099
|
}
|
|
19096
19100
|
},
|
|
19097
|
-
body: [
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
formContentSchema,
|
|
19120
|
-
await getApplicantTableView(instance),
|
|
19121
|
-
],
|
|
19122
|
-
id: "instance_form",
|
|
19123
|
-
onEvent: {
|
|
19124
|
-
// validateError: {
|
|
19125
|
-
// weight: 0,
|
|
19126
|
-
// actions: [
|
|
19127
|
-
// {
|
|
19128
|
-
// "componentId": "",
|
|
19129
|
-
// "args": {
|
|
19130
|
-
// "msgType": "info",
|
|
19131
|
-
// "position": "top-right",
|
|
19132
|
-
// "closeButton": true,
|
|
19133
|
-
// "showIcon": true,
|
|
19134
|
-
// "title": i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
19135
|
-
// "msg": i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
19136
|
-
// },
|
|
19137
|
-
// "actionType": "toast"
|
|
19138
|
-
// }
|
|
19139
|
-
// ],
|
|
19140
|
-
// },
|
|
19141
|
-
change: {
|
|
19142
|
-
weight: 0,
|
|
19143
|
-
actions: [
|
|
19144
|
-
{
|
|
19145
|
-
"actionType": "reload",
|
|
19146
|
-
"componentId": "u:next_step",
|
|
19147
|
-
"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",
|
|
19148
19123
|
},
|
|
19149
|
-
|
|
19150
|
-
|
|
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
|
+
}
|
|
19151
19158
|
}
|
|
19152
|
-
}
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19159
|
+
},
|
|
19160
|
+
await getInstanceApprovalHistory(),
|
|
19161
|
+
await getApproveButton(instance, { submitEvents , nextStepInitedEvents, nextStepChangeEvents, nextStepUserChangeEvents})
|
|
19162
|
+
],
|
|
19163
|
+
"size": "none",
|
|
19164
|
+
"className": "steedos-amis-instance-view-content"
|
|
19165
|
+
}],
|
|
19157
19166
|
id: "u:instancePage",
|
|
19158
19167
|
messages: {},
|
|
19159
19168
|
pullRefresh: {},
|