@steedos-widgets/amis-lib 6.10.2-beta.2 → 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/index.esm.js CHANGED
@@ -6790,7 +6790,7 @@ const parseSingleExpression = function (func, formData, dataPath, global, userSe
6790
6790
  * @Author: baozhoutao@steedos.com
6791
6791
  * @Date: 2022-11-01 15:51:00
6792
6792
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
6793
- * @LastEditTime: 2025-07-22 14:29:15
6793
+ * @LastEditTime: 2025-10-14 15:53:35
6794
6794
  * @Description:
6795
6795
  */
6796
6796
 
@@ -6943,7 +6943,7 @@ const getSchema$5 = async (uiSchema, ctx) => {
6943
6943
  }
6944
6944
  ],
6945
6945
  "showCloseButton": true,
6946
- "id": "u:e11347411d2d",
6946
+ "id": "u:standard_new_dialog",
6947
6947
  "closeOnEsc": false,
6948
6948
  "closeOnOutside": false,
6949
6949
  "size": "lg",
@@ -6960,7 +6960,22 @@ const getSchema$5 = async (uiSchema, ctx) => {
6960
6960
  actionType: 'confirm',
6961
6961
  close: false,
6962
6962
  id: "confirmAndNew",
6963
- className: 'form-btn-save_and_new'
6963
+ className: 'form-btn-save_and_new',
6964
+ "onEvent": {
6965
+ "click": {
6966
+ "actions": [
6967
+ {
6968
+ "actionType": "setValue",
6969
+ "componentId": "u:standard_new_dialog",
6970
+ "args": {
6971
+ "value": {
6972
+ "__saveAndNewRecord": true
6973
+ }
6974
+ }
6975
+ }
6976
+ ]
6977
+ }
6978
+ }
6964
6979
  },
6965
6980
  {
6966
6981
  type: 'button',
@@ -20461,9 +20476,9 @@ const getFlowFormSchema = async (instance, box) => {
20461
20476
 
20462
20477
  if(amisSchemaStr){
20463
20478
  const onEvent = JSON.parse(instance.formVersion.amis_schema).onEvent;
20464
- initedEvents = onEvent.inited.actions || [];
20465
- changeEvents = onEvent.change.actions || [];
20466
- submitEvents = onEvent.submit.actions || [];
20479
+ initedEvents = onEvent?.inited.actions || [];
20480
+ changeEvents = onEvent?.change.actions || [];
20481
+ submitEvents = onEvent?.submit.actions || [];
20467
20482
  }
20468
20483
 
20469
20484
  console.log('getFlowFormSchema formContentSchema', formContentSchema);
@@ -20580,7 +20595,7 @@ const getFlowFormSchema = async (instance, box) => {
20580
20595
  await getInstanceApprovalHistory(),
20581
20596
  await getApproveButton(instance, submitEvents)
20582
20597
  ],
20583
- id: "u:63849ea39e12",
20598
+ id: "u:instancePage",
20584
20599
  messages: {},
20585
20600
  pullRefresh: {},
20586
20601
  regions: [
@@ -20591,6 +20606,11 @@ const getFlowFormSchema = async (instance, box) => {
20591
20606
  "@data.@instanceDetail.changed": {
20592
20607
  actions: [
20593
20608
  {
20609
+ actionType: "custom",
20610
+ script:"debugger;",
20611
+ },
20612
+ {
20613
+ componentId:"u:instancePage",
20594
20614
  actionType: "reload"
20595
20615
  }
20596
20616
  ]
@@ -20607,22 +20627,7 @@ const getFlowFormSchema = async (instance, box) => {
20607
20627
  },
20608
20628
  ...initedEvents
20609
20629
  ]
20610
- },
20611
- // inited: {
20612
- // weight: 0,
20613
- // actions: [
20614
- // // {
20615
- // // componentId: "steedos-approve-button",
20616
- // // actionType: "click",
20617
- // // },
20618
- // // {
20619
- // // "componentId": "",
20620
- // // "args": {},
20621
- // // "actionType": "drawer",
20622
- // // "drawer": await getApprovalDrawerSchema()
20623
- // // }
20624
- // ],
20625
- // }
20630
+ }
20626
20631
  },
20627
20632
  initApi:{
20628
20633
  "url": "${context.rootUrl}/graphql",
@@ -20654,8 +20659,6 @@ const getFlowFormSchema = async (instance, box) => {
20654
20659
  return payload;
20655
20660
  `,
20656
20661
  "data": {
20657
- // "&": "$$",
20658
- // "context": "${context}",
20659
20662
  "judge": "${new_judge}",
20660
20663
  }
20661
20664
  },