@ndscnj/roomkit-web-vue3 25.12.23181 → 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/RoomInvite/useRoomInviteHooks.d.ts +1 -1
- package/es/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
- 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 +54 -34
- package/es/locales/zh-CN.mjs +1 -1
- package/es/stores/basic.d.ts +1 -1
- 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/RoomInvite/useRoomInviteHooks.d.ts +1 -1
- package/lib/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
- 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 +54 -34
- package/lib/locales/zh-CN.js +1 -1
- package/lib/stores/basic.d.ts +1 -1
- 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 +30 -33
- 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/src/TUIRoom/locales/zh-CN.ts +1 -1
- package/src/TUIRoom/stores/basic.ts +1 -1
- 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
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
content?(_: {}): any;
|
|
3
|
-
};
|
|
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>;
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
-
new (): {
|
|
13
|
-
$slots: S;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./voteControl.vue2.mjs";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-412ed740"]]);
|
|
5
|
-
export {
|
|
6
|
-
voteControl as default
|
|
7
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createTextVNode, createElementVNode, withCtx, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import "../../services/main.mjs";
|
|
3
|
-
import { roomService } from "../../services/roomService.mjs";
|
|
4
|
-
import { useI18n } from "../../locales/index.mjs";
|
|
5
|
-
import "@tencentcloud/tuiroom-engine-js";
|
|
6
|
-
import "../../utils/environment.mjs";
|
|
7
|
-
import "mitt";
|
|
8
|
-
import "../../services/manager/roomActionManager.mjs";
|
|
9
|
-
import "@tencentcloud/tui-core";
|
|
10
|
-
const _hoisted_1 = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "more-container"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_2 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "tool-box"
|
|
17
|
-
};
|
|
18
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
-
__name: "voteControl",
|
|
20
|
-
emits: ["on-vote"],
|
|
21
|
-
setup(__props, { emit: __emit }) {
|
|
22
|
-
const { basicStore } = roomService;
|
|
23
|
-
const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
|
|
24
|
-
const sidebarName = computed(() => basicStore.sidebarName);
|
|
25
|
-
const { t } = useI18n();
|
|
26
|
-
const showToolBox = ref(false);
|
|
27
|
-
watch(isSidebarOpen, (newValue) => {
|
|
28
|
-
showToolBox.value = newValue && false;
|
|
29
|
-
});
|
|
30
|
-
const voteControlConfig = roomService.getComponentConfig("VoteControl");
|
|
31
|
-
const emit = __emit;
|
|
32
|
-
function toggleToolBox() {
|
|
33
|
-
showToolBox.value = !showToolBox.value;
|
|
34
|
-
emit("on-vote", {
|
|
35
|
-
name: "onVote",
|
|
36
|
-
visible: showToolBox.value
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
const _component_IconAIIcon = resolveComponent("IconAIIcon");
|
|
41
|
-
const _component_icon_button = resolveComponent("icon-button");
|
|
42
|
-
return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
-
createVNode(_component_icon_button, {
|
|
44
|
-
"is-active": sidebarName.value === "vote",
|
|
45
|
-
title: unref(t)("Vote"),
|
|
46
|
-
onClickIcon: toggleToolBox
|
|
47
|
-
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
createVNode(_component_IconAIIcon, { size: "24" })
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["is-active", "title"]),
|
|
53
|
-
createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
|
|
54
|
-
createElementVNode("div", { onClick: toggleToolBox }, "测试"),
|
|
55
|
-
!isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
56
|
-
_cache[0] || (_cache[0] = createTextVNode(" 123 ", -1)),
|
|
57
|
-
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
58
|
-
])) : createCommentVNode("", true)
|
|
59
|
-
])) : createCommentVNode("", true);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
_sfc_main as default
|
|
65
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
content?(_: {}): any;
|
|
3
|
-
};
|
|
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>;
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
-
new (): {
|
|
13
|
-
$slots: S;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const voteControl_vue_vue_type_script_setup_true_lang = require("./voteControl.vue2.js");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-412ed740"]]);
|
|
7
|
-
exports.default = voteControl;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
require("../../services/main.js");
|
|
5
|
-
const roomService = require("../../services/roomService.js");
|
|
6
|
-
const index = require("../../locales/index.js");
|
|
7
|
-
require("@tencentcloud/tuiroom-engine-js");
|
|
8
|
-
require("../../utils/environment.js");
|
|
9
|
-
require("mitt");
|
|
10
|
-
require("../../services/manager/roomActionManager.js");
|
|
11
|
-
require("@tencentcloud/tui-core");
|
|
12
|
-
const _hoisted_1 = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "more-container"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_2 = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "tool-box"
|
|
19
|
-
};
|
|
20
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
21
|
-
__name: "voteControl",
|
|
22
|
-
emits: ["on-vote"],
|
|
23
|
-
setup(__props, { emit: __emit }) {
|
|
24
|
-
const { basicStore } = roomService.roomService;
|
|
25
|
-
const isSidebarOpen = Vue.computed(() => basicStore.isSidebarOpen);
|
|
26
|
-
const sidebarName = Vue.computed(() => basicStore.sidebarName);
|
|
27
|
-
const { t } = index.useI18n();
|
|
28
|
-
const showToolBox = Vue.ref(false);
|
|
29
|
-
Vue.watch(isSidebarOpen, (newValue) => {
|
|
30
|
-
showToolBox.value = newValue && false;
|
|
31
|
-
});
|
|
32
|
-
const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
|
|
33
|
-
const emit = __emit;
|
|
34
|
-
function toggleToolBox() {
|
|
35
|
-
showToolBox.value = !showToolBox.value;
|
|
36
|
-
emit("on-vote", {
|
|
37
|
-
name: "onVote",
|
|
38
|
-
visible: showToolBox.value
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
const _component_IconAIIcon = Vue.resolveComponent("IconAIIcon");
|
|
43
|
-
const _component_icon_button = Vue.resolveComponent("icon-button");
|
|
44
|
-
return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
45
|
-
Vue.createVNode(_component_icon_button, {
|
|
46
|
-
"is-active": sidebarName.value === "vote",
|
|
47
|
-
title: Vue.unref(t)("Vote"),
|
|
48
|
-
onClickIcon: toggleToolBox
|
|
49
|
-
}, {
|
|
50
|
-
default: Vue.withCtx(() => [
|
|
51
|
-
Vue.createVNode(_component_IconAIIcon, { size: "24" })
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["is-active", "title"]),
|
|
55
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(sidebarName.value) + " ", 1),
|
|
56
|
-
Vue.createElementVNode("div", { onClick: toggleToolBox }, "测试"),
|
|
57
|
-
!isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
58
|
-
_cache[0] || (_cache[0] = Vue.createTextVNode(" 123 ", -1)),
|
|
59
|
-
Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
60
|
-
])) : Vue.createCommentVNode("", true)
|
|
61
|
-
])) : Vue.createCommentVNode("", true);
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
exports.default = _sfc_main;
|