File tree 2 files changed +5
-39
lines changed
src/components/Main/MainView/QallView
2 files changed +5
-39
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { defineProps , useCssModule , computed } from ' vue'
2
+ import { defineProps } from ' vue'
3
3
import AIcon from ' /@/components/UI/AIcon.vue'
4
4
5
5
const props = defineProps ({
6
6
onClick: {
7
7
type: Function ,
8
8
required: true
9
- },
10
- inverted: {
11
- type: Boolean ,
12
- default: false
13
9
}
14
10
})
15
11
16
- const style = useCssModule ()
17
-
18
12
function handleClick() {
19
13
props .onClick ?.()
20
14
}
21
-
22
- const iconClass = computed (() => ({
23
- [style .inverted ]: props .inverted
24
- }))
25
-
26
- const buttonClass = computed (() => ({
27
- [style .detailButton ]: true ,
28
- [style .invertedBackground ]: props .inverted ,
29
- [style .normalBackground ]: ! props .inverted
30
- }))
31
15
</script >
32
16
33
17
<template >
34
- <button :class =" buttonClass " @click =" handleClick" >
35
- <AIcon name =" plus-circle" mdi :class = " iconClass " : size =" 24" />
18
+ <button :class =" $style.detailButton " @click =" handleClick" >
19
+ <AIcon name =" plus-circle" mdi :size =" 24" />
36
20
</button >
37
21
</template >
38
22
@@ -45,22 +29,7 @@ const buttonClass = computed(() => ({
45
29
align-items : center ;
46
30
justify-content : center ;
47
31
border-radius : 50% ;
48
- width : 32px ;
49
- height : 32px ;
50
- }
51
-
52
- .inverted {
53
- filter : invert (1 );
54
- }
55
-
56
- .invertedBackground {
57
- background-color : white ;
58
- width : 24px ;
59
- height : 24px ;
60
- }
61
-
62
- .normalBackground {
63
- background-color : black ;
32
+ background-color : $theme-background-primary-default ;
64
33
width : 24px ;
65
34
height : 24px ;
66
35
}
Original file line number Diff line number Diff line change @@ -239,10 +239,7 @@ const toggleDanmaku = () => {
239
239
:on-click =" toggleVideo"
240
240
:inverted =" isCameraOn"
241
241
/>
242
- <DetailButton
243
- :inverted =" isCameraOn"
244
- @click =" showCameraDetailSetting = true"
245
- />
242
+ <DetailButton @click =" showCameraDetailSetting = true" />
246
243
<CameraDetailSetting
247
244
:open =" showCameraDetailSetting"
248
245
:video-inputs =" videoInputs"
You can’t perform that action at this time.
0 commit comments