@policystudio/policy-studio-ui-vue 1.1.0 → 1.1.2
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/dist/css/psui_styles.css
CHANGED
package/package.json
CHANGED
|
@@ -352,40 +352,21 @@ export default {
|
|
|
352
352
|
this.$forceUpdate()
|
|
353
353
|
this.$emit('collapse-row', this.collapsedRows)
|
|
354
354
|
},
|
|
355
|
-
shouldShowIcon(item) {
|
|
356
|
-
if(item.actions && (item.deep == 1 || item.deep == 2)) {
|
|
357
|
-
return true
|
|
358
|
-
} else {
|
|
359
|
-
return false
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
355
|
onRowHover(index) {
|
|
363
356
|
this.isHoveringRow = index
|
|
364
357
|
},
|
|
358
|
+
shouldShowIcon(item) {
|
|
359
|
+
if(item?.action && item?.deep == 2) return true
|
|
360
|
+
else return false
|
|
361
|
+
},
|
|
365
362
|
getIcon(item) {
|
|
366
|
-
if(item
|
|
367
|
-
return item.actions[1].icon
|
|
368
|
-
} else if(item.actions && !item.is_disabled) {
|
|
369
|
-
return item.actions[0].icon
|
|
370
|
-
} else {
|
|
371
|
-
return ''
|
|
372
|
-
}
|
|
363
|
+
if(item?.action) return item.action.icon
|
|
373
364
|
},
|
|
374
365
|
getText(item) {
|
|
375
|
-
if(item
|
|
376
|
-
return item.actions[1].text
|
|
377
|
-
} else if(item.actions && !item.is_disabled) {
|
|
378
|
-
return item.actions[0].text
|
|
379
|
-
} else {
|
|
380
|
-
return ''
|
|
381
|
-
}
|
|
366
|
+
if(item?.action) return item.action.text
|
|
382
367
|
},
|
|
383
368
|
executeCallback(item) {
|
|
384
|
-
if(item
|
|
385
|
-
item.actions[1].callback()
|
|
386
|
-
} else if(item.actions && !item.is_disabled) {
|
|
387
|
-
item.actions[0].callback()
|
|
388
|
-
}
|
|
369
|
+
if(item?.action) item.action.callback(item)
|
|
389
370
|
},
|
|
390
371
|
}
|
|
391
372
|
}
|