Commit 7d21ea82 by pangchong

feat: 样式调整

parent 66d66bef
...@@ -30,6 +30,7 @@ import useUserStore from '@/store/user' ...@@ -30,6 +30,7 @@ import useUserStore from '@/store/user'
import { Notification, ValidatedError } from '@arco-design/web-vue' import { Notification, ValidatedError } from '@arco-design/web-vue'
import { alova } from '@/api/alova-instance' import { alova } from '@/api/alova-instance'
import { useRequest } from 'alova' import { useRequest } from 'alova'
import { debounce } from 'lodash'
const loginForm = reactive({ const loginForm = reactive({
username: '', username: '',
...@@ -107,11 +108,11 @@ const getCaptcha = async () => { ...@@ -107,11 +108,11 @@ const getCaptcha = async () => {
} }
watch( watch(
() => loginForm.username, () => loginForm.username,
(value) => { debounce((value) => {
if (value) { if (value) {
getCaptcha() getCaptcha()
} }
} }, 500)
) )
</script> </script>
<style lang="less" scoped></style> <style lang="less" scoped></style>
<template> <template>
<template v-for="(item, index) in data" :key="item.id"> <template v-for="(item, index) in data" :key="item.id">
<div class="item flex items-center px-4 py-3 rounded cursor-pointer" :class="{ active: chooseContactsItem?.id == item.id }" @click="handleClick(item)"> <div class="hover:bg-[var(--color-fill-1)] flex items-center px-4 py-3 rounded cursor-pointer" :class="{ 'bg-fill-bg1': chooseContactsItem?.id == item.id }" @click="handleClick(item)">
<global-avatar></global-avatar> <global-avatar></global-avatar>
<div class="ml-[9px] inline-block">{{ item.nickname }}</div> <div class="ml-[9px] inline-block">{{ item.nickname }}</div>
<div class="flex items-center ml-6"> <div class="flex items-center ml-6">
...@@ -57,9 +57,4 @@ onBeforeUnmount(() => { ...@@ -57,9 +57,4 @@ onBeforeUnmount(() => {
setChooseUser(undefined) setChooseUser(undefined)
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
.item.active,
.item:hover {
background-color: var(--color-fill-1);
}
</style>
<template> <template>
<a-checkbox-group v-model="checkbox" class="w-full"> <a-checkbox-group v-model="checkbox" class="w-full">
<template v-for="(item, index) in data" :key="item.id"> <template v-for="(item, index) in data" :key="item.id">
<div class="item flex items-center px-4 py-3 rounded cursor-pointer"> <div class="hover:bg-[var(--color-fill-1)] flex items-center px-4 py-3 rounded cursor-pointer">
<global-avatar></global-avatar> <global-avatar></global-avatar>
<div class="ml-[9px] inline-block">{{ item.nickname }}</div> <div class="ml-[9px] inline-block">{{ item.nickname }}</div>
<div class="flex-auto text-right"> <div class="flex-auto text-right">
...@@ -23,9 +23,4 @@ const ps = withDefaults(defineProps<Props>(), { ...@@ -23,9 +23,4 @@ const ps = withDefaults(defineProps<Props>(), {
}) })
const checkbox = defineModel<string[]>() const checkbox = defineModel<string[]>()
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
.item.active,
.item:hover {
background-color: var(--color-fill-1);
}
</style>
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
{{ videoTitle }} {{ videoTitle }}
</a-typography-paragraph> </a-typography-paragraph>
<a-space size="medium"> <a-space size="medium">
<div class="tool py-[9px] cursor-pointer"> <div class="tool py-[9px] bg-fill-bg1">
<global-icon icon="view-gallery" :size="12"></global-icon> <global-icon icon="view-gallery" :size="12"></global-icon>
<span class="ml-1 color-text-2">视图</span> <span class="ml-1 color-text-2">视图</span>
</div> </div>
<div class="tool py-[9px] cursor-pointer"> <div class="tool py-[9px] bg-fill-bg1">
<global-icon icon="fullscreen" :size="16"></global-icon> <global-icon icon="fullscreen" :size="16"></global-icon>
<span class="ml-1 color-text-2">全屏</span> <span class="ml-1 color-text-2">全屏</span>
</div> </div>
...@@ -35,7 +35,7 @@ onMounted(function () { ...@@ -35,7 +35,7 @@ onMounted(function () {
}) })
function idChangedHere(id: any) { function idChangedHere(id: any) {
inCenterUserVideoId.value = id; inCenterUserVideoId.value = id
} }
const userVideoContainerSet = computed(function () { const userVideoContainerSet = computed(function () {
...@@ -56,13 +56,6 @@ const videoTitle = ref('2024-02-17 10:22:23远程协助事件') ...@@ -56,13 +56,6 @@ const videoTitle = ref('2024-02-17 10:22:23远程协助事件')
} }
} }
.tool { .tool {
@apply flex-center px-2 rounded; @apply flex-center px-2 rounded cursor-pointer;
background-color: var(--color-fill-1);
}
.item {
@apply flex-center flex-col rounded cursor-pointer;
&:hover {
background-color: var(--color-fill-2);
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment