mirror of https://github.com/rancher/dashboard.git
29 lines
476 B
Vue
29 lines
476 B
Vue
<script>
|
|
export default {
|
|
props: {
|
|
value: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
col: {
|
|
type: Object,
|
|
default: () => {}
|
|
}
|
|
},
|
|
computed: {
|
|
capitalized() {
|
|
return this.value.charAt(0).toUpperCase() + this.value.slice(1);
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<span>
|
|
{{ capitalized }}
|
|
<template v-if="!capitalized && col.dashIfEmpty">
|
|
<span class="text-muted">—</span>
|
|
</template>
|
|
</span>
|
|
</template>
|