import { defineComponent, ref, watch } from 'vue'
import useLayoutStore from '../useLayoutStore'
import { OhVueIcon, addIcons } from 'oh-vue-icons'
import { MdVideogameassetTwotone, MdWorkhistoryTwotone, MdStarsTwotone } from 'oh-vue-icons/icons'
addIcons(MdVideogameassetTwotone, MdWorkhistoryTwotone, MdStarsTwotone)
export default defineComponent(() => {
const hover = ref(false)
const selected = ref<0 | 1 | 2>(0)
const layout = useLayoutStore()
watch(
() => layout.state.current,
(val) => {
selected.value = val
},
{ immediate: true }
)
return () => (
(hover.value = true)}
onMouseleave={() => (hover.value = false)}
>
{/* 转盘 */}
游戏
工作
休闲
)
})