NEZ-1390 feat: endpoint metric info 图标 hover 显示 metadata
This commit is contained in:
25
nezha-fronted/src/components/common/metaData.vue
Normal file
25
nezha-fronted/src/components/common/metaData.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div>
|
||||
<ul>
|
||||
<li><span class="metric-tip-list">metric : </span><span>{{metricTip ? metricTip : '--'}}</span></li>
|
||||
</ul>
|
||||
<ul v-for="(item,index) in metaDataList" :key="index">
|
||||
<li><span class="metric-tip-list">type : </span><span>{{item.type ? item.type : 'unknown'}}</span></li>
|
||||
<li><span class="metric-tip-list">help : </span><span>{{item.help ? item.help : '--'}}</span></li>
|
||||
<li><span class="metric-tip-list">unit : </span><span>{{item.unit ? item.unit : '--'}}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'metaData',
|
||||
props: {
|
||||
metaDataList: Array,
|
||||
metricTip: String
|
||||
},
|
||||
data () {
|
||||
return {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user