wui-components-v2 1.1.22 → 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.
@@ -38,7 +38,7 @@ const model = ref<any>({})
38
38
  const fields = computed(() => {
39
39
  return props.fieldGroup?.fields.filter((item) => {
40
40
  // return !item.title?.includes('y')
41
- return item
41
+ return !item.title?.endsWith('y')// 排除字符串的最后一个字符为y的项
42
42
  })
43
43
  })
44
44
  // 初始化表单数据
@@ -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.22",
3
+ "version": "1.1.24",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",