w-ui-v1 1.1.8 → 1.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
package/w-card/w-card.vue CHANGED
@@ -250,9 +250,12 @@ const getTitleValue = (value: any, title: string) => {
250
250
  }
251
251
 
252
252
  //判断编辑按钮是否显示
253
- function isShowEditButton(visibleItems:any){
253
+ function isShowEditButton(){
254
254
  if(props.editButtonConfig.show){
255
- return props.editButtonConfig.show(visibleItems)
255
+ return props.editButtonConfig.show({
256
+ data:items.value,
257
+ sourceId:props.sourceId
258
+ })
256
259
  }else{
257
260
  return props.page.buttons.includes('dtmplEdit')
258
261
  }
@@ -343,7 +346,7 @@ function isShowEditButton(visibleItems:any){
343
346
  <wd-button :round="false" size="small" class="btn" v-if="props.page.buttons.includes('detail')" @click="goto('detail')">
344
347
  详情
345
348
  </wd-button>
346
- <wd-button :round="false" type="warning" size="small" class="btn" v-if="isShowEditButton(visibleItems)"
349
+ <wd-button :round="false" type="warning" size="small" class="btn" v-if="isShowEditButton()"
347
350
  @click="goto('edit')">
348
351
  {{props.editButtonConfig.label||"编辑"}}
349
352
  </wd-button>