mirror of https://github.com/rancher/dashboard.git
25 lines
358 B
Vue
25 lines
358 B
Vue
<script>
|
|
export default {
|
|
props: {
|
|
value: {
|
|
type: Array,
|
|
default: () => []
|
|
}
|
|
},
|
|
data() {
|
|
const { hostPort = '', protocol = '' } = this.value[0] || {};
|
|
|
|
return { hostPort, protocol };
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="hostPort">
|
|
{{ hostPort+'/'+protocol }}
|
|
</div>
|
|
<div v-else>
|
|
—
|
|
</div>
|
|
</template>
|