This commit is contained in:
expdsn 2024-10-08 14:29:31 +08:00
parent 20d34cbb12
commit a5b0f47e8a
2 changed files with 14 additions and 5 deletions

View File

@ -61,12 +61,12 @@ export default defineComponent(() => {
}) })
return () => ( return () => (
<div class={clsx('w-full flex-col h-full relative flex px-7 py-7 text-[14px]', isGame.value ? 'bg-[#2c2e3e] text-white' <div class={clsx('w-full flex-col h-full relative flex px-7 py-7 text-[14px]', isGame.value ? 'bg-[#2c2e3e] text-white'
: 'text-white' : 'text-[#333] bg-white'
)} )}
style={{ style={isGame.value ? {
backgroundImage: `url('/bg/gameModel.png')`, backgroundImage: `url('/bg/gameModel.png')`,
backgroundSize: '100% 100%', backgroundSize: '100% 100%',
}}> } : null}>
<div class="flex w-full justify-between items-center border-b-[1px] border-solid border-white/[.2] pb-2"> <div class="flex w-full justify-between items-center border-b-[1px] border-solid border-white/[.2] pb-2">
<OhVueIcon name={BiChevronLeft.name} scale={1.4} class="cursor-pointer"></OhVueIcon> <OhVueIcon name={BiChevronLeft.name} scale={1.4} class="cursor-pointer"></OhVueIcon>
<span class="font-bold text-[14px] "></span> <span class="font-bold text-[14px] "></span>

View File

@ -12,7 +12,14 @@ export default defineComponent({
selectType: { selectType: {
type: String, type: String,
required: true, required: true,
},
selectNode: {
type: Node,
required: true,
},
unSelectNode: {
type: Object,
required: true,
} }
}, },
emits: ['update:type'], emits: ['update:type'],
@ -33,6 +40,7 @@ export default defineComponent({
}, },
}); });
}) })
watch(() => [props.selectType], () => { watch(() => [props.selectType], () => {
const idx = props.list.findIndex((item) => item.id === props.selectType) const idx = props.list.findIndex((item) => item.id === props.selectType)
if (idx === -1) return if (idx === -1) return
@ -67,6 +75,7 @@ export default defineComponent({
}}> }}>
< div class="w-full flex gap-x-2 " > < div class="w-full flex gap-x-2 " >
{ {
props.list.map((item, index) => ( props.list.map((item, index) => (
<button <button
key={item.id} key={item.id}