@steedos-widgets/amis-lib 6.10.2-beta.3 → 6.10.3
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 +10 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/flow.d.ts +8 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -20476,9 +20476,9 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
20476
20476
|
|
|
20477
20477
|
if(amisSchemaStr){
|
|
20478
20478
|
const onEvent = JSON.parse(instance.formVersion.amis_schema).onEvent;
|
|
20479
|
-
initedEvents = onEvent
|
|
20480
|
-
changeEvents = onEvent
|
|
20481
|
-
submitEvents = onEvent
|
|
20479
|
+
initedEvents = onEvent?.inited.actions || [];
|
|
20480
|
+
changeEvents = onEvent?.change.actions || [];
|
|
20481
|
+
submitEvents = onEvent?.submit.actions || [];
|
|
20482
20482
|
}
|
|
20483
20483
|
|
|
20484
20484
|
console.log('getFlowFormSchema formContentSchema', formContentSchema);
|
|
@@ -20595,7 +20595,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
20595
20595
|
await getInstanceApprovalHistory(),
|
|
20596
20596
|
await getApproveButton(instance, submitEvents)
|
|
20597
20597
|
],
|
|
20598
|
-
id: "u:
|
|
20598
|
+
id: "u:instancePage",
|
|
20599
20599
|
messages: {},
|
|
20600
20600
|
pullRefresh: {},
|
|
20601
20601
|
regions: [
|
|
@@ -20606,6 +20606,11 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
20606
20606
|
"@data.@instanceDetail.changed": {
|
|
20607
20607
|
actions: [
|
|
20608
20608
|
{
|
|
20609
|
+
actionType: "custom",
|
|
20610
|
+
script:"debugger;",
|
|
20611
|
+
},
|
|
20612
|
+
{
|
|
20613
|
+
componentId:"u:instancePage",
|
|
20609
20614
|
actionType: "reload"
|
|
20610
20615
|
}
|
|
20611
20616
|
]
|
|
@@ -20622,22 +20627,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
20622
20627
|
},
|
|
20623
20628
|
...initedEvents
|
|
20624
20629
|
]
|
|
20625
|
-
}
|
|
20626
|
-
// inited: {
|
|
20627
|
-
// weight: 0,
|
|
20628
|
-
// actions: [
|
|
20629
|
-
// // {
|
|
20630
|
-
// // componentId: "steedos-approve-button",
|
|
20631
|
-
// // actionType: "click",
|
|
20632
|
-
// // },
|
|
20633
|
-
// // {
|
|
20634
|
-
// // "componentId": "",
|
|
20635
|
-
// // "args": {},
|
|
20636
|
-
// // "actionType": "drawer",
|
|
20637
|
-
// // "drawer": await getApprovalDrawerSchema()
|
|
20638
|
-
// // }
|
|
20639
|
-
// ],
|
|
20640
|
-
// }
|
|
20630
|
+
}
|
|
20641
20631
|
},
|
|
20642
20632
|
initApi:{
|
|
20643
20633
|
"url": "${context.rootUrl}/graphql",
|
|
@@ -20669,8 +20659,6 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
20669
20659
|
return payload;
|
|
20670
20660
|
`,
|
|
20671
20661
|
"data": {
|
|
20672
|
-
// "&": "$$",
|
|
20673
|
-
// "context": "${context}",
|
|
20674
20662
|
"judge": "${new_judge}",
|
|
20675
20663
|
}
|
|
20676
20664
|
},
|