mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
34 lines
719 B
Vue
34 lines
719 B
Vue
<template>
|
|
<div class="params-show">
|
|
<a-tag v-for="item of params" :key="item.value" type="primary" color="green" class="item">
|
|
<span class="label">{{ item.label }}=</span>
|
|
<fs-copyable :model-value="`\$\{${item.value}\}`" :button="{ show: false }" :inline="true"></fs-copyable>
|
|
</a-tag>
|
|
</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;
|
|
min-height: 32px;
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 2px;
|
|
margin-top: 2px;
|
|
}
|
|
}
|
|
</style>
|