安全页重构:免密登录与活跃会话;按钮规范统一
CI / test (push) Successful in 53s

This commit is contained in:
2026-07-30 12:23:16 +08:00
parent d0fbecbd43
commit d675b950ee
43 changed files with 1944 additions and 475 deletions
+22
View File
@@ -0,0 +1,22 @@
<script setup lang="ts">
/**
* 互斥单选的 chip 按钮(按钮规范第 8 条):选中 accent 描边 + 浅底 + 加粗;
* dashed 为「自定义」扩展位。多选/触发器场景不要用它。
*/
defineProps<{ active?: boolean; dashed?: boolean }>()
</script>
<template>
<button
type="button"
class="rounded-md border px-3 py-1.5 text-xs transition-colors enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-60"
:class="[
active
? 'border-accent bg-accent/10 font-semibold text-accent'
: 'border-line bg-white text-ink-2 enabled:hover:border-ink-3',
dashed ? 'border-dashed' : '',
]"
>
<slot />
</button>
</template>