@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/index.cjs.js CHANGED
@@ -18011,7 +18011,7 @@ const getInstanceApprovalHistory = async ()=>{
18011
18011
  * @Author: baozhoutao@steedos.com
18012
18012
  * @Date: 2022-09-07 16:20:45
18013
18013
  * @LastEditors: yinlianghui yinlianghui@hotoa.com
18014
- * @LastEditTime: 2025-12-09 16:06:24
18014
+ * @LastEditTime: 2025-12-09 17:13:13
18015
18015
  * @Description:
18016
18016
  */
18017
18017
 
@@ -18960,7 +18960,7 @@ const getApproveButton = async (instance, events)=>{
18960
18960
  var instancePageContent = document.querySelector(".steedos-amis-instance-view .antd-Page-content");
18961
18961
  var approvalDrawerContent = document.querySelector(".approval-drawer .antd-Drawer-content");
18962
18962
  if (instancePageContent && approvalDrawerContent) {
18963
- $(instancePageContent).css("paddingBottom", `${approvalDrawerContent.clientHeight + 10}px`);
18963
+ $(instancePageContent).css("paddingBottom", `${approvalDrawerContent.clientHeight + 2}px`);
18964
18964
  }
18965
18965
  }
18966
18966
  }
@@ -19101,8 +19101,12 @@ const getFlowFormSchema = async (instance, box) => {
19101
19101
  "font-size": "14px",
19102
19102
  "font-weight": "500"
19103
19103
  },
19104
- ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
19105
- "width": "1024px"
19104
+ ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body .steedos-amis-instance-view-content": {
19105
+ "max-width": "1024px"
19106
+ },
19107
+ ".steedos-amis-instance-view .approval-drawer.antd-Drawer .antd-Drawer-content": {
19108
+ "box-shadow": "none",
19109
+ "border-top": "1px solid rgb(209 213 219)"
19106
19110
  },
19107
19111
  ".antd-List-placeholder": {
19108
19112
  "display": "none"
@@ -19121,66 +19125,71 @@ const getFlowFormSchema = async (instance, box) => {
19121
19125
  "background": "transparent !important"
19122
19126
  }
19123
19127
  },
19124
- body: [
19125
- await getAttachments(instance),
19126
- await getRelatedInstances(),
19127
- await getRelatedRecords(instance),
19128
- {
19129
- type: "form",
19130
- debug: false,
19131
- wrapWithPanel: false,
19132
- resetAfterSubmit: true,
19133
- body: [
19134
- {
19135
- type: "tpl",
19136
- id: "u:f5bb0ad602a6",
19137
- tpl: `<div class="instance-name">${instance.title}</div>`,
19138
- inline: true,
19139
- wrapperComponent: "",
19140
- style: {
19141
- fontFamily: "",
19142
- fontSize: 12,
19143
- textAlign: "center",
19144
- },
19145
- },
19146
- formContentSchema,
19147
- await getApplicantTableView(instance),
19148
- ],
19149
- id: "instance_form",
19150
- onEvent: {
19151
- // validateError: {
19152
- // weight: 0,
19153
- // actions: [
19154
- // {
19155
- // "componentId": "",
19156
- // "args": {
19157
- // "msgType": "info",
19158
- // "position": "top-right",
19159
- // "closeButton": true,
19160
- // "showIcon": true,
19161
- // "title": i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
19162
- // "msg": i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
19163
- // },
19164
- // "actionType": "toast"
19165
- // }
19166
- // ],
19167
- // },
19168
- change: {
19169
- weight: 0,
19170
- actions: [
19171
- {
19172
- "actionType": "reload",
19173
- "componentId": "u:next_step",
19174
- "args": {}
19128
+ body: [{
19129
+ "type": "wrapper",
19130
+ "body": [
19131
+ await getAttachments(instance),
19132
+ await getRelatedInstances(),
19133
+ await getRelatedRecords(instance),
19134
+ {
19135
+ type: "form",
19136
+ debug: false,
19137
+ wrapWithPanel: false,
19138
+ resetAfterSubmit: true,
19139
+ body: [
19140
+ {
19141
+ type: "tpl",
19142
+ id: "u:f5bb0ad602a6",
19143
+ tpl: `<div class="instance-name">${instance.title}</div>`,
19144
+ inline: true,
19145
+ wrapperComponent: "",
19146
+ style: {
19147
+ fontFamily: "",
19148
+ fontSize: 12,
19149
+ textAlign: "center",
19175
19150
  },
19176
- ...changeEvents
19177
- ]
19151
+ },
19152
+ formContentSchema,
19153
+ await getApplicantTableView(instance),
19154
+ ],
19155
+ id: "instance_form",
19156
+ onEvent: {
19157
+ // validateError: {
19158
+ // weight: 0,
19159
+ // actions: [
19160
+ // {
19161
+ // "componentId": "",
19162
+ // "args": {
19163
+ // "msgType": "info",
19164
+ // "position": "top-right",
19165
+ // "closeButton": true,
19166
+ // "showIcon": true,
19167
+ // "title": i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
19168
+ // "msg": i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
19169
+ // },
19170
+ // "actionType": "toast"
19171
+ // }
19172
+ // ],
19173
+ // },
19174
+ change: {
19175
+ weight: 0,
19176
+ actions: [
19177
+ {
19178
+ "actionType": "reload",
19179
+ "componentId": "u:next_step",
19180
+ "args": {}
19181
+ },
19182
+ ...changeEvents
19183
+ ]
19184
+ }
19178
19185
  }
19179
- }
19180
- },
19181
- await getInstanceApprovalHistory(),
19182
- await getApproveButton(instance, { submitEvents , nextStepInitedEvents, nextStepChangeEvents, nextStepUserChangeEvents})
19183
- ],
19186
+ },
19187
+ await getInstanceApprovalHistory(),
19188
+ await getApproveButton(instance, { submitEvents , nextStepInitedEvents, nextStepChangeEvents, nextStepUserChangeEvents})
19189
+ ],
19190
+ "size": "none",
19191
+ "className": "steedos-amis-instance-view-content"
19192
+ }],
19184
19193
  id: "u:instancePage",
19185
19194
  messages: {},
19186
19195
  pullRefresh: {},