w-ui-v1 1.1.10 → 1.1.11

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 +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
package/w-card/w-card.vue CHANGED
@@ -262,6 +262,17 @@ function isShowEditButton(){
262
262
 
263
263
  }
264
264
 
265
+ //编辑按钮文字
266
+ function EditButtonLabel(){
267
+ if(props.editButtonConfig.label){
268
+ return props.editButtonConfig.label({
269
+ sourceId:props.sourceId
270
+ })
271
+ }else{
272
+ return "编辑"
273
+ }
274
+
275
+ }
265
276
  </script>
266
277
 
267
278
  <template>
@@ -348,7 +359,7 @@ function isShowEditButton(){
348
359
  </wd-button>
349
360
  <wd-button :round="false" type="warning" size="small" class="btn" v-if="isShowEditButton()"
350
361
  @click="goto('edit')">
351
- {{props.editButtonConfig.label||"编辑"}}
362
+ {{EditButtonLabel()}}
352
363
  </wd-button>
353
364
  <!-- //假删除按钮,在新增、编辑页面才会出现 -->
354
365
  <wd-button :round="false" size="small" class="btn" type="error" @click="delerelation"