import SettingItem from '@/settings/SettingItem' import useSettingsStore from '@/settings/useSettingsStore' import { Switch } from 'ant-design-vue' import clsx from 'clsx' import { defineComponent } from 'vue' import useLayoutStore from '../useLayoutStore' export default defineComponent({ setup() { const settings = useSettingsStore() const layout = useLayoutStore() return () => (
{ settings.state.siderDirection = 'left' }} class={clsx( ' flex flex-col h-[92px] w-full p-3 justify-between rounded-lg cursor-pointer border-[1px] ', settings.state.siderDirection === 'left' ? 'border-[#ffa94d]' : 'border-transparent', layout.state.current === 0 ? 'bg-[#7B7C85]' : 'bg-white' )} >
{ settings.state.siderDirection = 'right' }} class={clsx( ' flex items-end w-full flex-col h-[92px] p-3 justify-between rounded-lg cursor-pointer border-[1px] ', settings.state.siderDirection === 'right' ? 'border-[#ffa94d]' : 'border-transparent', layout.state.current === 0 ? 'bg-[#7B7C85]' : 'bg-white' )} >
自动隐藏
}} > { if (e) settings.state.showSider = 'auto' else settings.state.showSider = 'show' }} />
{' '}
) } })