diff --git a/web/components/OutboundCard.vue b/web/components/OutboundCard.vue index a172b08..7ddb0eb 100644 --- a/web/components/OutboundCard.vue +++ b/web/components/OutboundCard.vue @@ -8,7 +8,7 @@ import IconFlash from '~icons/ri/flashlight-line' import IconLoad from '~icons/ri/loader-4-line' -defineProps<{ +const props = defineProps<{ name: string /** 第二行。策略组显示「类型(当前选中)」,线路显示协议 */ sub: string @@ -36,6 +36,14 @@ defineProps<{ const emit = defineEmits<{ pick: []; test: [] }>() +/** + * foot 的空白处也算选择。它属于卡片,点了没反应会让人以为卡片坏了; + * 延迟按钮自己 stop 掉冒泡,测延迟不会连带换线。 + */ +function pickFromFoot() { + if (!props.disabledReason) emit('pick') +} + function delayClass(ms: number | null): string { if (ms === null) return '' if (ms < 200) return 'd-ok' @@ -69,14 +77,14 @@ function delayClass(ms: number | null): string { -