File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/views/component_built_in_example Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 33 enabled : false
44 </route >
55
6+ <script setup lang="ts">
7+ const hand = ref <' peace' | ' rock' | ' paper' >(' peace' )
8+ </script >
9+
610<template >
711 <div >
812 <FaPageHeader title =" 按钮" description =" FaButton" />
6468 删除
6569 </FaButton >
6670 </FaButtonGroup >
71+ <div class =" flex flex-col gap-2" >
72+ <div >单选按钮组</div >
73+ <FaButtonGroup class =" gap-0 space-x-[-1px]" >
74+ <FaButton :variant =" hand === 'peace' ? 'default' : 'outline'" size =" icon" :class =" { 'z-1': hand === 'peace' }" @click =" hand = 'peace'" >
75+ <FaIcon name =" i-fa-regular:hand-peace" class =" size-4" />
76+ </FaButton >
77+ <FaButton :variant =" hand === 'rock' ? 'default' : 'outline'" size =" icon" :class =" { 'z-1': hand === 'rock' }" @click =" hand = 'rock'" >
78+ <FaIcon name =" i-fa-regular:hand-rock" class =" size-4" />
79+ </FaButton >
80+ <FaButton :variant =" hand === 'paper' ? 'default' : 'outline'" size =" icon" :class =" { 'z-1': hand === 'paper' }" @click =" hand = 'paper'" >
81+ <FaIcon name =" i-fa-regular:hand-paper" class =" size-4" />
82+ </FaButton >
83+ </FaButtonGroup >
84+ </div >
6785 </div >
6886 </FaPageMain >
6987 </div >
You can’t perform that action at this time.
0 commit comments