@ndscnj/roomkit-web-vue3 25.12.24141 → 25.12.24151
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/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +6 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.mjs +7 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +105 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +49 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +4 -0
- package/es/components/RoomFooter/VoteControl/index.d.ts +6 -0
- package/es/components/RoomFooter/VoteControl/index.mjs +7 -0
- package/es/components/RoomFooter/VoteControl/useMoreControlHooks.mjs +22 -0
- package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +4 -4
- package/es/components/RoomVote/index.d.ts +1 -17
- package/es/components/RoomVote/indexPC.vue.d.ts +1 -10
- package/es/components/RoomVote/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +1 -5
- package/es/index.mjs +53 -25
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +6 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +7 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +105 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +49 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +4 -0
- package/lib/components/RoomFooter/VoteControl/index.d.ts +6 -0
- package/lib/components/RoomFooter/VoteControl/index.js +7 -0
- package/lib/components/RoomFooter/VoteControl/useMoreControlHooks.js +22 -0
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -6
- package/lib/components/RoomVote/index.d.ts +1 -17
- package/lib/components/RoomVote/indexPC.vue.d.ts +1 -10
- package/lib/components/RoomVote/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +0 -4
- package/lib/index.js +53 -25
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +122 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +31 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/index.ts +8 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/useMoreControlHooks.ts +23 -0
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -1
- package/src/TUIRoom/components/RoomFooter/voteControl.vue +1 -13
- package/src/TUIRoom/components/RoomVote/indexPC.vue +0 -3
- package/es/components/RoomFooter/voteControl.vue.d.ts +0 -15
- package/es/components/RoomFooter/voteControl.vue.mjs +0 -7
- package/es/components/RoomFooter/voteControl.vue2.mjs +0 -59
- package/lib/components/RoomFooter/voteControl.vue.d.ts +0 -15
- package/lib/components/RoomFooter/voteControl.vue.js +0 -7
- package/lib/components/RoomFooter/voteControl.vue2.js +0 -59
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"show-overlay": (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MoreControlH5.vue2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MoreControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c413959d"]]);
|
|
5
|
+
export {
|
|
6
|
+
MoreControlH5 as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onUnmounted, createElementBlock, openBlock, createCommentVNode, unref, withDirectives, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { IconExtension } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
4
|
+
import useControl from "./useMoreControlHooks.mjs";
|
|
5
|
+
import _sfc_main$1 from "../ChatControl.vue.mjs";
|
|
6
|
+
import InviteControl from "../InviteControl.vue.mjs";
|
|
7
|
+
import ContactControl from "../ContactControl.vue.mjs";
|
|
8
|
+
import { useRoomStore } from "../../../stores/room.mjs";
|
|
9
|
+
import bus from "../../../hooks/useMitt.mjs";
|
|
10
|
+
import vTap from "../../../directives/vTap.mjs";
|
|
11
|
+
import "../../../services/main.mjs";
|
|
12
|
+
import { roomService } from "../../../services/roomService.mjs";
|
|
13
|
+
import "../../../locales/index.mjs";
|
|
14
|
+
import "@tencentcloud/tuiroom-engine-js";
|
|
15
|
+
import "../../../utils/environment.mjs";
|
|
16
|
+
import "mitt";
|
|
17
|
+
import "../../../services/manager/roomActionManager.mjs";
|
|
18
|
+
import "@tencentcloud/tui-core";
|
|
19
|
+
const _hoisted_1 = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "more-control-container"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_2 = { class: "control-compent" };
|
|
24
|
+
const _hoisted_3 = { class: "close" };
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
+
__name: "MoreControlH5",
|
|
27
|
+
emits: ["show-overlay"],
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const moreControlConfig = roomService.getComponentConfig("MoreControl");
|
|
30
|
+
const showMoreContent = ref(false);
|
|
31
|
+
const moreContentRef = ref();
|
|
32
|
+
const { t, sidebarName } = useControl();
|
|
33
|
+
const roomStore = useRoomStore();
|
|
34
|
+
const emit = __emit;
|
|
35
|
+
function showMore() {
|
|
36
|
+
showMoreContent.value = true;
|
|
37
|
+
}
|
|
38
|
+
function handleCancelControl() {
|
|
39
|
+
showMoreContent.value = false;
|
|
40
|
+
}
|
|
41
|
+
function handleControlClick(name) {
|
|
42
|
+
bus.emit("experience-communication", name);
|
|
43
|
+
}
|
|
44
|
+
function handleShowOverlay(data) {
|
|
45
|
+
showMoreContent.value = false;
|
|
46
|
+
emit("show-overlay", data);
|
|
47
|
+
}
|
|
48
|
+
function handleDocumentClick(event) {
|
|
49
|
+
if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
|
|
50
|
+
showMoreContent.value = false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
onMounted(() => {
|
|
54
|
+
document == null ? void 0 : document.addEventListener("click", handleDocumentClick, true);
|
|
55
|
+
});
|
|
56
|
+
onUnmounted(() => {
|
|
57
|
+
document == null ? void 0 : document.removeEventListener("click", handleDocumentClick, true);
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock("div", null, [
|
|
61
|
+
unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
62
|
+
withDirectives((openBlock(), createBlock(IconButton, {
|
|
63
|
+
"is-active": unref(sidebarName) === "more",
|
|
64
|
+
title: unref(t)("More")
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(unref(IconExtension), { size: "24" })
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["is-active", "title"])), [
|
|
71
|
+
[unref(vTap), showMore]
|
|
72
|
+
])
|
|
73
|
+
])) : createCommentVNode("", true),
|
|
74
|
+
showMoreContent.value ? (openBlock(), createElementBlock("div", {
|
|
75
|
+
key: 1,
|
|
76
|
+
ref_key: "moreContentRef",
|
|
77
|
+
ref: moreContentRef,
|
|
78
|
+
class: "show-more-content"
|
|
79
|
+
}, [
|
|
80
|
+
createElementVNode("div", _hoisted_2, [
|
|
81
|
+
unref(roomStore).isSpeakAfterTakingSeatMode ? (openBlock(), createBlock(_sfc_main$1, {
|
|
82
|
+
key: 0,
|
|
83
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("chatControl"))
|
|
84
|
+
})) : createCommentVNode("", true),
|
|
85
|
+
createVNode(ContactControl, {
|
|
86
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("contactControl"))
|
|
87
|
+
}),
|
|
88
|
+
createVNode(InviteControl, {
|
|
89
|
+
onShowOverlay: handleShowOverlay,
|
|
90
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleControlClick("inviteControl"))
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
|
|
94
|
+
createTextVNode(toDisplayString(unref(t)("Cancel")), 1)
|
|
95
|
+
])), [
|
|
96
|
+
[unref(vTap), handleCancelControl]
|
|
97
|
+
])
|
|
98
|
+
], 512)) : createCommentVNode("", true)
|
|
99
|
+
]);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
_sfc_main as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx } from "vue";
|
|
2
|
+
import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
4
|
+
import useControl from "./useMoreControlHooks.mjs";
|
|
5
|
+
import "../../../services/main.mjs";
|
|
6
|
+
import { roomService } from "../../../services/roomService.mjs";
|
|
7
|
+
import "../../../locales/index.mjs";
|
|
8
|
+
import "@tencentcloud/tuiroom-engine-js";
|
|
9
|
+
import "../../../utils/environment.mjs";
|
|
10
|
+
import "mitt";
|
|
11
|
+
import "../../../services/manager/roomActionManager.mjs";
|
|
12
|
+
import "@tencentcloud/tui-core";
|
|
13
|
+
const _hoisted_1 = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "more-control-container"
|
|
16
|
+
};
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "MoreControlPC",
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const moreControlConfig = roomService.getComponentConfig("VoteControl");
|
|
21
|
+
const { t, basicStore, sidebarName } = useControl();
|
|
22
|
+
function toggleMoreSidebar() {
|
|
23
|
+
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
24
|
+
basicStore.setSidebarOpenStatus(false);
|
|
25
|
+
basicStore.setSidebarName("");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
basicStore.setSidebarOpenStatus(true);
|
|
29
|
+
basicStore.setSidebarName("vote");
|
|
30
|
+
}
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
33
|
+
createVNode(IconButton, {
|
|
34
|
+
"is-active": unref(sidebarName) === "vote",
|
|
35
|
+
title: unref(t)("Vote"),
|
|
36
|
+
onClickIcon: toggleMoreSidebar
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createVNode(unref(IconMore), { size: "24" })
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["is-active", "title"])
|
|
43
|
+
])) : createCommentVNode("", true);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const MoreControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"show-overlay": (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default MoreControl;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { useBasicStore } from "../../../stores/basic.mjs";
|
|
3
|
+
import { storeToRefs } from "pinia";
|
|
4
|
+
import { useI18n } from "../../../locales/index.mjs";
|
|
5
|
+
import { ICON_NAME } from "../../../constants/icon.mjs";
|
|
6
|
+
function useControl() {
|
|
7
|
+
const { t } = useI18n();
|
|
8
|
+
const basicStore = useBasicStore();
|
|
9
|
+
const { sidebarName } = storeToRefs(basicStore);
|
|
10
|
+
const iconName = computed(
|
|
11
|
+
() => sidebarName.value === "more" ? ICON_NAME.MoreActive : ICON_NAME.More
|
|
12
|
+
);
|
|
13
|
+
return {
|
|
14
|
+
t,
|
|
15
|
+
basicStore,
|
|
16
|
+
iconName,
|
|
17
|
+
sidebarName
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
useControl as default
|
|
22
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./indexPC.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4afcea78"]]);
|
|
5
5
|
export {
|
|
6
6
|
indexPc as default
|
|
7
7
|
};
|
|
@@ -57,7 +57,7 @@ import _sfc_main$3 from "../ManageMemberControl.vue.mjs";
|
|
|
57
57
|
import _sfc_main$4 from "../ChatControl.vue.mjs";
|
|
58
58
|
import _sfc_main$5 from "../ManageStageControl.vue.mjs";
|
|
59
59
|
import MemberApplyControl from "../ApplyControl/MemberApplyControl.vue.mjs";
|
|
60
|
-
import MoreControl from "../MoreControl/index.mjs";
|
|
60
|
+
import MoreControl$1 from "../MoreControl/index.mjs";
|
|
61
61
|
import EndControl from "../EndControl/index.mjs";
|
|
62
62
|
import _sfc_main$6 from "../SettingControl.vue.mjs";
|
|
63
63
|
import WhiteboardControl from "../WhiteboardControl.vue.mjs";
|
|
@@ -65,7 +65,7 @@ import VirtualBackground from "../VirtualBackground.vue.mjs";
|
|
|
65
65
|
import AIControl from "../AIControl.vue.mjs";
|
|
66
66
|
import BasicBeauty from "../BasicBeauty.vue.mjs";
|
|
67
67
|
import bus from "../../../hooks/useMitt.mjs";
|
|
68
|
-
import
|
|
68
|
+
import MoreControl from "../VoteControl/index.mjs";
|
|
69
69
|
import useRoomFooter from "./useRoomFooterHooks.mjs";
|
|
70
70
|
const _hoisted_1 = { class: "footer-container" };
|
|
71
71
|
const _hoisted_2 = { class: "left-container" };
|
|
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
137
|
class: "center-container-item",
|
|
138
138
|
onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
|
|
139
139
|
})) : createCommentVNode("", true),
|
|
140
|
-
createVNode(
|
|
140
|
+
createVNode(unref(MoreControl), {
|
|
141
141
|
class: "center-container-item",
|
|
142
142
|
onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
|
|
143
143
|
onOnVote: onVote
|
|
@@ -147,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
147
|
]),
|
|
148
148
|
_: 3
|
|
149
149
|
}),
|
|
150
|
-
createVNode(unref(MoreControl), {
|
|
150
|
+
createVNode(unref(MoreControl$1), {
|
|
151
151
|
class: "center-container-item",
|
|
152
152
|
onClick: _cache[11] || (_cache[11] = ($event) => handleControlClick("moreControl"))
|
|
153
153
|
}),
|
|
@@ -2,21 +2,5 @@ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('v
|
|
|
2
2
|
"on-close-contact": (...args: any[]) => void;
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
"onOn-close-contact"?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
|
|
6
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
7
|
-
P: {};
|
|
8
|
-
B: {};
|
|
9
|
-
D: {};
|
|
10
|
-
C: {};
|
|
11
|
-
M: {};
|
|
12
|
-
Defaults: {};
|
|
13
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
14
|
-
__isFragment?: never;
|
|
15
|
-
__isTeleport?: never;
|
|
16
|
-
__isSuspense?: never;
|
|
17
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
18
|
-
$slots: {
|
|
19
|
-
content?(_: {}): any;
|
|
20
|
-
};
|
|
21
|
-
}));
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
6
|
export default Index;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
declare
|
|
2
|
-
content?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
2
|
export default _default;
|
|
7
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./indexPC.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-17479e8d"]]);
|
|
5
5
|
export {
|
|
6
6
|
indexPC as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref, toDisplayString, withCtx, createTextVNode
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref, toDisplayString, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { IconEmail, TUIButton, IconCopy } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import useRoomMoreHooks from "./useRoomMoreHooks.mjs";
|
|
4
4
|
const _hoisted_1 = { class: "more-container" };
|
|
@@ -12,7 +12,6 @@ const _hoisted_5 = { class: "item-title" };
|
|
|
12
12
|
const _hoisted_6 = { class: "more-item" };
|
|
13
13
|
const _hoisted_7 = { class: "item-title" };
|
|
14
14
|
const _hoisted_8 = { class: "more-content" };
|
|
15
|
-
const _hoisted_9 = { class: "more-item" };
|
|
16
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
16
|
__name: "indexPC",
|
|
18
17
|
setup(__props) {
|
|
@@ -39,9 +38,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
38
|
class: "copy-icon",
|
|
40
39
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(onCopy)(unref(email)))
|
|
41
40
|
})
|
|
42
|
-
]),
|
|
43
|
-
createElementVNode("div", _hoisted_9, [
|
|
44
|
-
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
45
41
|
])
|
|
46
42
|
]);
|
|
47
43
|
};
|
package/es/index.mjs
CHANGED
|
@@ -3928,17 +3928,45 @@ to {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3930
3930
|
margin-left: 4px;
|
|
3931
|
-
}.
|
|
3932
|
-
position:
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3931
|
+
}.show-more-content[data-v-c413959d] {
|
|
3932
|
+
position: absolute;
|
|
3933
|
+
bottom: 15px;
|
|
3934
|
+
left: 5%;
|
|
3935
|
+
width: 90%;
|
|
3936
|
+
height: 17vh;
|
|
3937
|
+
padding: 10px;
|
|
3938
|
+
border-radius: 13px;
|
|
3939
|
+
animation-name: popup-c413959d;
|
|
3940
|
+
animation-duration: 200ms;
|
|
3941
|
+
background-color: var(--bg-color-operate);
|
|
3942
|
+
}
|
|
3943
|
+
@keyframes popup-c413959d {
|
|
3944
|
+
from {
|
|
3945
|
+
bottom: 0;
|
|
3946
|
+
}
|
|
3947
|
+
to {
|
|
3948
|
+
bottom: 15px;
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
.control-compent[data-v-c413959d] {
|
|
3952
|
+
display: flex;
|
|
3953
|
+
}
|
|
3954
|
+
.close[data-v-c413959d] {
|
|
3955
|
+
position: relative;
|
|
3956
|
+
top: 10%;
|
|
3957
|
+
display: flex;
|
|
3958
|
+
align-items: center;
|
|
3959
|
+
justify-content: center;
|
|
3960
|
+
width: 100%;
|
|
3961
|
+
padding: 10px;
|
|
3962
|
+
font-style: normal;
|
|
3963
|
+
font-weight: 400;
|
|
3964
|
+
line-height: 24px;
|
|
3965
|
+
text-align: center;
|
|
3966
|
+
border-radius: 8px;
|
|
3967
|
+
color: var(--text-color-primary);
|
|
3968
|
+
background-color: var(--button-color-secondary-default);
|
|
3969
|
+
}.footer-container[data-v-4afcea78] {
|
|
3942
3970
|
position: absolute;
|
|
3943
3971
|
bottom: 0;
|
|
3944
3972
|
display: flex;
|
|
@@ -3952,25 +3980,25 @@ to {
|
|
|
3952
3980
|
background-color: var(--bg-color-topbar);
|
|
3953
3981
|
box-shadow: 0 -8px 30px var(--uikit-color-black-8);
|
|
3954
3982
|
}
|
|
3955
|
-
.footer-container .left-container[data-v-
|
|
3983
|
+
.footer-container .left-container[data-v-4afcea78] {
|
|
3956
3984
|
display: flex;
|
|
3957
3985
|
align-items: center;
|
|
3958
3986
|
height: 100%;
|
|
3959
3987
|
}
|
|
3960
|
-
.footer-container .left-container .left-container-item[data-v-
|
|
3988
|
+
.footer-container .left-container .left-container-item[data-v-4afcea78]:not(:first-child) {
|
|
3961
3989
|
margin-left: 1rem;
|
|
3962
3990
|
}
|
|
3963
|
-
.footer-container .center-container[data-v-
|
|
3991
|
+
.footer-container .center-container[data-v-4afcea78] {
|
|
3964
3992
|
position: relative;
|
|
3965
3993
|
display: flex;
|
|
3966
3994
|
align-items: center;
|
|
3967
3995
|
height: 100%;
|
|
3968
3996
|
margin: 0 auto;
|
|
3969
3997
|
}
|
|
3970
|
-
.footer-container .center-container .center-container-item[data-v-
|
|
3998
|
+
.footer-container .center-container .center-container-item[data-v-4afcea78]:not(:first-child) {
|
|
3971
3999
|
margin-left: 16px;
|
|
3972
4000
|
}
|
|
3973
|
-
.footer-container .right-container[data-v-
|
|
4001
|
+
.footer-container .right-container[data-v-4afcea78] {
|
|
3974
4002
|
display: flex;
|
|
3975
4003
|
align-items: center;
|
|
3976
4004
|
height: 100%;
|
|
@@ -5047,17 +5075,17 @@ to {
|
|
|
5047
5075
|
font-size: 16px;
|
|
5048
5076
|
font-weight: 400;
|
|
5049
5077
|
text-align: end;
|
|
5050
|
-
}.more-container[data-v-
|
|
5078
|
+
}.more-container[data-v-17479e8d] {
|
|
5051
5079
|
padding: 20px;
|
|
5052
5080
|
}
|
|
5053
|
-
.more-container .more-title[data-v-
|
|
5081
|
+
.more-container .more-title[data-v-17479e8d] {
|
|
5054
5082
|
display: flex;
|
|
5055
5083
|
align-items: center;
|
|
5056
5084
|
}
|
|
5057
|
-
.more-container .more-title .email-icon[data-v-
|
|
5085
|
+
.more-container .more-title .email-icon[data-v-17479e8d] {
|
|
5058
5086
|
color: var(--uikit-color-gray-7);
|
|
5059
5087
|
}
|
|
5060
|
-
.more-container .more-title .more-notice[data-v-
|
|
5088
|
+
.more-container .more-title .more-notice[data-v-17479e8d] {
|
|
5061
5089
|
width: 100%;
|
|
5062
5090
|
height: 22px;
|
|
5063
5091
|
padding-left: 8px;
|
|
@@ -5066,15 +5094,15 @@ to {
|
|
|
5066
5094
|
line-height: 22px;
|
|
5067
5095
|
color: var(--text-color-primary);
|
|
5068
5096
|
}
|
|
5069
|
-
.more-container .more-item[data-v-
|
|
5097
|
+
.more-container .more-item[data-v-17479e8d] {
|
|
5070
5098
|
position: relative;
|
|
5071
5099
|
display: flex;
|
|
5072
5100
|
flex-direction: column;
|
|
5073
5101
|
}
|
|
5074
|
-
.more-container .more-item[data-v-
|
|
5102
|
+
.more-container .more-item[data-v-17479e8d]:not(:first-child) {
|
|
5075
5103
|
margin-top: 20px;
|
|
5076
5104
|
}
|
|
5077
|
-
.more-container .more-item:not(:first-child) .item-title[data-v-
|
|
5105
|
+
.more-container .more-item:not(:first-child) .item-title[data-v-17479e8d] {
|
|
5078
5106
|
width: 100%;
|
|
5079
5107
|
padding-bottom: 8px;
|
|
5080
5108
|
font-size: 14px;
|
|
@@ -5082,7 +5110,7 @@ to {
|
|
|
5082
5110
|
line-height: 22px;
|
|
5083
5111
|
color: var(--text-color-primary);
|
|
5084
5112
|
}
|
|
5085
|
-
.more-container .more-item:not(:first-child) .more-content[data-v-
|
|
5113
|
+
.more-container .more-item:not(:first-child) .more-content[data-v-17479e8d] {
|
|
5086
5114
|
position: relative;
|
|
5087
5115
|
box-sizing: border-box;
|
|
5088
5116
|
display: inline-block;
|
|
@@ -5102,7 +5130,7 @@ to {
|
|
|
5102
5130
|
background-color: var(--bg-color-input);
|
|
5103
5131
|
border: 1px solid var(--stroke-color-module);
|
|
5104
5132
|
}
|
|
5105
|
-
.more-container .more-item:not(:first-child) .copy-icon[data-v-
|
|
5133
|
+
.more-container .more-item:not(:first-child) .copy-icon[data-v-17479e8d] {
|
|
5106
5134
|
position: absolute;
|
|
5107
5135
|
top: 45px;
|
|
5108
5136
|
right: 10px;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"show-overlay": (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const MoreControlH5_vue_vue_type_script_setup_true_lang = require("./MoreControlH5.vue2.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
+
const MoreControlH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-c413959d"]]);
|
|
7
|
+
exports.default = MoreControlH5;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Vue = require("vue");
|
|
4
|
+
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
5
|
+
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
6
|
+
const useMoreControlHooks = require("./useMoreControlHooks.js");
|
|
7
|
+
const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
|
|
8
|
+
const InviteControl = require("../InviteControl.vue.js");
|
|
9
|
+
const ContactControl = require("../ContactControl.vue.js");
|
|
10
|
+
const room = require("../../../stores/room.js");
|
|
11
|
+
const useMitt = require("../../../hooks/useMitt.js");
|
|
12
|
+
const vTap = require("../../../directives/vTap.js");
|
|
13
|
+
require("../../../services/main.js");
|
|
14
|
+
const roomService = require("../../../services/roomService.js");
|
|
15
|
+
require("../../../locales/index.js");
|
|
16
|
+
require("@tencentcloud/tuiroom-engine-js");
|
|
17
|
+
require("../../../utils/environment.js");
|
|
18
|
+
require("mitt");
|
|
19
|
+
require("../../../services/manager/roomActionManager.js");
|
|
20
|
+
require("@tencentcloud/tui-core");
|
|
21
|
+
const _hoisted_1 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "more-control-container"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_2 = { class: "control-compent" };
|
|
26
|
+
const _hoisted_3 = { class: "close" };
|
|
27
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
28
|
+
__name: "MoreControlH5",
|
|
29
|
+
emits: ["show-overlay"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
32
|
+
const showMoreContent = Vue.ref(false);
|
|
33
|
+
const moreContentRef = Vue.ref();
|
|
34
|
+
const { t, sidebarName } = useMoreControlHooks.default();
|
|
35
|
+
const roomStore = room.useRoomStore();
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
function showMore() {
|
|
38
|
+
showMoreContent.value = true;
|
|
39
|
+
}
|
|
40
|
+
function handleCancelControl() {
|
|
41
|
+
showMoreContent.value = false;
|
|
42
|
+
}
|
|
43
|
+
function handleControlClick(name) {
|
|
44
|
+
useMitt.default.emit("experience-communication", name);
|
|
45
|
+
}
|
|
46
|
+
function handleShowOverlay(data) {
|
|
47
|
+
showMoreContent.value = false;
|
|
48
|
+
emit("show-overlay", data);
|
|
49
|
+
}
|
|
50
|
+
function handleDocumentClick(event) {
|
|
51
|
+
if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
|
|
52
|
+
showMoreContent.value = false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
Vue.onMounted(() => {
|
|
56
|
+
document == null ? void 0 : document.addEventListener("click", handleDocumentClick, true);
|
|
57
|
+
});
|
|
58
|
+
Vue.onUnmounted(() => {
|
|
59
|
+
document == null ? void 0 : document.removeEventListener("click", handleDocumentClick, true);
|
|
60
|
+
});
|
|
61
|
+
return (_ctx, _cache) => {
|
|
62
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [
|
|
63
|
+
Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
64
|
+
Vue.withDirectives((Vue.openBlock(), Vue.createBlock(IconButton.default, {
|
|
65
|
+
"is-active": Vue.unref(sidebarName) === "more",
|
|
66
|
+
title: Vue.unref(t)("More")
|
|
67
|
+
}, {
|
|
68
|
+
default: Vue.withCtx(() => [
|
|
69
|
+
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconExtension), { size: "24" })
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["is-active", "title"])), [
|
|
73
|
+
[Vue.unref(vTap.default), showMore]
|
|
74
|
+
])
|
|
75
|
+
])) : Vue.createCommentVNode("", true),
|
|
76
|
+
showMoreContent.value ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
77
|
+
key: 1,
|
|
78
|
+
ref_key: "moreContentRef",
|
|
79
|
+
ref: moreContentRef,
|
|
80
|
+
class: "show-more-content"
|
|
81
|
+
}, [
|
|
82
|
+
Vue.createElementVNode("div", _hoisted_2, [
|
|
83
|
+
Vue.unref(roomStore).isSpeakAfterTakingSeatMode ? (Vue.openBlock(), Vue.createBlock(ChatControl_vue_vue_type_script_setup_true_lang.default, {
|
|
84
|
+
key: 0,
|
|
85
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("chatControl"))
|
|
86
|
+
})) : Vue.createCommentVNode("", true),
|
|
87
|
+
Vue.createVNode(ContactControl.default, {
|
|
88
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("contactControl"))
|
|
89
|
+
}),
|
|
90
|
+
Vue.createVNode(InviteControl.default, {
|
|
91
|
+
onShowOverlay: handleShowOverlay,
|
|
92
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleControlClick("inviteControl"))
|
|
93
|
+
})
|
|
94
|
+
]),
|
|
95
|
+
Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
|
|
96
|
+
Vue.createTextVNode(Vue.toDisplayString(Vue.unref(t)("Cancel")), 1)
|
|
97
|
+
])), [
|
|
98
|
+
[Vue.unref(vTap.default), handleCancelControl]
|
|
99
|
+
])
|
|
100
|
+
], 512)) : Vue.createCommentVNode("", true)
|
|
101
|
+
]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|