@ndscnj/roomkit-web-vue3 25.12.2421 → 25.12.2423

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.
Files changed (28) hide show
  1. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +5 -1
  2. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +1 -1
  3. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +10 -2
  4. package/es/components/RoomFooter/VoteControl/index.d.ts +5 -1
  5. package/es/components/RoomFooter/index/index.d.ts +5 -0
  6. package/es/components/RoomFooter/index/indexH5.vue.d.ts +2 -0
  7. package/es/components/RoomFooter/index/indexH5.vue.mjs +1 -1
  8. package/es/components/RoomFooter/index/indexH5.vue2.mjs +7 -2
  9. package/es/components/RoomSidebar/index.d.ts +27 -1
  10. package/es/components/RoomSidebar/indexPC.vue.d.ts +5 -1
  11. package/es/components/RoomSidebar/indexPC.vue.mjs +12 -2
  12. package/es/index.mjs +2 -2
  13. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +5 -1
  14. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +1 -1
  15. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +9 -1
  16. package/lib/components/RoomFooter/VoteControl/index.d.ts +5 -1
  17. package/lib/components/RoomFooter/index/index.d.ts +5 -0
  18. package/lib/components/RoomFooter/index/indexH5.vue.d.ts +2 -0
  19. package/lib/components/RoomFooter/index/indexH5.vue.js +1 -1
  20. package/lib/components/RoomFooter/index/indexH5.vue2.js +7 -2
  21. package/lib/components/RoomSidebar/index.d.ts +27 -1
  22. package/lib/components/RoomSidebar/indexPC.vue.d.ts +5 -1
  23. package/lib/components/RoomSidebar/indexPC.vue.js +12 -2
  24. package/lib/index.js +2 -2
  25. package/package.json +1 -1
  26. package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +8 -2
  27. package/src/TUIRoom/components/RoomFooter/index/indexH5.vue +6 -2
  28. package/src/TUIRoom/components/RoomSidebar/indexPC.vue +10 -1
@@ -1,2 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "on-vote": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
6
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./MoreControlPC.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca02c770"]]);
4
+ const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-db9d7b2c"]]);
5
5
  export {
6
6
  MoreControlPc as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
1
+ import { defineComponent, ref, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
2
2
  import _imports_0 from "../../../assets/imgs/vote-icon.png.mjs";
3
3
  import IconButton from "../../common/base/IconButton.vue.mjs";
4
4
  import useControl from "./useMoreControlHooks.mjs";
@@ -16,9 +16,12 @@ const _hoisted_1 = {
16
16
  };
17
17
  const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  __name: "MoreControlPC",
19
- setup(__props) {
19
+ emits: ["on-vote"],
20
+ setup(__props, { emit: __emit }) {
20
21
  const moreControlConfig = roomService.getComponentConfig("MoreControl");
21
22
  const { t, basicStore, sidebarName } = useControl();
23
+ const emit = __emit;
24
+ const showToolBox = ref(false);
22
25
  function toggleMoreSidebar() {
23
26
  if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
24
27
  basicStore.setSidebarOpenStatus(false);
@@ -27,6 +30,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
30
  }
28
31
  basicStore.setSidebarOpenStatus(true);
29
32
  basicStore.setSidebarName("vote");
33
+ showToolBox.value = !showToolBox.value;
34
+ emit("on-vote", {
35
+ name: "onVote",
36
+ visible: showToolBox.value
37
+ });
30
38
  }
31
39
  return (_ctx, _cache) => {
32
40
  return unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
@@ -2,5 +2,9 @@ declare const MoreControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, imp
2
2
  "show-overlay": (...args: any[]) => void;
3
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
4
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "on-vote": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
10
  export default MoreControl;
@@ -1,8 +1,10 @@
1
1
  declare const Index: ({
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
3
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
4
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
4
5
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
6
  "show-overlay": (...args: any[]) => void;
7
+ "on-vote": (...args: any[]) => void;
6
8
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
9
  P: {};
8
10
  B: {};
@@ -12,14 +14,17 @@ declare const Index: ({
12
14
  Defaults: {};
13
15
  }, Readonly<{}> & Readonly<{
14
16
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
17
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
15
18
  }>, {}, {}, {}, {}, {}>;
16
19
  __isFragment?: never;
17
20
  __isTeleport?: never;
18
21
  __isSuspense?: never;
19
22
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
20
23
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
24
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
21
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
26
  "show-overlay": (...args: any[]) => void;
27
+ "on-vote": (...args: any[]) => void;
23
28
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
29
  $slots: {
25
30
  content?(_: {}): any;
@@ -4,8 +4,10 @@ declare function __VLS_template(): {
4
4
  };
5
5
  declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
6
  "show-overlay": (...args: any[]) => void;
7
+ "on-vote": (...args: any[]) => void;
7
8
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
9
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
10
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
9
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
13
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./indexH5.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d92c63fc"]]);
4
+ const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39d26ee3"]]);
5
5
  export {
6
6
  indexH5 as default
7
7
  };
@@ -63,13 +63,17 @@ import useRoomFooter from "./useRoomFooterHooks.mjs";
63
63
  const _hoisted_1 = { class: "footer-container" };
64
64
  const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  __name: "indexH5",
66
- emits: ["show-overlay"],
66
+ emits: ["show-overlay", "on-vote"],
67
67
  setup(__props, { emit: __emit }) {
68
68
  const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
69
69
  const emit = __emit;
70
70
  function handleControlClick(name) {
71
71
  bus.emit("experience-communication", name);
72
72
  }
73
+ const onVote = (data) => {
74
+ console.log(data, "data789");
75
+ emit("on-vote", { code: data.visible, message: "vote" });
76
+ };
73
77
  function handleShowOverlay(data) {
74
78
  emit("show-overlay", data);
75
79
  }
@@ -91,7 +95,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
95
  [unref(vTap), () => handleControlClick("chatControl")]
92
96
  ]) : createCommentVNode("", true),
93
97
  createVNode(voteControl, {
94
- onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl"))
98
+ onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl")),
99
+ onOnVote: onVote
95
100
  }, {
96
101
  content: withCtx(() => [
97
102
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
@@ -1,2 +1,28 @@
1
- declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "on-vote": (...args: any[]) => void;
6
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<{}> & Readonly<{
14
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, {}>;
16
+ __isFragment?: never;
17
+ __isTeleport?: never;
18
+ __isSuspense?: never;
19
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
20
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
21
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "on-vote": (...args: any[]) => void;
23
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
+ $slots: {
25
+ content?(_: {}): any;
26
+ };
27
+ }));
2
28
  export default Index;
@@ -1,7 +1,11 @@
1
1
  declare function __VLS_template(): {
2
2
  content?(_: {}): any;
3
3
  };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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>;
5
9
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
10
  export default _default;
7
11
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -9,8 +9,15 @@ import AITranscription from "../common/widgets/AITools/AITranscription.vue.mjs";
9
9
  const _hoisted_1 = { class: "sidebar-container" };
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "indexPC",
12
- setup(__props) {
12
+ emits: [
13
+ "on-vote"
14
+ ],
15
+ setup(__props, { emit: __emit }) {
13
16
  const { isSidebarOpen, title, handleClose, sidebarName } = useSideBar();
17
+ const emit = __emit;
18
+ const onVote = (data) => {
19
+ emit("on-vote", { code: data.visible, message: "vote" });
20
+ };
14
21
  return (_ctx, _cache) => {
15
22
  return openBlock(), createElementBlock("div", _hoisted_1, [
16
23
  createVNode(Drawer, {
@@ -23,7 +30,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
30
  }, {
24
31
  default: withCtx(() => [
25
32
  unref(sidebarName) == "chat" ? (openBlock(), createBlock(unref(Index), { key: 0 })) : createCommentVNode("", true),
26
- unref(sidebarName) == "vote" ? (openBlock(), createBlock(unref(Index$1), { key: 1 }, {
33
+ unref(sidebarName) == "vote" ? (openBlock(), createBlock(unref(Index$1), {
34
+ key: 1,
35
+ onOnVote: onVote
36
+ }, {
27
37
  content: withCtx(() => [
28
38
  renderSlot(_ctx.$slots, "content")
29
39
  ]),
package/es/index.mjs CHANGED
@@ -3704,7 +3704,7 @@ to {
3704
3704
  .tool-box .tool-box-item[data-v-34681937]:hover {
3705
3705
  border-radius: 8px;
3706
3706
  background-color: var(--list-color-hover);
3707
- }.footer-container[data-v-d92c63fc] {
3707
+ }.footer-container[data-v-39d26ee3] {
3708
3708
  position: absolute;
3709
3709
  bottom: 0;
3710
3710
  display: flex;
@@ -4006,7 +4006,7 @@ to {
4006
4006
  border-radius: 8px;
4007
4007
  color: var(--text-color-primary);
4008
4008
  background-color: var(--button-color-secondary-default);
4009
- }.ndsc-img-box[data-v-ca02c770] {
4009
+ }.ndsc-img-box[data-v-db9d7b2c] {
4010
4010
  width: 24px;
4011
4011
  height: 24px;
4012
4012
  }.footer-container[data-v-4afcea78] {
@@ -1,2 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "on-vote": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
6
  export default _default;
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const MoreControlPC_vue_vue_type_script_setup_true_lang = require("./MoreControlPC.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-ca02c770"]]);
6
+ const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-db9d7b2c"]]);
7
7
  exports.default = MoreControlPc;
@@ -18,9 +18,12 @@ const _hoisted_1 = {
18
18
  };
19
19
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
20
20
  __name: "MoreControlPC",
21
- setup(__props) {
21
+ emits: ["on-vote"],
22
+ setup(__props, { emit: __emit }) {
22
23
  const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
23
24
  const { t, basicStore, sidebarName } = useMoreControlHooks.default();
25
+ const emit = __emit;
26
+ const showToolBox = Vue.ref(false);
24
27
  function toggleMoreSidebar() {
25
28
  if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
26
29
  basicStore.setSidebarOpenStatus(false);
@@ -29,6 +32,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
29
32
  }
30
33
  basicStore.setSidebarOpenStatus(true);
31
34
  basicStore.setSidebarName("vote");
35
+ showToolBox.value = !showToolBox.value;
36
+ emit("on-vote", {
37
+ name: "onVote",
38
+ visible: showToolBox.value
39
+ });
32
40
  }
33
41
  return (_ctx, _cache) => {
34
42
  return Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
@@ -2,5 +2,9 @@ declare const MoreControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, imp
2
2
  "show-overlay": (...args: any[]) => void;
3
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
4
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "on-vote": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
10
  export default MoreControl;
@@ -1,8 +1,10 @@
1
1
  declare const Index: ({
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
3
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
4
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
4
5
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
6
  "show-overlay": (...args: any[]) => void;
7
+ "on-vote": (...args: any[]) => void;
6
8
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
9
  P: {};
8
10
  B: {};
@@ -12,14 +14,17 @@ declare const Index: ({
12
14
  Defaults: {};
13
15
  }, Readonly<{}> & Readonly<{
14
16
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
17
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
15
18
  }>, {}, {}, {}, {}, {}>;
16
19
  __isFragment?: never;
17
20
  __isTeleport?: never;
18
21
  __isSuspense?: never;
19
22
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
20
23
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
24
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
21
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
26
  "show-overlay": (...args: any[]) => void;
27
+ "on-vote": (...args: any[]) => void;
23
28
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
29
  $slots: {
25
30
  content?(_: {}): any;
@@ -4,8 +4,10 @@ declare function __VLS_template(): {
4
4
  };
5
5
  declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
6
  "show-overlay": (...args: any[]) => void;
7
+ "on-vote": (...args: any[]) => void;
7
8
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
9
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
10
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
9
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
13
  export default _default;
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const indexH5_vue_vue_type_script_setup_true_lang = require("./indexH5.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-d92c63fc"]]);
6
+ const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-39d26ee3"]]);
7
7
  exports.default = indexH5;
@@ -65,13 +65,17 @@ const useRoomFooterHooks = require("./useRoomFooterHooks.js");
65
65
  const _hoisted_1 = { class: "footer-container" };
66
66
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
67
67
  __name: "indexH5",
68
- emits: ["show-overlay"],
68
+ emits: ["show-overlay", "on-vote"],
69
69
  setup(__props, { emit: __emit }) {
70
70
  const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooterHooks.default();
71
71
  const emit = __emit;
72
72
  function handleControlClick(name) {
73
73
  useMitt.default.emit("experience-communication", name);
74
74
  }
75
+ const onVote = (data) => {
76
+ console.log(data, "data789");
77
+ emit("on-vote", { code: data.visible, message: "vote" });
78
+ };
75
79
  function handleShowOverlay(data) {
76
80
  emit("show-overlay", data);
77
81
  }
@@ -93,7 +97,8 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
93
97
  [Vue.unref(vTap.default), () => handleControlClick("chatControl")]
94
98
  ]) : Vue.createCommentVNode("", true),
95
99
  Vue.createVNode(voteControl.default, {
96
- onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl"))
100
+ onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("voteControl")),
101
+ onOnVote: onVote
97
102
  }, {
98
103
  content: Vue.withCtx(() => [
99
104
  Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
@@ -1,2 +1,28 @@
1
- declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "on-vote": (...args: any[]) => void;
6
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<{}> & Readonly<{
14
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, {}>;
16
+ __isFragment?: never;
17
+ __isTeleport?: never;
18
+ __isSuspense?: never;
19
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
20
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
21
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "on-vote": (...args: any[]) => void;
23
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
+ $slots: {
25
+ content?(_: {}): any;
26
+ };
27
+ }));
2
28
  export default Index;
@@ -1,7 +1,11 @@
1
1
  declare function __VLS_template(): {
2
2
  content?(_: {}): any;
3
3
  };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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>;
5
9
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
10
  export default _default;
7
11
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -11,8 +11,15 @@ const AITranscription = require("../common/widgets/AITools/AITranscription.vue.j
11
11
  const _hoisted_1 = { class: "sidebar-container" };
12
12
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
13
13
  __name: "indexPC",
14
- setup(__props) {
14
+ emits: [
15
+ "on-vote"
16
+ ],
17
+ setup(__props, { emit: __emit }) {
15
18
  const { isSidebarOpen, title, handleClose, sidebarName } = useSideBarHooks.default();
19
+ const emit = __emit;
20
+ const onVote = (data) => {
21
+ emit("on-vote", { code: data.visible, message: "vote" });
22
+ };
16
23
  return (_ctx, _cache) => {
17
24
  return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
18
25
  Vue.createVNode(Drawer.default, {
@@ -25,7 +32,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
25
32
  }, {
26
33
  default: Vue.withCtx(() => [
27
34
  Vue.unref(sidebarName) == "chat" ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index.default), { key: 0 })) : Vue.createCommentVNode("", true),
28
- Vue.unref(sidebarName) == "vote" ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index$1.default), { key: 1 }, {
35
+ Vue.unref(sidebarName) == "vote" ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index$1.default), {
36
+ key: 1,
37
+ onOnVote: onVote
38
+ }, {
29
39
  content: Vue.withCtx(() => [
30
40
  Vue.renderSlot(_ctx.$slots, "content")
31
41
  ]),
package/lib/index.js CHANGED
@@ -3704,7 +3704,7 @@ to {
3704
3704
  .tool-box .tool-box-item[data-v-34681937]:hover {
3705
3705
  border-radius: 8px;
3706
3706
  background-color: var(--list-color-hover);
3707
- }.footer-container[data-v-d92c63fc] {
3707
+ }.footer-container[data-v-39d26ee3] {
3708
3708
  position: absolute;
3709
3709
  bottom: 0;
3710
3710
  display: flex;
@@ -4006,7 +4006,7 @@ to {
4006
4006
  border-radius: 8px;
4007
4007
  color: var(--text-color-primary);
4008
4008
  background-color: var(--button-color-secondary-default);
4009
- }.ndsc-img-box[data-v-ca02c770] {
4009
+ }.ndsc-img-box[data-v-db9d7b2c] {
4010
4010
  width: 24px;
4011
4011
  height: 24px;
4012
4012
  }.footer-container[data-v-4afcea78] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndscnj/roomkit-web-vue3",
3
- "version": "25.12.2421",
3
+ "version": "25.12.2423",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -14,10 +14,11 @@ import { IconMore } from '@tencentcloud/uikit-base-component-vue3';
14
14
  import IconButton from '../../common/base/IconButton.vue';
15
15
  import userMoreControl from './useMoreControlHooks';
16
16
  import { roomService } from '../../../services';
17
-
17
+ import { defineEmits,ref} from 'vue';
18
18
  const moreControlConfig = roomService.getComponentConfig('MoreControl');
19
19
  const { t, basicStore, sidebarName } = userMoreControl();
20
-
20
+ const emit = defineEmits(['on-vote']);
21
+ const showToolBox = ref(false);
21
22
  function toggleMoreSidebar() {
22
23
  if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === 'vote') {
23
24
  basicStore.setSidebarOpenStatus(false);
@@ -26,6 +27,11 @@ function toggleMoreSidebar() {
26
27
  }
27
28
  basicStore.setSidebarOpenStatus(true);
28
29
  basicStore.setSidebarName('vote');
30
+ showToolBox.value = !showToolBox.value;
31
+ emit('on-vote', {
32
+ name: 'onVote',
33
+ visible: showToolBox.value,
34
+ });
29
35
  }
30
36
  </script>
31
37
  <style lang="scss" scoped>
@@ -16,6 +16,7 @@
16
16
  />
17
17
  <voteControl
18
18
  @click="handleControlClick('voteControl')"
19
+ @on-vote="onVote"
19
20
  >
20
21
  <template #content>
21
22
  <slot name="content"></slot>
@@ -65,12 +66,15 @@ import useRoomFooter from './useRoomFooterHooks';
65
66
 
66
67
  const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
67
68
 
68
- const emit = defineEmits(['show-overlay']);
69
+ const emit = defineEmits(['show-overlay','on-vote']);
69
70
 
70
71
  function handleControlClick(name: string) {
71
72
  bus.emit('experience-communication', name);
72
73
  }
73
-
74
+ const onVote = (data: { name: string; visible: boolean }) => {
75
+ console.log(data,"data789")
76
+ emit('on-vote', { code: data.visible, message: 'vote' });
77
+ };
74
78
  function handleShowOverlay(data: { name: string; visible: boolean }) {
75
79
  emit('show-overlay', data);
76
80
  }
@@ -8,7 +8,7 @@
8
8
  :size="400"
9
9
  >
10
10
  <chat v-if="sidebarName == 'chat'" />
11
- <room-vote v-if="sidebarName == 'vote'" >
11
+ <room-vote v-if="sidebarName == 'vote'" @on-vote="onVote">
12
12
  <template #content>
13
13
  <slot name="content"></slot>
14
14
  </template>
@@ -28,7 +28,16 @@ import RoomMore from '../RoomMore';
28
28
  import RoomVote from '../RoomVote';
29
29
  import Chat from '../Chat/index';
30
30
  import AITranscription from '../common/widgets/AITools/AITranscription.vue';
31
+ import {
32
+ defineEmits,
33
+ } from 'vue';
31
34
  const { isSidebarOpen, title, handleClose, sidebarName } = useSideBar();
35
+ const emit = defineEmits([
36
+ 'on-vote',
37
+ ]);
38
+ const onVote = (data: { name: string; visible: boolean }) => {
39
+ emit('on-vote', { code: data.visible, message: 'vote' });
40
+ };
32
41
  </script>
33
42
 
34
43
  <style lang="scss"></style>