w-ui-v1 1.1.8 → 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 +1 -1
- package/w-card/w-card.vue +3 -3
package/package.json
CHANGED
package/w-card/w-card.vue
CHANGED
|
@@ -250,9 +250,9 @@ const getTitleValue = (value: any, title: string) => {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
//判断编辑按钮是否显示
|
|
253
|
-
function isShowEditButton(
|
|
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(visibleItems:any){
|
|
|
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(
|
|
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>
|