mirror of https://github.com/rancher/dashboard.git
35 lines
449 B
Vue
35 lines
449 B
Vue
<script>
|
|
export default {
|
|
props: {
|
|
value: {
|
|
type: [String, Number],
|
|
default: ''
|
|
},
|
|
|
|
prefix: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
|
|
suffix: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
},
|
|
|
|
computed: {},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<span
|
|
v-if="!value"
|
|
class="text-muted"
|
|
>
|
|
—
|
|
</span>
|
|
<span v-else>
|
|
{{ t('generic.number', {value, prefix, suffix}) }}
|
|
</span>
|
|
</template>
|