@ndscnj/roomkit-web-vue3 25.12.23182 → 25.12.24111
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/index/index.d.ts +13 -3
- package/es/components/RoomFooter/index/indexPC.vue.d.ts +5 -1
- package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +11 -4
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue.mjs +7 -0
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue2.mjs +105 -0
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +6 -0
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.mjs +55 -0
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue2.mjs +4 -0
- package/es/components/RoomFooter/voteControl/index.d.ts +10 -0
- package/es/components/RoomFooter/voteControl/index.mjs +7 -0
- package/es/components/RoomFooter/voteControl/useVoteControlHooks.mjs +22 -0
- package/es/components/RoomVote/index.d.ts +17 -1
- package/es/components/RoomVote/indexPC.vue.d.ts +10 -1
- package/es/components/RoomVote/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +6 -2
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +1 -0
- package/es/constants/icon.d.ts +2 -0
- package/es/constants/icon.mjs +2 -0
- package/es/index.mjs +53 -44
- package/lib/components/RoomFooter/index/index.d.ts +13 -3
- package/lib/components/RoomFooter/index/indexPC.vue.d.ts +5 -1
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +15 -8
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.js +7 -0
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue2.js +105 -0
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +6 -0
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.js +55 -0
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue2.js +4 -0
- package/lib/components/RoomFooter/voteControl/index.d.ts +10 -0
- package/lib/components/RoomFooter/voteControl/index.js +7 -0
- package/lib/components/RoomFooter/voteControl/useVoteControlHooks.js +22 -0
- package/lib/components/RoomVote/index.d.ts +17 -1
- package/lib/components/RoomVote/indexPC.vue.d.ts +10 -1
- package/lib/components/RoomVote/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +5 -1
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +1 -0
- package/lib/constants/icon.d.ts +2 -0
- package/lib/constants/icon.js +2 -0
- package/lib/index.js +53 -44
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +8 -1
- package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlH5.vue +122 -0
- package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlPC.vue +35 -0
- package/src/TUIRoom/components/RoomFooter/voteControl/index.ts +8 -0
- package/src/TUIRoom/components/RoomFooter/voteControl/useVoteControlHooks.ts +23 -0
- package/src/TUIRoom/components/RoomFooter/voteControl.vue +25 -44
- package/src/TUIRoom/components/RoomVote/indexPC.vue +4 -1
- package/src/TUIRoom/conference.vue +1 -0
- package/src/TUIRoom/constants/icon.ts +2 -0
- 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 -65
- 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 -65
|
@@ -3,18 +3,28 @@ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('v
|
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
|
|
6
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
6
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
7
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"on-vote": (...args: any[]) => void;
|
|
10
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
7
11
|
P: {};
|
|
8
12
|
B: {};
|
|
9
13
|
D: {};
|
|
10
14
|
C: {};
|
|
11
15
|
M: {};
|
|
12
16
|
Defaults: {};
|
|
13
|
-
}, Readonly<{}> & Readonly<{
|
|
17
|
+
}, Readonly<{}> & Readonly<{
|
|
18
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, {}>;
|
|
14
20
|
__isFragment?: never;
|
|
15
21
|
__isTeleport?: never;
|
|
16
22
|
__isSuspense?: never;
|
|
17
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
23
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
24
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"on-vote": (...args: any[]) => void;
|
|
27
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
18
28
|
$slots: {
|
|
19
29
|
content?(_: {}): any;
|
|
20
30
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
content?(_: {}): any;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"on-vote": (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
9
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
10
|
export default _default;
|
|
7
11
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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-3a373c3a"]]);
|
|
5
5
|
export {
|
|
6
6
|
indexPc as default
|
|
7
7
|
};
|
|
@@ -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 VoteControl 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" };
|
|
@@ -73,11 +73,17 @@ const _hoisted_3 = { class: "center-container" };
|
|
|
73
73
|
const _hoisted_4 = { class: "right-container" };
|
|
74
74
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
75
|
__name: "indexPC",
|
|
76
|
-
|
|
76
|
+
emits: ["on-vote"],
|
|
77
|
+
setup(__props, { emit: __emit }) {
|
|
77
78
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
|
|
78
79
|
function handleControlClick(name) {
|
|
79
80
|
bus.emit("experience-communication", name);
|
|
80
81
|
}
|
|
82
|
+
const emit = __emit;
|
|
83
|
+
const onVote = (data) => {
|
|
84
|
+
console.log(data, "data111");
|
|
85
|
+
emit("on-vote", { code: data.visible, message: "vote" });
|
|
86
|
+
};
|
|
81
87
|
return (_ctx, _cache) => {
|
|
82
88
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
83
89
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -131,9 +137,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
137
|
class: "center-container-item",
|
|
132
138
|
onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
|
|
133
139
|
})) : createCommentVNode("", true),
|
|
134
|
-
createVNode(
|
|
140
|
+
createVNode(unref(VoteControl), {
|
|
135
141
|
class: "center-container-item",
|
|
136
|
-
onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl"))
|
|
142
|
+
onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
|
|
143
|
+
onOnVote: onVote
|
|
137
144
|
}, {
|
|
138
145
|
content: withCtx(() => [
|
|
139
146
|
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
@@ -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 "./VoteControlH5.vue2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const VoteControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1506794c"]]);
|
|
5
|
+
export {
|
|
6
|
+
VoteControlH5 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 "./useVoteControlHooks.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: "VoteControlH5",
|
|
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,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"on-vote": (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 "./useVoteControlHooks.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: "vote-control-container"
|
|
16
|
+
};
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "VoteControlPC",
|
|
19
|
+
emits: ["on-vote"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const voteControlConfig = roomService.getComponentConfig("VoteControl");
|
|
22
|
+
const { t, basicStore, sidebarName } = useControl();
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
function toggleMoreSidebar() {
|
|
25
|
+
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
26
|
+
basicStore.setSidebarOpenStatus(false);
|
|
27
|
+
basicStore.setSidebarName("");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
basicStore.setSidebarOpenStatus(true);
|
|
31
|
+
basicStore.setSidebarName("vote");
|
|
32
|
+
emit("on-vote", {
|
|
33
|
+
name: "onVote",
|
|
34
|
+
visible: voteControlConfig.visible
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
39
|
+
createVNode(IconButton, {
|
|
40
|
+
"is-active": unref(sidebarName) === "vote",
|
|
41
|
+
title: unref(t)("Vote"),
|
|
42
|
+
onClickIcon: toggleMoreSidebar
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
createVNode(unref(IconMore), { size: "24" })
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["is-active", "title"])
|
|
49
|
+
])) : createCommentVNode("", true);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
_sfc_main as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const VoteControl: 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, {
|
|
6
|
+
"on-vote": (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default VoteControl;
|
|
@@ -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 === "vote" ? ICON_NAME.VoteActive : ICON_NAME.Vote
|
|
12
|
+
);
|
|
13
|
+
return {
|
|
14
|
+
t,
|
|
15
|
+
basicStore,
|
|
16
|
+
iconName,
|
|
17
|
+
sidebarName
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
useControl as default
|
|
22
|
+
};
|
|
@@ -2,5 +2,21 @@ 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> |
|
|
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
|
+
}));
|
|
6
22
|
export default Index;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
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>>;
|
|
2
6
|
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-11728c2b"]]);
|
|
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 } from "vue";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref, toDisplayString, withCtx, createTextVNode, renderSlot } 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,6 +12,7 @@ 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: "contact-container" };
|
|
15
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
17
|
__name: "indexPC",
|
|
17
18
|
setup(__props) {
|
|
@@ -20,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
21
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21
22
|
createElementVNode("div", _hoisted_2, [
|
|
22
23
|
createVNode(unref(IconEmail), { class: "email-icon" }),
|
|
23
|
-
createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("
|
|
24
|
+
createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("Vote")), 1)
|
|
24
25
|
]),
|
|
25
26
|
unref(isZH) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
26
27
|
createElementVNode("div", _hoisted_5, toDisplayString(unref(t)("Join our product discussion group")), 1),
|
|
@@ -38,6 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
class: "copy-icon",
|
|
39
40
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(onCopy)(unref(email)))
|
|
40
41
|
})
|
|
42
|
+
]),
|
|
43
|
+
createElementVNode("div", _hoisted_9, [
|
|
44
|
+
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
41
45
|
])
|
|
42
46
|
]);
|
|
43
47
|
};
|
package/es/conference.vue.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import _sfc_main from "./conference.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "./_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3b59b436"]]);
|
|
6
6
|
export {
|
|
7
7
|
ConferenceMainView as default
|
|
8
8
|
};
|
package/es/conference.vue2.mjs
CHANGED
package/es/constants/icon.d.ts
CHANGED
package/es/constants/icon.mjs
CHANGED
|
@@ -20,6 +20,8 @@ var ICON_NAME = /* @__PURE__ */ ((ICON_NAME2) => {
|
|
|
20
20
|
ICON_NAME2["ManageMember"] = "manage-member";
|
|
21
21
|
ICON_NAME2["More"] = "more";
|
|
22
22
|
ICON_NAME2["MoreActive"] = "more-active";
|
|
23
|
+
ICON_NAME2["Vote"] = "vote";
|
|
24
|
+
ICON_NAME2["VoteActive"] = "vote-active";
|
|
23
25
|
ICON_NAME2["SettingActive"] = "setting-active";
|
|
24
26
|
ICON_NAME2["Setting"] = "setting";
|
|
25
27
|
ICON_NAME2["LineArrowUp"] = "line-arrow-up";
|