import { Button, Select, Slider } from 'ant-design-vue' import { computed, defineComponent, ref, Transition, watch } from 'vue' import useLayoutStore from '../useLayoutStore' import Rect from '@/utils/Rect' import useResource from './useResource' import { DownloadOutlined, EyeInvisibleOutlined, SwapOutlined } from '@ant-design/icons-vue' import SettingItem from '@/settings/SettingItem' import useSettingsStore from '@/settings/useSettingsStore' import { v4 as uuid } from 'uuid' import useRouterStore from '@/useRouterStore' export default defineComponent(() => { const layout = useLayoutStore() const router = useRouterStore() const selected = ref(0) watch( () => layout.state.current, (val) => { selected.value = val }, { immediate: true } ) const resource = useResource( computed(() => layout.state.content[selected.value].background), 'background' ) const settings = useSettingsStore() return () => (