@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
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, 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
|
-
import IconButton from "../common/base/IconButton.vue.mjs";
|
|
11
|
-
import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
|
|
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__ */ defineComponent({
|
|
21
|
-
__name: "voteControl",
|
|
22
|
-
emits: ["on-vote"],
|
|
23
|
-
setup(__props, { emit: __emit }) {
|
|
24
|
-
const { basicStore } = roomService;
|
|
25
|
-
const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
|
|
26
|
-
const sidebarName = computed(() => basicStore.sidebarName);
|
|
27
|
-
const { t } = useI18n();
|
|
28
|
-
const showToolBox = ref(false);
|
|
29
|
-
watch(isSidebarOpen, (newValue) => {
|
|
30
|
-
showToolBox.value = newValue && false;
|
|
31
|
-
});
|
|
32
|
-
const voteControlConfig = 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
|
-
return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
-
createVNode(IconButton, {
|
|
44
|
-
"is-active": sidebarName.value === "vote",
|
|
45
|
-
title: unref(t)("Vote"),
|
|
46
|
-
onClickIcon: toggleToolBox
|
|
47
|
-
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
createVNode(unref(IconAIIcon), { size: "24" })
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["is-active", "title"]),
|
|
53
|
-
createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
|
|
54
|
-
createElementVNode("div", { onClick: toggleToolBox }, "0测试"),
|
|
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-45795e90"]]);
|
|
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 IconButton = require("../common/base/IconButton.vue.js");
|
|
13
|
-
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
14
|
-
const _hoisted_1 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "more-container"
|
|
17
|
-
};
|
|
18
|
-
const _hoisted_2 = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "tool-box"
|
|
21
|
-
};
|
|
22
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
23
|
-
__name: "voteControl",
|
|
24
|
-
emits: ["on-vote"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const { basicStore } = roomService.roomService;
|
|
27
|
-
const isSidebarOpen = Vue.computed(() => basicStore.isSidebarOpen);
|
|
28
|
-
const sidebarName = Vue.computed(() => basicStore.sidebarName);
|
|
29
|
-
const { t } = index.useI18n();
|
|
30
|
-
const showToolBox = Vue.ref(false);
|
|
31
|
-
Vue.watch(isSidebarOpen, (newValue) => {
|
|
32
|
-
showToolBox.value = newValue && false;
|
|
33
|
-
});
|
|
34
|
-
const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
|
|
35
|
-
const emit = __emit;
|
|
36
|
-
function toggleToolBox() {
|
|
37
|
-
showToolBox.value = !showToolBox.value;
|
|
38
|
-
emit("on-vote", {
|
|
39
|
-
name: "onVote",
|
|
40
|
-
visible: showToolBox.value
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
45
|
-
Vue.createVNode(IconButton.default, {
|
|
46
|
-
"is-active": sidebarName.value === "vote",
|
|
47
|
-
title: Vue.unref(t)("Vote"),
|
|
48
|
-
onClickIcon: toggleToolBox
|
|
49
|
-
}, {
|
|
50
|
-
default: Vue.withCtx(() => [
|
|
51
|
-
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.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 }, "0测试"),
|
|
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;
|