File size: 1,541 Bytes
834bfcd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!-- 密钥状态标签页切换 -->
<div class="flex items-center bg-gray-100 p-1 rounded-lg shadow-sm">
    <button

        @click="switchView('valid')"

        class="relative inline-flex items-center px-4 py-2 rounded-md text-sm font-medium transition-all duration-200 min-w-24 justify-center"

        :class="{

            'bg-white text-primary-700 shadow-sm': currentView === 'valid',

            'text-gray-500 hover:text-gray-700': currentView !== 'valid'

        }"

    >
        <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
            <path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
        </svg>
        有效密钥
    </button>
    <button

        @click="switchView('invalid')"

        class="relative inline-flex items-center px-4 py-2 rounded-md text-sm font-medium transition-all duration-200 min-w-24 justify-center"

        :class="{

            'bg-white text-red-700 shadow-sm': currentView === 'invalid',

            'text-gray-500 hover:text-gray-700': currentView !== 'invalid'

        }"

    >
        <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
            <path stroke-linecap="round" stroke-linejoin="round" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
        </svg>
        无效密钥
    </button>
</div>