import SettingItem from '@/settings/SettingItem'
import useSettingsStore from '@/settings/useSettingsStore'
import { Switch } from 'ant-design-vue'
import clsx from 'clsx'
import { defineComponent } from 'vue'
export default defineComponent({
name: 'SiderSetting',
props: {},
setup() {
const settings = useSettingsStore()
return () => (
{
settings.state.siderDirection = 'left'
}}
class={clsx(
'bg-white 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'
)}
>
{
settings.state.siderDirection = 'right'
}}
class={clsx(
'bg-white 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'
)}
>
自动隐藏
}}
>
{
if (e) settings.state.showSider = 'auto'
else settings.state.showSider = 'show'
}}
/>
{' '}
)
}
})