@ndscnj/roomkit-web-vue3 25.12.24161 → 25.12.24163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/imgs/vote-icon.png.mjs +4 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +0 -2
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.mjs +1 -1
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +53 -14
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +5 -53
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +59 -1
- package/es/components/RoomFooter/VoteControl/index.d.ts +0 -2
- package/es/components/RoomFooter/VoteControl/index.mjs +2 -2
- package/es/components/RoomFooter/index/index.d.ts +1 -6
- package/es/components/RoomFooter/index/indexH5.vue.d.ts +1 -3
- package/es/components/RoomFooter/index/indexH5.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexH5.vue2.mjs +5 -19
- package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +1 -2
- package/es/conference.vue.d.ts +1 -0
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +3 -0
- package/es/index.mjs +55 -52
- package/lib/assets/imgs/vote-icon.png.js +4 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +0 -2
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +52 -13
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +5 -53
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +60 -2
- package/lib/components/RoomFooter/VoteControl/index.d.ts +0 -2
- package/lib/components/RoomFooter/VoteControl/index.js +2 -2
- package/lib/components/RoomFooter/index/index.d.ts +1 -6
- package/lib/components/RoomFooter/index/indexH5.vue.d.ts +1 -3
- package/lib/components/RoomFooter/index/indexH5.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexH5.vue2.js +4 -18
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +0 -1
- package/lib/conference.vue.d.ts +1 -0
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +3 -0
- package/lib/index.js +55 -52
- package/package.json +1 -1
- package/src/TUIRoom/assets/imgs/vote-icon.png +0 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +42 -10
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +7 -1
- package/src/TUIRoom/components/RoomFooter/index/indexH5.vue +3 -14
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +0 -1
- package/src/TUIRoom/conference.vue +5 -2
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div v-if="
|
|
3
|
+
<div v-if="moreControlConfig.visible" class="more-control-container">
|
|
4
4
|
<icon-button
|
|
5
5
|
v-tap="showMore"
|
|
6
|
-
:is-active="sidebarName === '
|
|
7
|
-
:title="t('
|
|
6
|
+
:is-active="sidebarName === 'more'"
|
|
7
|
+
:title="t('More')"
|
|
8
8
|
>
|
|
9
9
|
<IconExtension size="24" />
|
|
10
10
|
</icon-button>
|
|
11
11
|
</div>
|
|
12
|
+
<div v-if="showMoreContent" ref="moreContentRef" class="show-more-content">
|
|
13
|
+
<div class="control-compent">
|
|
14
|
+
<chat-control
|
|
15
|
+
v-if="roomStore.isSpeakAfterTakingSeatMode"
|
|
16
|
+
@click="handleControlClick('chatControl')"
|
|
17
|
+
/>
|
|
18
|
+
<contact-control @click="handleControlClick('contactControl')" />
|
|
19
|
+
<invite-control
|
|
20
|
+
@show-overlay="handleShowOverlay"
|
|
21
|
+
@click="handleControlClick('inviteControl')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<div v-tap="handleCancelControl" class="close">{{ t('Cancel') }}</div>
|
|
25
|
+
</div>
|
|
12
26
|
</div>
|
|
13
27
|
</template>
|
|
14
28
|
<script setup lang="ts">
|
|
@@ -16,19 +30,37 @@ import { ref, onMounted, onUnmounted, defineEmits } from 'vue';
|
|
|
16
30
|
import { IconExtension } from '@tencentcloud/uikit-base-component-vue3';
|
|
17
31
|
import IconButton from '../../common/base/IconButton.vue';
|
|
18
32
|
import userMoreControl from './useMoreControlHooks';
|
|
33
|
+
import ChatControl from '../ChatControl.vue';
|
|
34
|
+
import InviteControl from '../InviteControl.vue';
|
|
35
|
+
import ContactControl from '../ContactControl.vue';
|
|
36
|
+
import { useRoomStore } from '../../../stores/room';
|
|
37
|
+
import bus from '../../../hooks/useMitt';
|
|
38
|
+
import vTap from '../../../directives/vTap';
|
|
19
39
|
import { roomService } from '../../../services';
|
|
20
|
-
|
|
40
|
+
|
|
41
|
+
const moreControlConfig = roomService.getComponentConfig('MoreControl');
|
|
21
42
|
const showMoreContent = ref(false);
|
|
22
43
|
const moreContentRef = ref();
|
|
23
|
-
|
|
24
|
-
const
|
|
44
|
+
|
|
45
|
+
const { t, sidebarName } = userMoreControl();
|
|
46
|
+
const roomStore = useRoomStore();
|
|
47
|
+
const emit = defineEmits(['show-overlay']);
|
|
25
48
|
function showMore() {
|
|
26
49
|
showMoreContent.value = true;
|
|
27
|
-
emit('on-vote', {
|
|
28
|
-
name: 'onVote',
|
|
29
|
-
visible:basicStore.isSidebarOpen,
|
|
30
|
-
});
|
|
31
50
|
}
|
|
51
|
+
|
|
52
|
+
function handleCancelControl() {
|
|
53
|
+
showMoreContent.value = false;
|
|
54
|
+
}
|
|
55
|
+
function handleControlClick(name: string) {
|
|
56
|
+
bus.emit('experience-communication', name);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function handleShowOverlay(data: { name: string; visible: boolean }) {
|
|
60
|
+
showMoreContent.value = false;
|
|
61
|
+
emit('show-overlay', data);
|
|
62
|
+
}
|
|
63
|
+
|
|
32
64
|
function handleDocumentClick(event: MouseEvent) {
|
|
33
65
|
if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
|
|
34
66
|
showMoreContent.value = false;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
>
|
|
8
8
|
<IconMore size="24" />
|
|
9
9
|
</icon-button>
|
|
10
|
+
<img class="ndsc-img-box" src="../../../assets/imgs/vote-icon.png" alt="" click="toggleMoreSidebar"/>
|
|
10
11
|
</div>
|
|
11
12
|
</template>
|
|
12
13
|
<script setup lang="ts">
|
|
@@ -32,4 +33,9 @@ function toggleMoreSidebar() {
|
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
</script>
|
|
35
|
-
<style lang="scss" scoped
|
|
36
|
+
<style lang="scss" scoped>
|
|
37
|
+
.ndsc-img-box{
|
|
38
|
+
width: 50px;
|
|
39
|
+
height: 50px
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -14,15 +14,7 @@
|
|
|
14
14
|
v-if="!roomStore.isSpeakAfterTakingSeatMode"
|
|
15
15
|
v-tap="() => handleControlClick('chatControl')"
|
|
16
16
|
/>
|
|
17
|
-
<
|
|
18
|
-
v-tap="() => handleControlClick('voteControl')"
|
|
19
|
-
@show-overlay="handleShowOverlay"
|
|
20
|
-
@on-vote="onVote"
|
|
21
|
-
>
|
|
22
|
-
<template #content>
|
|
23
|
-
<slot name="content"></slot>
|
|
24
|
-
</template>
|
|
25
|
-
</vote-control>
|
|
17
|
+
<slot name="contentH5"></slot>
|
|
26
18
|
<AIControl
|
|
27
19
|
@click="handleControlClick('AIControl')"
|
|
28
20
|
/>
|
|
@@ -55,7 +47,6 @@ import ChatControl from '../ChatControl.vue';
|
|
|
55
47
|
import MasterApplyControl from '../ManageStageControl.vue';
|
|
56
48
|
import MemberApplyControl from '../ApplyControl/MemberApplyControl.vue';
|
|
57
49
|
import MoreControl from '../MoreControl/index';
|
|
58
|
-
import VoteControl from '../VoteControl/index.ts';
|
|
59
50
|
import AIControl from '../AIControl.vue';
|
|
60
51
|
import bus from '../../../hooks/useMitt';
|
|
61
52
|
import vTap from '../../../directives/vTap';
|
|
@@ -64,10 +55,8 @@ import useRoomFooter from './useRoomFooterHooks';
|
|
|
64
55
|
|
|
65
56
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
|
|
66
57
|
|
|
67
|
-
const emit = defineEmits(['show-overlay'
|
|
68
|
-
|
|
69
|
-
emit('on-vote', { code: data.visible, message: 'vote' });
|
|
70
|
-
};
|
|
58
|
+
const emit = defineEmits(['show-overlay']);
|
|
59
|
+
|
|
71
60
|
function handleControlClick(name: string) {
|
|
72
61
|
bus.emit('experience-communication', name);
|
|
73
62
|
}
|
|
@@ -21,11 +21,14 @@
|
|
|
21
21
|
<template #content>
|
|
22
22
|
<slot name="content"></slot>
|
|
23
23
|
</template>
|
|
24
|
+
<template #contentH5>
|
|
25
|
+
<slot name="contentH5"></slot>
|
|
26
|
+
</template>
|
|
24
27
|
</room-footer>
|
|
25
28
|
<room-sidebar @on-vote="onVote">
|
|
26
29
|
<template #content>
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
<slot name="content"></slot>
|
|
31
|
+
</template>
|
|
29
32
|
</room-sidebar>
|
|
30
33
|
<room-setting />
|
|
31
34
|
<room-overlay />
|