@policystudio/policy-studio-ui-vue 1.1.50 → 1.1.52
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
|
@@ -229,7 +229,6 @@
|
|
|
229
229
|
Show projections in the chart
|
|
230
230
|
</template>
|
|
231
231
|
</PsTooltip>
|
|
232
|
-
|
|
233
232
|
<p v-if="!column.isSwitch">
|
|
234
233
|
<template v-if="column.hasScoreHelper">
|
|
235
234
|
<PsTooltip
|
|
@@ -249,7 +248,6 @@
|
|
|
249
248
|
{{ getItemContent(column, item) }}
|
|
250
249
|
</template>
|
|
251
250
|
</p>
|
|
252
|
-
|
|
253
251
|
<PsProgressBar
|
|
254
252
|
v-if="column.isChart && formatFunction && item.data[column.key] != null"
|
|
255
253
|
:value="formatFunction(column.key, item.data[column.key], item.data) == '--' ? 0 : item.data[column.key]"
|
|
@@ -438,6 +436,10 @@ export default {
|
|
|
438
436
|
},
|
|
439
437
|
switchButtonBackgroundColor:{
|
|
440
438
|
type:String,
|
|
439
|
+
},
|
|
440
|
+
preventIsDisabledOnItemsValue:{
|
|
441
|
+
type: Boolean,
|
|
442
|
+
default: false
|
|
441
443
|
}
|
|
442
444
|
},
|
|
443
445
|
data: () => ({
|
|
@@ -564,7 +566,7 @@ export default {
|
|
|
564
566
|
getItemContent(column, item) {
|
|
565
567
|
if ( column.isSwitch ) return
|
|
566
568
|
|
|
567
|
-
if (this.formatFunction && !item.is_disabled) {
|
|
569
|
+
if (this.formatFunction && !item.is_disabled || this.preventIsDisabledOnItemsValue) {
|
|
568
570
|
return this.formatFunction(column.key, item.data[column.key], item.data, item.study_id)
|
|
569
571
|
} else if (item.is_disabled) {
|
|
570
572
|
return '--'
|