Files
certd/packages/ui/certd-client/src/components/icon-select.vue
T
xiaojunnuo 205a7d134e chore: 整理代码并修复部分交互细节
1. 移除configuration.ts中多余的空行
2. 调整dns-persist列表列宽至220px
3. 为icon-select新增selected-change事件并传递选中项信息
4. 优化apply-template的infoRequest逻辑,处理空id情况
5. 调整设置弹窗宽度至600px,更新绑定按钮文案
6. 为sslProvider新增mergeScript,切换时清空acme账号配置
7. 更新helper文案修正ZeroSSL翻墙说明
2026-06-04 00:41:51 +08:00

28 lines
768 B
Vue

<template>
<a-select :value="value" :filter-option="true" @update:value="onChange">
<a-select-option v-for="item of options" :key="item.value" :value="item.value" :label="item.label">
<span class="flex-o">
<fs-icon :icon="item.icon" class="fs-16 color-blue mr-5" />
{{ item.label }}
</span>
</a-select-option>
</a-select>
</template>
<script lang="ts" setup>
const props = defineProps<{
options: { value: any; label: string; icon: string }[];
value: any;
}>();
const emit = defineEmits(["update:value", "selected-change"]);
function onChange(value: any) {
const item = props.options.find(item => item.value === value);
emit("update:value", value);
emit("selected-change", {
value,
...item,
});
}
</script>