Files
certd/packages/ui/certd-client/src/components/plugins/common/params-show.vue
T

34 lines
719 B
Vue
Raw Normal View History

2025-12-14 01:36:20 +08:00
<template>
<div class="params-show">
<a-tag v-for="item of params" :key="item.value" type="primary" color="green" class="item">
2025-12-14 23:19:32 +08:00
<span class="label">{{ item.label }}=</span>
<fs-copyable :model-value="`\$\{${item.value}\}`" :button="{ show: false }" :inline="true"></fs-copyable>
2025-12-14 23:19:32 +08:00
</a-tag>
2025-12-14 01:36:20 +08:00
</div>
</template>
<script setup lang="ts">
defineOptions({
name: "ParamsShow",
});
const props = defineProps<{
params: { value: string; label: string }[];
}>();
</script>
<style lang="less">
.params-show {
display: flex;
flex-wrap: wrap;
align-items: center;
2025-12-14 23:19:32 +08:00
min-height: 32px;
2025-12-14 01:36:20 +08:00
.item {
display: flex;
align-items: center;
2025-12-14 23:19:32 +08:00
margin-bottom: 2px;
margin-top: 2px;
2025-12-14 01:36:20 +08:00
}
}
</style>