wui-components-v2 1.1.23 → 1.1.24

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.
@@ -277,7 +277,7 @@ async function save() {
277
277
  editPageDataSave(tree.value.sourceId || sourceId.value, id.value, newAll, tree.value.value || mainCode.value).then((res: any) => {
278
278
  // 发送事件
279
279
  if (addEvent.value)
280
- uni.$emit(addEvent.value, res.entityCode)
280
+ uni.$emit(addEvent.value, { entityCode: res.entityCode, data: newAll })
281
281
  if (editEvent.value)
282
282
  uni.$emit(editEvent.value, res.entityCode)
283
283
 
@@ -390,7 +390,7 @@ function gotoAdd(group: Groups) {
390
390
  // 接收添加页面发送过来的数据
391
391
  uni.$once(addEvent, (data: any) => {
392
392
  uni.$off(addEvent)
393
- getAddData([data], group.id)
393
+ getAddData([data.entityCode], group.id)
394
394
  })
395
395
  }
396
396
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",