@ndscnj/roomkit-web-vue3 25.12.2412 → 25.12.2413
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 -3
- package/es/components/RoomFooter/voteControl/index.d.ts +1 -5
- package/es/components/RoomFooter/voteControl.vue.d.ts +15 -0
- package/es/components/RoomFooter/voteControl.vue.mjs +7 -0
- package/es/components/RoomFooter/voteControl.vue2.mjs +60 -0
- package/es/components/RoomVote/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +1 -1
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +0 -1
- package/es/constants/icon.d.ts +0 -2
- package/es/constants/icon.mjs +0 -2
- package/es/index.mjs +32 -60
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -7
- package/lib/components/RoomFooter/voteControl/index.d.ts +1 -5
- package/lib/components/RoomFooter/voteControl.vue.d.ts +15 -0
- package/lib/components/RoomFooter/voteControl.vue.js +7 -0
- package/lib/components/RoomFooter/voteControl.vue2.js +60 -0
- package/lib/components/RoomVote/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +1 -1
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +0 -1
- package/lib/constants/icon.d.ts +0 -2
- package/lib/constants/icon.js +0 -2
- package/lib/index.js +32 -60
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -2
- package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlPC.vue +6 -10
- package/src/TUIRoom/components/RoomFooter/voteControl/useVoteControlHooks.ts +1 -1
- package/src/TUIRoom/components/RoomFooter/voteControl.vue +1 -0
- package/src/TUIRoom/components/RoomVote/indexPC.vue +1 -1
- package/src/TUIRoom/conference.vue +0 -1
- package/src/TUIRoom/constants/icon.ts +0 -2
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +0 -6
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue.mjs +0 -7
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue2.mjs +0 -105
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +0 -6
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.mjs +0 -55
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue2.mjs +0 -4
- package/es/components/RoomFooter/voteControl/index.mjs +0 -7
- package/es/components/RoomFooter/voteControl/useVoteControlHooks.mjs +0 -22
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +0 -6
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.js +0 -7
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue2.js +0 -105
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +0 -6
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.js +0 -55
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue2.js +0 -4
- package/lib/components/RoomFooter/voteControl/index.js +0 -7
- package/lib/components/RoomFooter/voteControl/useVoteControlHooks.js +0 -22
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
5
|
-
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
6
|
-
const useVoteControlHooks = require("./useVoteControlHooks.js");
|
|
7
|
-
require("../../../services/main.js");
|
|
8
|
-
const roomService = require("../../../services/roomService.js");
|
|
9
|
-
require("../../../locales/index.js");
|
|
10
|
-
require("@tencentcloud/tuiroom-engine-js");
|
|
11
|
-
require("../../../utils/environment.js");
|
|
12
|
-
require("mitt");
|
|
13
|
-
require("../../../services/manager/roomActionManager.js");
|
|
14
|
-
require("@tencentcloud/tui-core");
|
|
15
|
-
const _hoisted_1 = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "vote-control-container"
|
|
18
|
-
};
|
|
19
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
|
-
__name: "VoteControlPC",
|
|
21
|
-
emits: ["on-vote"],
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
|
|
24
|
-
const { t, basicStore, sidebarName } = useVoteControlHooks.default();
|
|
25
|
-
const emit = __emit;
|
|
26
|
-
function toggleMoreSidebar() {
|
|
27
|
-
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
28
|
-
basicStore.setSidebarOpenStatus(false);
|
|
29
|
-
basicStore.setSidebarName("");
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
basicStore.setSidebarOpenStatus(true);
|
|
33
|
-
basicStore.setSidebarName("vote");
|
|
34
|
-
emit("on-vote", {
|
|
35
|
-
name: "onVote",
|
|
36
|
-
visible: voteControlConfig.visible
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
41
|
-
Vue.createVNode(IconButton.default, {
|
|
42
|
-
"is-active": Vue.unref(sidebarName) === "vote",
|
|
43
|
-
title: Vue.unref(t)("Vote"),
|
|
44
|
-
onClickIcon: toggleMoreSidebar
|
|
45
|
-
}, {
|
|
46
|
-
default: Vue.withCtx(() => [
|
|
47
|
-
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconMore), { size: "24" })
|
|
48
|
-
]),
|
|
49
|
-
_: 1
|
|
50
|
-
}, 8, ["is-active", "title"])
|
|
51
|
-
])) : Vue.createCommentVNode("", true);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
exports.default = _sfc_main;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const VoteControlPC_vue_vue_type_script_setup_true_lang = require("./VoteControlPC.vue.js");
|
|
4
|
-
exports.default = VoteControlPC_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const VoteControlH5 = require("./VoteControlH5.vue.js");
|
|
4
|
-
const VoteControlPC_vue_vue_type_script_setup_true_lang = require("./VoteControlPC.vue.js");
|
|
5
|
-
const environment = require("../../../utils/environment.js");
|
|
6
|
-
const VoteControl = environment.isMobile ? VoteControlH5.default : VoteControlPC_vue_vue_type_script_setup_true_lang.default;
|
|
7
|
-
exports.default = VoteControl;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const basic = require("../../../stores/basic.js");
|
|
5
|
-
const pinia = require("pinia");
|
|
6
|
-
const index = require("../../../locales/index.js");
|
|
7
|
-
const icon = require("../../../constants/icon.js");
|
|
8
|
-
function useControl() {
|
|
9
|
-
const { t } = index.useI18n();
|
|
10
|
-
const basicStore = basic.useBasicStore();
|
|
11
|
-
const { sidebarName } = pinia.storeToRefs(basicStore);
|
|
12
|
-
const iconName = Vue.computed(
|
|
13
|
-
() => sidebarName.value === "vote" ? icon.ICON_NAME.VoteActive : icon.ICON_NAME.Vote
|
|
14
|
-
);
|
|
15
|
-
return {
|
|
16
|
-
t,
|
|
17
|
-
basicStore,
|
|
18
|
-
iconName,
|
|
19
|
-
sidebarName
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.default = useControl;
|