@ndscnj/roomkit-web-vue3 25.12.2421 → 25.12.2422

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.
@@ -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;
@@ -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;
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.2422",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -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>