@ndscnj/roomkit-web-vue3 25.12.24166 → 25.12.24167
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.mjs +1 -1
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +4 -6
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +1 -1
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +4 -6
- package/es/components/RoomFooter/index/index.d.ts +31 -4
- package/es/components/RoomFooter/index/indexH5.vue.d.ts +12 -1
- package/es/components/RoomFooter/index/indexH5.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexH5.vue2.mjs +20 -5
- package/es/index.mjs +7 -7
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +4 -6
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +4 -6
- package/lib/components/RoomFooter/index/index.d.ts +31 -4
- package/lib/components/RoomFooter/index/indexH5.vue.d.ts +12 -1
- package/lib/components/RoomFooter/index/indexH5.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexH5.vue2.js +19 -4
- package/lib/index.js +7 -7
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +2 -3
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +2 -3
- package/src/TUIRoom/components/RoomFooter/index/indexH5.vue +15 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MoreControlH5.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const MoreControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const MoreControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a47be79"]]);
|
|
5
5
|
export {
|
|
6
6
|
MoreControlH5 as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import _imports_0 from "../../../assets/imgs/vote-icon.png.mjs";
|
|
3
|
-
import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
3
|
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
5
4
|
import useControl from "./useMoreControlHooks.mjs";
|
|
6
5
|
import "../../../services/main.mjs";
|
|
@@ -42,14 +41,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
41
|
title: unref(t)("Vote"),
|
|
43
42
|
onClickIcon: toggleMoreSidebar
|
|
44
43
|
}, {
|
|
45
|
-
default: withCtx(() => [
|
|
46
|
-
|
|
47
|
-
_cache[0] || (_cache[0] = createElementVNode("img", {
|
|
44
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
45
|
+
createElementVNode("img", {
|
|
48
46
|
class: "ndsc-img-box",
|
|
49
47
|
src: _imports_0,
|
|
50
48
|
alt: ""
|
|
51
|
-
}, null, -1)
|
|
52
|
-
]),
|
|
49
|
+
}, null, -1)
|
|
50
|
+
])]),
|
|
53
51
|
_: 1
|
|
54
52
|
}, 8, ["is-active", "title"])
|
|
55
53
|
])) : createCommentVNode("", true);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MoreControlPC.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-997feff9"]]);
|
|
5
5
|
export {
|
|
6
6
|
MoreControlPc as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import _imports_0 from "../../../assets/imgs/vote-icon.png.mjs";
|
|
3
|
-
import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
3
|
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
5
4
|
import useControl from "./useMoreControlHooks.mjs";
|
|
6
5
|
import "../../../services/main.mjs";
|
|
@@ -42,14 +41,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
41
|
title: unref(t)("Vote"),
|
|
43
42
|
onClickIcon: toggleMoreSidebar
|
|
44
43
|
}, {
|
|
45
|
-
default: withCtx(() => [
|
|
46
|
-
|
|
47
|
-
_cache[0] || (_cache[0] = createElementVNode("img", {
|
|
44
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
45
|
+
createElementVNode("img", {
|
|
48
46
|
class: "ndsc-img-box",
|
|
49
47
|
src: _imports_0,
|
|
50
48
|
alt: ""
|
|
51
|
-
}, null, -1)
|
|
52
|
-
]),
|
|
49
|
+
}, null, -1)
|
|
50
|
+
])]),
|
|
53
51
|
_: 1
|
|
54
52
|
}, 8, ["is-active", "title"])
|
|
55
53
|
])) : createCommentVNode("", true);
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
declare const Index:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const Index: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"show-overlay": (...args: any[]) => void;
|
|
7
|
+
"on-vote": (...args: any[]) => void;
|
|
8
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<{}> & Readonly<{
|
|
16
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, {}>;
|
|
19
|
+
__isFragment?: never;
|
|
20
|
+
__isTeleport?: never;
|
|
21
|
+
__isSuspense?: never;
|
|
22
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
4
23
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
|
|
24
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"show-overlay": (...args: any[]) => void;
|
|
27
|
+
"on-vote": (...args: any[]) => void;
|
|
28
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
29
|
+
$slots: {
|
|
30
|
+
contentH5?(_: {}): any;
|
|
31
|
+
};
|
|
32
|
+
})) | ({
|
|
6
33
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
7
34
|
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
8
35
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
contentH5?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
5
|
"show-overlay": (...args: any[]) => void;
|
|
6
|
+
"on-vote": (...args: any[]) => void;
|
|
3
7
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
8
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
12
|
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./indexH5.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92597491"]]);
|
|
5
5
|
export {
|
|
6
6
|
indexH5 as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, withDirectives, createCommentVNode, createVNode, unref, createBlock } from "vue";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, withDirectives, createCommentVNode, createVNode, unref, createBlock, withCtx, renderSlot } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../../core/components/AudioSetting/index.vue.mjs";
|
|
3
3
|
import VideoSetting from "../../../core/components/VideoSetting/index.vue.mjs";
|
|
4
4
|
import "@tencentcloud/uikit-base-component-vue3";
|
|
@@ -55,17 +55,22 @@ import _sfc_main$4 from "../ManageMemberControl.vue.mjs";
|
|
|
55
55
|
import _sfc_main$2 from "../ChatControl.vue.mjs";
|
|
56
56
|
import _sfc_main$3 from "../ManageStageControl.vue.mjs";
|
|
57
57
|
import MemberApplyControl from "../ApplyControl/MemberApplyControl.vue.mjs";
|
|
58
|
-
import MoreControl from "../MoreControl/index.mjs";
|
|
58
|
+
import MoreControl$1 from "../MoreControl/index.mjs";
|
|
59
59
|
import AIControl from "../AIControl.vue.mjs";
|
|
60
|
+
import MoreControl from "../VoteControl/index.mjs";
|
|
60
61
|
import bus from "../../../hooks/useMitt.mjs";
|
|
61
62
|
import useRoomFooter from "./useRoomFooterHooks.mjs";
|
|
62
63
|
const _hoisted_1 = { class: "footer-container" };
|
|
63
64
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
65
|
__name: "indexH5",
|
|
65
|
-
emits: ["show-overlay"],
|
|
66
|
+
emits: ["show-overlay", "on-vote"],
|
|
66
67
|
setup(__props, { emit: __emit }) {
|
|
67
68
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
|
|
68
69
|
const emit = __emit;
|
|
70
|
+
const onVote = (data) => {
|
|
71
|
+
console.log(data, "data111");
|
|
72
|
+
emit("on-vote", { code: data.visible, message: "vote" });
|
|
73
|
+
};
|
|
69
74
|
function handleControlClick(name) {
|
|
70
75
|
bus.emit("experience-communication", name);
|
|
71
76
|
}
|
|
@@ -86,11 +91,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
91
|
}, null, 8, ["display-mode"])), [
|
|
87
92
|
[unref(vTap), () => handleControlClick("videoControl")]
|
|
88
93
|
]) : createCommentVNode("", true),
|
|
94
|
+
createVNode(unref(MoreControl), {
|
|
95
|
+
class: "center-container-item",
|
|
96
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl")),
|
|
97
|
+
onOnVote: onVote
|
|
98
|
+
}, {
|
|
99
|
+
contentH5: withCtx(() => [
|
|
100
|
+
renderSlot(_ctx.$slots, "contentH5", {}, void 0, true)
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}),
|
|
89
104
|
!unref(roomStore).isSpeakAfterTakingSeatMode ? withDirectives((openBlock(), createBlock(_sfc_main$2, { key: 2 }, null, 512)), [
|
|
90
105
|
[unref(vTap), () => handleControlClick("chatControl")]
|
|
91
106
|
]) : createCommentVNode("", true),
|
|
92
107
|
createVNode(AIControl, {
|
|
93
|
-
onClick: _cache[
|
|
108
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("AIControl"))
|
|
94
109
|
}),
|
|
95
110
|
unref(roomStore).isSpeakAfterTakingSeatMode && (unref(isMaster) || unref(isAdmin)) ? withDirectives((openBlock(), createBlock(_sfc_main$3, { key: 3 }, null, 512)), [
|
|
96
111
|
[unref(vTap), () => handleControlClick("MasterApplyControl")]
|
|
@@ -101,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
116
|
withDirectives(createVNode(_sfc_main$4, null, null, 512), [
|
|
102
117
|
[unref(vTap), () => handleControlClick("manageMemberControl")]
|
|
103
118
|
]),
|
|
104
|
-
withDirectives(createVNode(unref(MoreControl), { onShowOverlay: handleShowOverlay }, null, 512), [
|
|
119
|
+
withDirectives(createVNode(unref(MoreControl$1), { onShowOverlay: handleShowOverlay }, null, 512), [
|
|
105
120
|
[unref(vTap), () => handleControlClick("moreControl")]
|
|
106
121
|
])
|
|
107
122
|
]);
|
package/es/index.mjs
CHANGED
|
@@ -3664,7 +3664,13 @@ to {
|
|
|
3664
3664
|
.tool-box .tool-box-item[data-v-34681937]:hover {
|
|
3665
3665
|
border-radius: 8px;
|
|
3666
3666
|
background-color: var(--list-color-hover);
|
|
3667
|
-
}.
|
|
3667
|
+
}.ndsc-img-box[data-v-2a47be79] {
|
|
3668
|
+
width: 24px;
|
|
3669
|
+
height: 24px;
|
|
3670
|
+
}.ndsc-img-box[data-v-997feff9] {
|
|
3671
|
+
width: 24px;
|
|
3672
|
+
height: 24px;
|
|
3673
|
+
}.footer-container[data-v-92597491] {
|
|
3668
3674
|
position: absolute;
|
|
3669
3675
|
bottom: 0;
|
|
3670
3676
|
display: flex;
|
|
@@ -3928,12 +3934,6 @@ to {
|
|
|
3928
3934
|
}
|
|
3929
3935
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3930
3936
|
margin-left: 4px;
|
|
3931
|
-
}.ndsc-img-box[data-v-2d633075] {
|
|
3932
|
-
width: 50px;
|
|
3933
|
-
height: 50px;
|
|
3934
|
-
}.ndsc-img-box[data-v-9e42a812] {
|
|
3935
|
-
width: 50px;
|
|
3936
|
-
height: 50px;
|
|
3937
3937
|
}.footer-container[data-v-4afcea78] {
|
|
3938
3938
|
position: absolute;
|
|
3939
3939
|
bottom: 0;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const MoreControlH5_vue_vue_type_script_setup_true_lang = require("./MoreControlH5.vue2.js");
|
|
4
4
|
;/* empty css */
|
|
5
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-
|
|
6
|
+
const MoreControlH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-2a47be79"]]);
|
|
7
7
|
exports.default = MoreControlH5;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const voteIcon = require("../../../assets/imgs/vote-icon.png.js");
|
|
5
|
-
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
6
5
|
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
7
6
|
const useMoreControlHooks = require("./useMoreControlHooks.js");
|
|
8
7
|
require("../../../services/main.js");
|
|
@@ -44,14 +43,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
44
43
|
title: Vue.unref(t)("Vote"),
|
|
45
44
|
onClickIcon: toggleMoreSidebar
|
|
46
45
|
}, {
|
|
47
|
-
default: Vue.withCtx(() => [
|
|
48
|
-
Vue.
|
|
49
|
-
_cache[0] || (_cache[0] = Vue.createElementVNode("img", {
|
|
46
|
+
default: Vue.withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
47
|
+
Vue.createElementVNode("img", {
|
|
50
48
|
class: "ndsc-img-box",
|
|
51
49
|
src: voteIcon.default,
|
|
52
50
|
alt: ""
|
|
53
|
-
}, null, -1)
|
|
54
|
-
]),
|
|
51
|
+
}, null, -1)
|
|
52
|
+
])]),
|
|
55
53
|
_: 1
|
|
56
54
|
}, 8, ["is-active", "title"])
|
|
57
55
|
])) : Vue.createCommentVNode("", true);
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const MoreControlPC_vue_vue_type_script_setup_true_lang = require("./MoreControlPC.vue2.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-997feff9"]]);
|
|
7
7
|
exports.default = MoreControlPc;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const voteIcon = require("../../../assets/imgs/vote-icon.png.js");
|
|
5
|
-
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
6
5
|
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
7
6
|
const useMoreControlHooks = require("./useMoreControlHooks.js");
|
|
8
7
|
require("../../../services/main.js");
|
|
@@ -44,14 +43,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
44
43
|
title: Vue.unref(t)("Vote"),
|
|
45
44
|
onClickIcon: toggleMoreSidebar
|
|
46
45
|
}, {
|
|
47
|
-
default: Vue.withCtx(() => [
|
|
48
|
-
Vue.
|
|
49
|
-
_cache[0] || (_cache[0] = Vue.createElementVNode("img", {
|
|
46
|
+
default: Vue.withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
47
|
+
Vue.createElementVNode("img", {
|
|
50
48
|
class: "ndsc-img-box",
|
|
51
49
|
src: voteIcon.default,
|
|
52
50
|
alt: ""
|
|
53
|
-
}, null, -1)
|
|
54
|
-
]),
|
|
51
|
+
}, null, -1)
|
|
52
|
+
])]),
|
|
55
53
|
_: 1
|
|
56
54
|
}, 8, ["is-active", "title"])
|
|
57
55
|
])) : Vue.createCommentVNode("", true);
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
declare const Index:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const Index: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"show-overlay": (...args: any[]) => void;
|
|
7
|
+
"on-vote": (...args: any[]) => void;
|
|
8
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<{}> & Readonly<{
|
|
16
|
+
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, {}>;
|
|
19
|
+
__isFragment?: never;
|
|
20
|
+
__isTeleport?: never;
|
|
21
|
+
__isSuspense?: never;
|
|
22
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
4
23
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
|
|
24
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"show-overlay": (...args: any[]) => void;
|
|
27
|
+
"on-vote": (...args: any[]) => void;
|
|
28
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
29
|
+
$slots: {
|
|
30
|
+
contentH5?(_: {}): any;
|
|
31
|
+
};
|
|
32
|
+
})) | ({
|
|
6
33
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
7
34
|
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
8
35
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
contentH5?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
5
|
"show-overlay": (...args: any[]) => void;
|
|
6
|
+
"on-vote": (...args: any[]) => void;
|
|
3
7
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
8
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
12
|
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const indexH5_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-92597491"]]);
|
|
7
7
|
exports.default = indexH5;
|
|
@@ -57,17 +57,22 @@ const ManageMemberControl_vue_vue_type_script_setup_true_lang = require("../Mana
|
|
|
57
57
|
const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
|
|
58
58
|
const ManageStageControl_vue_vue_type_script_setup_true_lang = require("../ManageStageControl.vue.js");
|
|
59
59
|
const MemberApplyControl = require("../ApplyControl/MemberApplyControl.vue.js");
|
|
60
|
-
const index$
|
|
60
|
+
const index$2 = require("../MoreControl/index.js");
|
|
61
61
|
const AIControl = require("../AIControl.vue.js");
|
|
62
|
+
const index$1 = require("../VoteControl/index.js");
|
|
62
63
|
const useMitt = require("../../../hooks/useMitt.js");
|
|
63
64
|
const useRoomFooterHooks = require("./useRoomFooterHooks.js");
|
|
64
65
|
const _hoisted_1 = { class: "footer-container" };
|
|
65
66
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
66
67
|
__name: "indexH5",
|
|
67
|
-
emits: ["show-overlay"],
|
|
68
|
+
emits: ["show-overlay", "on-vote"],
|
|
68
69
|
setup(__props, { emit: __emit }) {
|
|
69
70
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooterHooks.default();
|
|
70
71
|
const emit = __emit;
|
|
72
|
+
const onVote = (data) => {
|
|
73
|
+
console.log(data, "data111");
|
|
74
|
+
emit("on-vote", { code: data.visible, message: "vote" });
|
|
75
|
+
};
|
|
71
76
|
function handleControlClick(name) {
|
|
72
77
|
useMitt.default.emit("experience-communication", name);
|
|
73
78
|
}
|
|
@@ -88,11 +93,21 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
88
93
|
}, null, 8, ["display-mode"])), [
|
|
89
94
|
[Vue.unref(vTap.default), () => handleControlClick("videoControl")]
|
|
90
95
|
]) : Vue.createCommentVNode("", true),
|
|
96
|
+
Vue.createVNode(Vue.unref(index$1.default), {
|
|
97
|
+
class: "center-container-item",
|
|
98
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl")),
|
|
99
|
+
onOnVote: onVote
|
|
100
|
+
}, {
|
|
101
|
+
contentH5: Vue.withCtx(() => [
|
|
102
|
+
Vue.renderSlot(_ctx.$slots, "contentH5", {}, void 0, true)
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
}),
|
|
91
106
|
!Vue.unref(roomStore).isSpeakAfterTakingSeatMode ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(ChatControl_vue_vue_type_script_setup_true_lang.default, { key: 2 }, null, 512)), [
|
|
92
107
|
[Vue.unref(vTap.default), () => handleControlClick("chatControl")]
|
|
93
108
|
]) : Vue.createCommentVNode("", true),
|
|
94
109
|
Vue.createVNode(AIControl.default, {
|
|
95
|
-
onClick: _cache[
|
|
110
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("AIControl"))
|
|
96
111
|
}),
|
|
97
112
|
Vue.unref(roomStore).isSpeakAfterTakingSeatMode && (Vue.unref(isMaster) || Vue.unref(isAdmin)) ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(ManageStageControl_vue_vue_type_script_setup_true_lang.default, { key: 3 }, null, 512)), [
|
|
98
113
|
[Vue.unref(vTap.default), () => handleControlClick("MasterApplyControl")]
|
|
@@ -103,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
103
118
|
Vue.withDirectives(Vue.createVNode(ManageMemberControl_vue_vue_type_script_setup_true_lang.default, null, null, 512), [
|
|
104
119
|
[Vue.unref(vTap.default), () => handleControlClick("manageMemberControl")]
|
|
105
120
|
]),
|
|
106
|
-
Vue.withDirectives(Vue.createVNode(Vue.unref(index$
|
|
121
|
+
Vue.withDirectives(Vue.createVNode(Vue.unref(index$2.default), { onShowOverlay: handleShowOverlay }, null, 512), [
|
|
107
122
|
[Vue.unref(vTap.default), () => handleControlClick("moreControl")]
|
|
108
123
|
])
|
|
109
124
|
]);
|
package/lib/index.js
CHANGED
|
@@ -3664,7 +3664,13 @@ to {
|
|
|
3664
3664
|
.tool-box .tool-box-item[data-v-34681937]:hover {
|
|
3665
3665
|
border-radius: 8px;
|
|
3666
3666
|
background-color: var(--list-color-hover);
|
|
3667
|
-
}.
|
|
3667
|
+
}.ndsc-img-box[data-v-2a47be79] {
|
|
3668
|
+
width: 24px;
|
|
3669
|
+
height: 24px;
|
|
3670
|
+
}.ndsc-img-box[data-v-997feff9] {
|
|
3671
|
+
width: 24px;
|
|
3672
|
+
height: 24px;
|
|
3673
|
+
}.footer-container[data-v-92597491] {
|
|
3668
3674
|
position: absolute;
|
|
3669
3675
|
bottom: 0;
|
|
3670
3676
|
display: flex;
|
|
@@ -3928,12 +3934,6 @@ to {
|
|
|
3928
3934
|
}
|
|
3929
3935
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3930
3936
|
margin-left: 4px;
|
|
3931
|
-
}.ndsc-img-box[data-v-2d633075] {
|
|
3932
|
-
width: 50px;
|
|
3933
|
-
height: 50px;
|
|
3934
|
-
}.ndsc-img-box[data-v-9e42a812] {
|
|
3935
|
-
width: 50px;
|
|
3936
|
-
height: 50px;
|
|
3937
3937
|
}.footer-container[data-v-4afcea78] {
|
|
3938
3938
|
position: absolute;
|
|
3939
3939
|
bottom: 0;
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
:title="t('Vote')"
|
|
6
6
|
@click-icon="toggleMoreSidebar"
|
|
7
7
|
>
|
|
8
|
-
<IconMore size="24" />
|
|
9
8
|
<img class="ndsc-img-box" src="../../../assets/imgs/vote-icon.png" alt=""/>
|
|
10
9
|
</icon-button>
|
|
11
10
|
</div>
|
|
@@ -35,7 +34,7 @@ function toggleMoreSidebar() {
|
|
|
35
34
|
</script>
|
|
36
35
|
<style lang="scss" scoped>
|
|
37
36
|
.ndsc-img-box{
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
37
|
+
width: 24px;
|
|
38
|
+
height: 24px
|
|
40
39
|
}
|
|
41
40
|
</style>
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
:title="t('Vote')"
|
|
6
6
|
@click-icon="toggleMoreSidebar"
|
|
7
7
|
>
|
|
8
|
-
<IconMore size="24" />
|
|
9
8
|
<img class="ndsc-img-box" src="../../../assets/imgs/vote-icon.png" alt=""/>
|
|
10
9
|
</icon-button>
|
|
11
10
|
</div>
|
|
@@ -35,7 +34,7 @@ function toggleMoreSidebar() {
|
|
|
35
34
|
</script>
|
|
36
35
|
<style lang="scss" scoped>
|
|
37
36
|
.ndsc-img-box{
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
37
|
+
width: 24px;
|
|
38
|
+
height: 24px
|
|
40
39
|
}
|
|
41
40
|
</style>
|
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
:display-mode="MediaSettingDisplayMode.Icon"
|
|
11
11
|
v-tap="() => handleControlClick('videoControl')"
|
|
12
12
|
/>
|
|
13
|
+
<voteControl
|
|
14
|
+
class="center-container-item"
|
|
15
|
+
@click="handleControlClick('voteControl')"
|
|
16
|
+
@on-vote="onVote"
|
|
17
|
+
>
|
|
18
|
+
<template #contentH5>
|
|
19
|
+
<slot name="contentH5"></slot>
|
|
20
|
+
</template>
|
|
21
|
+
</voteControl>
|
|
13
22
|
<chat-control
|
|
14
23
|
v-if="!roomStore.isSpeakAfterTakingSeatMode"
|
|
15
24
|
v-tap="() => handleControlClick('chatControl')"
|
|
@@ -47,6 +56,7 @@ import MasterApplyControl from '../ManageStageControl.vue';
|
|
|
47
56
|
import MemberApplyControl from '../ApplyControl/MemberApplyControl.vue';
|
|
48
57
|
import MoreControl from '../MoreControl/index';
|
|
49
58
|
import AIControl from '../AIControl.vue';
|
|
59
|
+
import voteControl from '../VoteControl';
|
|
50
60
|
import bus from '../../../hooks/useMitt';
|
|
51
61
|
import vTap from '../../../directives/vTap';
|
|
52
62
|
|
|
@@ -54,8 +64,11 @@ import useRoomFooter from './useRoomFooterHooks';
|
|
|
54
64
|
|
|
55
65
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
|
|
56
66
|
|
|
57
|
-
const emit = defineEmits(['show-overlay']);
|
|
58
|
-
|
|
67
|
+
const emit = defineEmits(['show-overlay','on-vote']);
|
|
68
|
+
const onVote = (data: { name: string; visible: boolean }) => {
|
|
69
|
+
console.log(data,"data111")
|
|
70
|
+
emit('on-vote', { code: data.visible, message: 'vote' });
|
|
71
|
+
};
|
|
59
72
|
function handleControlClick(name: string) {
|
|
60
73
|
bus.emit('experience-communication', name);
|
|
61
74
|
}
|