w-ui-v1 1.0.95 → 1.0.97

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/w-card/w-card.vue +11 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
package/w-card/w-card.vue CHANGED
@@ -144,13 +144,19 @@ function goto(type: string, item: any = {}, subItem: any = {}) {
144
144
 
145
145
  }
146
146
  if(props.page.classEditConfigs?.length>0){
147
- let con= props.page.classEditConfigs.find((item:any)=>{
148
- return item.preposes[0].defaultValue===props.itemData.fieldMap[item.preposes[0].id]
147
+ let con= props.page.classEditConfigs[0].preposes.find((item:any)=>{
148
+ return item.defaultValue.includes(props.itemData.fieldMap[item.id])
149
149
  })
150
+ if(con){
151
+ uni.navigateTo({
152
+ url: `/pages/edit/edit?sourceId=${con.id}&code=${props.itemData.code}`,
153
+ })
154
+ }else{
155
+ uni.navigateTo({
156
+ url: `/pages/edit/edit?sourceId=${props.sourceId}&code=${props.itemData.code}`,
157
+ })
158
+ }
150
159
 
151
- uni.navigateTo({
152
- url: `/pages/edit/edit?sourceId=${con.id}&code=${props.itemData.code}`,
153
- })
154
160
  }else{
155
161
  uni.navigateTo({
156
162
  url: `/pages/edit/edit?sourceId=${props.sourceId}&code=${props.itemData.code}`,