@steedos-widgets/amis-lib 6.10.34-beta.2 → 6.10.34-beta.4

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
@@ -14556,8 +14556,8 @@ function uuidv4() {
14556
14556
  /*
14557
14557
  * @Author: 殷亮辉 yinlianghui@hotoa.com
14558
14558
  * @Date: 2023-11-15 09:50:22
14559
- * @LastEditors: yinlianghui yinlianghui@hotoa.com
14560
- * @LastEditTime: 2025-12-10 17:04:58
14559
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
14560
+ * @LastEditTime: 2025-12-11 11:47:53
14561
14561
  */
14562
14562
 
14563
14563
  /**
@@ -15175,6 +15175,17 @@ function getFormPaginationWrapper(props, form, mode) {
15175
15175
  "value": lastestFieldValue
15176
15176
  }
15177
15177
  });
15178
+
15179
+ // 延时再保存一次当前页数据到子表组件中,解决新增/复制新增行后关闭弹出窗口时数据丢失造成翻页页码错误问题
15180
+ setTimeout(function(){
15181
+ doAction({
15182
+ "componentId": "${props.id}",
15183
+ "actionType": "setValue",
15184
+ "args": {
15185
+ "value": lastestFieldValue
15186
+ }
15187
+ });
15188
+ }, 1000);
15178
15189
  }
15179
15190
  event.data.__tableItems.forEach(function(n,i){
15180
15191
  event.data.__tableItems[i] = lastestFieldValue[i];
@@ -15255,7 +15266,7 @@ async function getForm(props, mode = "edit", formId) {
15255
15266
  "type": "form",
15256
15267
  "id": formId,
15257
15268
  "title": "表单",
15258
- "debug": false,
15269
+ "debug": window.amis_form_debug || false,
15259
15270
  "mode": "normal",
15260
15271
  "body": body,
15261
15272
  "wrapWithPanel": false,
@@ -15496,6 +15507,17 @@ async function getButtonActions(props, mode) {
15496
15507
  }
15497
15508
  // 触发翻页按钮事件,实现保存当前页数据并跳转到最后一行
15498
15509
  scope.getComponentById(buttonNextId).props.dispatchEvent("click", event.data);
15510
+
15511
+ // 延时再保存一次当前页数据到子表组件中,解决新增/复制新增行后关闭弹出窗口时数据丢失造成翻页页码错误问题
15512
+ setTimeout(function(){
15513
+ doAction({
15514
+ "componentId": "${props.id}",
15515
+ "actionType": "setValue",
15516
+ "args": {
15517
+ "value": fieldValue
15518
+ }
15519
+ });
15520
+ }, 1000);
15499
15521
  `;
15500
15522
  let onSaveAndCopyItemScript = `
15501
15523
  let scope = event.context.scoped;
@@ -15568,6 +15590,17 @@ async function getButtonActions(props, mode) {
15568
15590
  }
15569
15591
  // 触发翻页按钮事件,实现保存当前页数据并跳转到最后一行
15570
15592
  scope.getComponentById(buttonNextId).props.dispatchEvent("click", event.data);
15593
+
15594
+ // 延时再保存一次当前页数据到子表组件中,解决新增/复制新增行后关闭弹出窗口时数据丢失造成翻页页码错误问题
15595
+ setTimeout(function(){
15596
+ doAction({
15597
+ "componentId": "${props.id}",
15598
+ "actionType": "setValue",
15599
+ "args": {
15600
+ "value": fieldValue
15601
+ }
15602
+ });
15603
+ }, 1000);
15571
15604
  `;
15572
15605
  let dialogButtons = [
15573
15606
  {