@ndscnj/roomkit-web-vue3 25.12.24152 → 25.12.24154
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.d.ts +6 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.mjs +7 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +105 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +49 -0
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +4 -0
- package/es/components/RoomFooter/VoteControl/index.d.ts +6 -0
- package/es/components/RoomFooter/VoteControl/index.mjs +7 -0
- package/es/components/RoomFooter/VoteControl/useMoreControlHooks.mjs +22 -0
- package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +4 -4
- package/es/components/RoomVote/index.d.ts +1 -17
- package/es/components/RoomVote/indexPC.vue.d.ts +1 -10
- package/es/components/RoomVote/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +1 -5
- package/es/index.mjs +53 -25
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +6 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +7 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +105 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +49 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +4 -0
- package/lib/components/RoomFooter/VoteControl/index.d.ts +6 -0
- package/lib/components/RoomFooter/VoteControl/index.js +7 -0
- package/lib/components/RoomFooter/VoteControl/useMoreControlHooks.js +22 -0
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -6
- package/lib/components/RoomVote/index.d.ts +1 -17
- package/lib/components/RoomVote/indexPC.vue.d.ts +1 -10
- package/lib/components/RoomVote/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +0 -4
- package/lib/index.js +53 -25
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +122 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +31 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/index.ts +8 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/useMoreControlHooks.ts +23 -0
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -1
- package/src/TUIRoom/components/RoomVote/indexPC.vue +0 -3
- 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 -55
- 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 -55
|
@@ -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-753053ea"]]);
|
|
7
|
-
exports.default = voteControl;
|
|
@@ -1,55 +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 _hoisted_2 = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "contact-container"
|
|
18
|
-
};
|
|
19
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
|
-
__name: "voteControl",
|
|
21
|
-
emits: ["on-vote"],
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const { basicStore } = roomService.roomService;
|
|
24
|
-
const sidebarName = Vue.computed(() => basicStore.sidebarName);
|
|
25
|
-
const { t } = index.useI18n();
|
|
26
|
-
const showToolBox = Vue.ref(false);
|
|
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
|
-
showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
49
|
-
Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
50
|
-
])) : Vue.createCommentVNode("", true)
|
|
51
|
-
]);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
exports.default = _sfc_main;
|