w-ui-v1 1.1.7 → 1.1.9

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