@ndscnj/roomkit-web-vue3 25.12.2410 → 25.12.2412
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/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +2 -2
- 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.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/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +2 -2
- package/es/constants/icon.d.ts +2 -0
- package/es/constants/icon.mjs +2 -0
- package/es/index.mjs +53 -25
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -6
- 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.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/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +2 -2
- package/lib/constants/icon.d.ts +2 -0
- package/lib/constants/icon.js +2 -0
- package/lib/index.js +53 -25
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -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 +5 -4
- package/src/TUIRoom/components/RoomVote/indexPC.vue +2 -2
- package/src/TUIRoom/constants/icon.ts +2 -0
- package/es/components/RoomFooter/voteControl.vue.mjs +0 -7
- package/es/components/RoomFooter/voteControl.vue2.mjs +0 -52
- package/lib/components/RoomFooter/voteControl.vue.js +0 -7
- package/lib/components/RoomFooter/voteControl.vue2.js +0 -52
- /package/es/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts} +0 -0
- /package/lib/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts} +0 -0
|
@@ -1,52 +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 = { class: "vote-control-container" };
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
16
|
-
__name: "voteControl",
|
|
17
|
-
emits: ["on-vote"],
|
|
18
|
-
setup(__props, { emit: __emit }) {
|
|
19
|
-
const { basicStore } = roomService.roomService;
|
|
20
|
-
const isSidebarOpen = Vue.computed(() => basicStore.isSidebarOpen);
|
|
21
|
-
const sidebarName = Vue.computed(() => basicStore.sidebarName);
|
|
22
|
-
const { t } = index.useI18n();
|
|
23
|
-
const showToolBox = Vue.ref(false);
|
|
24
|
-
Vue.watch(isSidebarOpen, (newValue) => {
|
|
25
|
-
showToolBox.value = newValue && false;
|
|
26
|
-
});
|
|
27
|
-
const emit = __emit;
|
|
28
|
-
function toggleToolBox() {
|
|
29
|
-
console.log(showToolBox.value, "0000");
|
|
30
|
-
showToolBox.value = !showToolBox.value;
|
|
31
|
-
emit("on-vote", {
|
|
32
|
-
name: "onVote",
|
|
33
|
-
visible: showToolBox.value
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
38
|
-
Vue.createVNode(IconButton.default, {
|
|
39
|
-
"is-active": sidebarName.value === "vote",
|
|
40
|
-
title: Vue.unref(t)("Vote"),
|
|
41
|
-
onClickIcon: toggleToolBox
|
|
42
|
-
}, {
|
|
43
|
-
default: Vue.withCtx(() => [
|
|
44
|
-
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconAIIcon), { size: "24" })
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
}, 8, ["is-active", "title"])
|
|
48
|
-
]);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
exports.default = _sfc_main;
|
/package/es/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts}
RENAMED
|
File without changes
|
/package/lib/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts}
RENAMED
|
File without changes
|