@ndscnj/roomkit-web-vue3 25.12.2413 → 25.12.2415

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,7 +1,7 @@
1
1
  import _sfc_main from "./indexPC.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-604d8288"]]);
4
+ const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f808bd91"]]);
5
5
  export {
6
6
  indexPc as default
7
7
  };
@@ -81,6 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
81
  }
82
82
  const emit = __emit;
83
83
  const onVote = (data) => {
84
+ console.log(data, "data111");
84
85
  emit("on-vote", { code: data.visible, message: "vote" });
85
86
  };
86
87
  return (_ctx, _cache) => {
@@ -1,15 +1,6 @@
1
- declare function __VLS_template(): {
2
- content?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
2
  "on-vote": (...args: any[]) => void;
6
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
4
  "onOn-vote"?: ((...args: any[]) => any) | undefined;
8
5
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
6
  export default _default;
11
- type __VLS_WithTemplateSlots<T, S> = T & {
12
- new (): {
13
- $slots: S;
14
- };
15
- };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./voteControl.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6e8da89"]]);
4
+ const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-18efb8e7"]]);
5
5
  export {
6
6
  voteControl as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx } from "vue";
2
2
  import "../../services/main.mjs";
3
3
  import { roomService } from "../../services/roomService.mjs";
4
4
  import { useI18n } from "../../locales/index.mjs";
@@ -10,23 +10,14 @@ import "@tencentcloud/tui-core";
10
10
  import IconButton from "../common/base/IconButton.vue.mjs";
11
11
  import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
12
12
  const _hoisted_1 = { class: "vote-control-container" };
13
- const _hoisted_2 = {
14
- key: 0,
15
- class: "contact-container"
16
- };
17
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
18
14
  __name: "voteControl",
19
15
  emits: ["on-vote"],
20
16
  setup(__props, { emit: __emit }) {
21
17
  const { basicStore } = roomService;
22
- const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
23
18
  const sidebarName = computed(() => basicStore.sidebarName);
24
19
  const { t } = useI18n();
25
20
  const showToolBox = ref(false);
26
- watch(isSidebarOpen, (newValue) => {
27
- showToolBox.value = newValue && false;
28
- });
29
- roomService.getComponentConfig("VoteControl");
30
21
  const emit = __emit;
31
22
  function toggleToolBox() {
32
23
  console.log(showToolBox.value, "0000");
@@ -47,10 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
38
  createVNode(unref(IconAIIcon), { size: "24" })
48
39
  ]),
49
40
  _: 1
50
- }, 8, ["is-active", "title"]),
51
- !isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
52
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
53
- ])) : createCommentVNode("", true)
41
+ }, 8, ["is-active", "title"])
54
42
  ]);
55
43
  };
56
44
  }
@@ -2,7 +2,7 @@ import _sfc_main from "./conference.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import _export_sfc from "./_virtual/_plugin-vue_export-helper.mjs";
5
- const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d9ae22c4"]]);
5
+ const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3b59b436"]]);
6
6
  export {
7
7
  ConferenceMainView as default
8
8
  };
@@ -217,6 +217,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
217
  roomService.resetStore();
218
218
  }
219
219
  const onVote = (data) => {
220
+ console.log(data, "data222");
220
221
  emit("on-vote", { code: data.visible, message: "vote" });
221
222
  };
222
223
  const onStartRoom = () => {
package/es/index.mjs CHANGED
@@ -3928,7 +3928,7 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.contact-container[data-v-f6e8da89] {
3931
+ }.contact-container[data-v-18efb8e7] {
3932
3932
  position: fixed;
3933
3933
  top: 0;
3934
3934
  bottom: 0;
@@ -3938,7 +3938,7 @@ to {
3938
3938
  width: 100vw;
3939
3939
  height: auto;
3940
3940
  background-color: var(--uikit-color-black-8);
3941
- }.footer-container[data-v-604d8288] {
3941
+ }.footer-container[data-v-f808bd91] {
3942
3942
  position: absolute;
3943
3943
  bottom: 0;
3944
3944
  display: flex;
@@ -3952,25 +3952,25 @@ to {
3952
3952
  background-color: var(--bg-color-topbar);
3953
3953
  box-shadow: 0 -8px 30px var(--uikit-color-black-8);
3954
3954
  }
3955
- .footer-container .left-container[data-v-604d8288] {
3955
+ .footer-container .left-container[data-v-f808bd91] {
3956
3956
  display: flex;
3957
3957
  align-items: center;
3958
3958
  height: 100%;
3959
3959
  }
3960
- .footer-container .left-container .left-container-item[data-v-604d8288]:not(:first-child) {
3960
+ .footer-container .left-container .left-container-item[data-v-f808bd91]:not(:first-child) {
3961
3961
  margin-left: 1rem;
3962
3962
  }
3963
- .footer-container .center-container[data-v-604d8288] {
3963
+ .footer-container .center-container[data-v-f808bd91] {
3964
3964
  position: relative;
3965
3965
  display: flex;
3966
3966
  align-items: center;
3967
3967
  height: 100%;
3968
3968
  margin: 0 auto;
3969
3969
  }
3970
- .footer-container .center-container .center-container-item[data-v-604d8288]:not(:first-child) {
3970
+ .footer-container .center-container .center-container-item[data-v-f808bd91]:not(:first-child) {
3971
3971
  margin-left: 16px;
3972
3972
  }
3973
- .footer-container .right-container[data-v-604d8288] {
3973
+ .footer-container .right-container[data-v-f808bd91] {
3974
3974
  display: flex;
3975
3975
  align-items: center;
3976
3976
  height: 100%;
@@ -9140,7 +9140,7 @@ body, html {
9140
9140
  }
9141
9141
  .tui-room :not([class|=el]) {
9142
9142
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
9143
- }.tui-room[data-v-d9ae22c4] {
9143
+ }.tui-room[data-v-3b59b436] {
9144
9144
  position: relative;
9145
9145
  display: flex;
9146
9146
  flex-direction: column;
@@ -9152,7 +9152,7 @@ body, html {
9152
9152
  text-align: left;
9153
9153
  background-color: var(--bg-color-topbar);
9154
9154
  }
9155
- .tui-room .header[data-v-d9ae22c4] {
9155
+ .tui-room .header[data-v-3b59b436] {
9156
9156
  position: absolute;
9157
9157
  top: 0;
9158
9158
  left: 0;
@@ -9163,20 +9163,20 @@ body, html {
9163
9163
  border-bottom: 1px solid var(--stroke-color-primary);
9164
9164
  box-shadow: 0 1px 0 var(--uikit-color-black-8);
9165
9165
  }
9166
- .tui-room .content[data-v-d9ae22c4] {
9166
+ .tui-room .content[data-v-3b59b436] {
9167
9167
  position: absolute;
9168
9168
  top: 0;
9169
9169
  width: 100%;
9170
9170
  height: 100%;
9171
9171
  background-color: var(--bg-color-topbar);
9172
9172
  }
9173
- .tui-room.tui-room-h5[data-v-d9ae22c4] {
9173
+ .tui-room.tui-room-h5[data-v-3b59b436] {
9174
9174
  width: 100%;
9175
9175
  min-width: 350px;
9176
9176
  height: 100%;
9177
9177
  min-height: 525px;
9178
9178
  }
9179
- #roomContainer.chat-room[data-v-d9ae22c4] {
9179
+ #roomContainer.chat-room[data-v-3b59b436] {
9180
9180
  position: absolute;
9181
9181
  top: 0;
9182
9182
  right: 0;
@@ -9188,8 +9188,8 @@ body, html {
9188
9188
  margin: auto;
9189
9189
  border-radius: 10px;
9190
9190
  }
9191
- #roomContainer.tui-room-h5[data-v-d9ae22c4],
9192
- #roomContainer .chat-room[data-v-d9ae22c4] {
9191
+ #roomContainer.tui-room-h5[data-v-3b59b436],
9192
+ #roomContainer .chat-room[data-v-3b59b436] {
9193
9193
  width: 100%;
9194
9194
  height: 100%;
9195
9195
  }.user-info-container[data-v-9e9aff53] {
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const indexPC_vue_vue_type_script_setup_true_lang = require("./indexPC.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-604d8288"]]);
6
+ const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f808bd91"]]);
7
7
  exports.default = indexPc;
@@ -83,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
83
83
  }
84
84
  const emit = __emit;
85
85
  const onVote = (data) => {
86
+ console.log(data, "data111");
86
87
  emit("on-vote", { code: data.visible, message: "vote" });
87
88
  };
88
89
  return (_ctx, _cache) => {
@@ -1,15 +1,6 @@
1
- declare function __VLS_template(): {
2
- content?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
2
  "on-vote": (...args: any[]) => void;
6
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
4
  "onOn-vote"?: ((...args: any[]) => any) | undefined;
8
5
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
6
  export default _default;
11
- type __VLS_WithTemplateSlots<T, S> = T & {
12
- new (): {
13
- $slots: S;
14
- };
15
- };
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const voteControl_vue_vue_type_script_setup_true_lang = require("./voteControl.vue2.js");
4
4
  ;/* empty css */
5
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-f6e8da89"]]);
6
+ const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-18efb8e7"]]);
7
7
  exports.default = voteControl;
@@ -12,23 +12,14 @@ require("@tencentcloud/tui-core");
12
12
  const IconButton = require("../common/base/IconButton.vue.js");
13
13
  const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
14
14
  const _hoisted_1 = { class: "vote-control-container" };
15
- const _hoisted_2 = {
16
- key: 0,
17
- class: "contact-container"
18
- };
19
15
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
20
16
  __name: "voteControl",
21
17
  emits: ["on-vote"],
22
18
  setup(__props, { emit: __emit }) {
23
19
  const { basicStore } = roomService.roomService;
24
- const isSidebarOpen = Vue.computed(() => basicStore.isSidebarOpen);
25
20
  const sidebarName = Vue.computed(() => basicStore.sidebarName);
26
21
  const { t } = index.useI18n();
27
22
  const showToolBox = Vue.ref(false);
28
- Vue.watch(isSidebarOpen, (newValue) => {
29
- showToolBox.value = newValue && false;
30
- });
31
- roomService.roomService.getComponentConfig("VoteControl");
32
23
  const emit = __emit;
33
24
  function toggleToolBox() {
34
25
  console.log(showToolBox.value, "0000");
@@ -49,10 +40,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
49
40
  Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconAIIcon), { size: "24" })
50
41
  ]),
51
42
  _: 1
52
- }, 8, ["is-active", "title"]),
53
- !isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
54
- Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
55
- ])) : Vue.createCommentVNode("", true)
43
+ }, 8, ["is-active", "title"])
56
44
  ]);
57
45
  };
58
46
  }
@@ -4,5 +4,5 @@ const conference_vue_vue_type_script_setup_true_lang = require("./conference.vue
4
4
  ;/* empty css */
5
5
  ;/* empty css */
6
6
  const _pluginVue_exportHelper = require("./_virtual/_plugin-vue_export-helper.js");
7
- const ConferenceMainView = /* @__PURE__ */ _pluginVue_exportHelper.default(conference_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-d9ae22c4"]]);
7
+ const ConferenceMainView = /* @__PURE__ */ _pluginVue_exportHelper.default(conference_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-3b59b436"]]);
8
8
  exports.default = ConferenceMainView;
@@ -219,6 +219,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
219
219
  roomService.roomService.resetStore();
220
220
  }
221
221
  const onVote = (data) => {
222
+ console.log(data, "data222");
222
223
  emit("on-vote", { code: data.visible, message: "vote" });
223
224
  };
224
225
  const onStartRoom = () => {
package/lib/index.js CHANGED
@@ -3928,7 +3928,7 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.contact-container[data-v-f6e8da89] {
3931
+ }.contact-container[data-v-18efb8e7] {
3932
3932
  position: fixed;
3933
3933
  top: 0;
3934
3934
  bottom: 0;
@@ -3938,7 +3938,7 @@ to {
3938
3938
  width: 100vw;
3939
3939
  height: auto;
3940
3940
  background-color: var(--uikit-color-black-8);
3941
- }.footer-container[data-v-604d8288] {
3941
+ }.footer-container[data-v-f808bd91] {
3942
3942
  position: absolute;
3943
3943
  bottom: 0;
3944
3944
  display: flex;
@@ -3952,25 +3952,25 @@ to {
3952
3952
  background-color: var(--bg-color-topbar);
3953
3953
  box-shadow: 0 -8px 30px var(--uikit-color-black-8);
3954
3954
  }
3955
- .footer-container .left-container[data-v-604d8288] {
3955
+ .footer-container .left-container[data-v-f808bd91] {
3956
3956
  display: flex;
3957
3957
  align-items: center;
3958
3958
  height: 100%;
3959
3959
  }
3960
- .footer-container .left-container .left-container-item[data-v-604d8288]:not(:first-child) {
3960
+ .footer-container .left-container .left-container-item[data-v-f808bd91]:not(:first-child) {
3961
3961
  margin-left: 1rem;
3962
3962
  }
3963
- .footer-container .center-container[data-v-604d8288] {
3963
+ .footer-container .center-container[data-v-f808bd91] {
3964
3964
  position: relative;
3965
3965
  display: flex;
3966
3966
  align-items: center;
3967
3967
  height: 100%;
3968
3968
  margin: 0 auto;
3969
3969
  }
3970
- .footer-container .center-container .center-container-item[data-v-604d8288]:not(:first-child) {
3970
+ .footer-container .center-container .center-container-item[data-v-f808bd91]:not(:first-child) {
3971
3971
  margin-left: 16px;
3972
3972
  }
3973
- .footer-container .right-container[data-v-604d8288] {
3973
+ .footer-container .right-container[data-v-f808bd91] {
3974
3974
  display: flex;
3975
3975
  align-items: center;
3976
3976
  height: 100%;
@@ -9140,7 +9140,7 @@ body, html {
9140
9140
  }
9141
9141
  .tui-room :not([class|=el]) {
9142
9142
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
9143
- }.tui-room[data-v-d9ae22c4] {
9143
+ }.tui-room[data-v-3b59b436] {
9144
9144
  position: relative;
9145
9145
  display: flex;
9146
9146
  flex-direction: column;
@@ -9152,7 +9152,7 @@ body, html {
9152
9152
  text-align: left;
9153
9153
  background-color: var(--bg-color-topbar);
9154
9154
  }
9155
- .tui-room .header[data-v-d9ae22c4] {
9155
+ .tui-room .header[data-v-3b59b436] {
9156
9156
  position: absolute;
9157
9157
  top: 0;
9158
9158
  left: 0;
@@ -9163,20 +9163,20 @@ body, html {
9163
9163
  border-bottom: 1px solid var(--stroke-color-primary);
9164
9164
  box-shadow: 0 1px 0 var(--uikit-color-black-8);
9165
9165
  }
9166
- .tui-room .content[data-v-d9ae22c4] {
9166
+ .tui-room .content[data-v-3b59b436] {
9167
9167
  position: absolute;
9168
9168
  top: 0;
9169
9169
  width: 100%;
9170
9170
  height: 100%;
9171
9171
  background-color: var(--bg-color-topbar);
9172
9172
  }
9173
- .tui-room.tui-room-h5[data-v-d9ae22c4] {
9173
+ .tui-room.tui-room-h5[data-v-3b59b436] {
9174
9174
  width: 100%;
9175
9175
  min-width: 350px;
9176
9176
  height: 100%;
9177
9177
  min-height: 525px;
9178
9178
  }
9179
- #roomContainer.chat-room[data-v-d9ae22c4] {
9179
+ #roomContainer.chat-room[data-v-3b59b436] {
9180
9180
  position: absolute;
9181
9181
  top: 0;
9182
9182
  right: 0;
@@ -9188,8 +9188,8 @@ body, html {
9188
9188
  margin: auto;
9189
9189
  border-radius: 10px;
9190
9190
  }
9191
- #roomContainer.tui-room-h5[data-v-d9ae22c4],
9192
- #roomContainer .chat-room[data-v-d9ae22c4] {
9191
+ #roomContainer.tui-room-h5[data-v-3b59b436],
9192
+ #roomContainer .chat-room[data-v-3b59b436] {
9193
9193
  width: 100%;
9194
9194
  height: 100%;
9195
9195
  }.user-info-container[data-v-9e9aff53] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndscnj/roomkit-web-vue3",
3
- "version": "25.12.2413",
3
+ "version": "25.12.2415",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -112,6 +112,7 @@ function handleControlClick(name: string) {
112
112
  }
113
113
  const emit = defineEmits(['on-vote']);
114
114
  const onVote = (data: { name: string; visible: boolean }) => {
115
+ console.log(data,"data111")
115
116
  emit('on-vote', { code: data.visible, message: 'vote' });
116
117
  };
117
118
  </script>
@@ -7,14 +7,6 @@
7
7
  >
8
8
  <IconAIIcon size="24" />
9
9
  </icon-button>
10
- <div class="contact-container" v-if="!isSidebarOpen && showToolBox">
11
- <slot name="content"></slot>
12
- <!-- <room-vote ref="contactRef" @on-close-contact="handleOnCloseContact">
13
- <template #content>
14
- <slot name="content"></slot>
15
- </template>
16
- </room-vote> -->
17
- </div>
18
10
  </div>
19
11
  </template>
20
12
 
@@ -28,14 +20,9 @@ import {
28
20
  } from '@tencentcloud/uikit-base-component-vue3';
29
21
  import roomVote from '../RoomVote';
30
22
  const { basicStore } = roomService;
31
- const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
32
23
  const sidebarName = computed(() => basicStore.sidebarName);
33
24
  const { t } = useI18n();
34
25
  const showToolBox = ref(false);
35
- watch(isSidebarOpen, newValue => {
36
- showToolBox.value = newValue && false;
37
- });
38
- const voteControlConfig = roomService.getComponentConfig('VoteControl');
39
26
  const emit = defineEmits(['on-vote']);
40
27
  function toggleToolBox() {
41
28
  console.log(showToolBox.value,"0000")
@@ -45,9 +32,6 @@ function toggleToolBox() {
45
32
  visible: showToolBox.value,
46
33
  });
47
34
  }
48
- function handleOnCloseContact() {
49
- showToolBox.value = false;
50
- }
51
35
  </script>
52
36
 
53
37
  <style lang="scss" scoped>
@@ -322,6 +322,7 @@ function resetStore() {
322
322
  }
323
323
 
324
324
  const onVote = (data: { name: string; visible: boolean }) => {
325
+ console.log(data,"data222")
325
326
  emit('on-vote', { code: data.visible, message: 'vote' });
326
327
  };
327
328
  const onStartRoom = () => {
@@ -1,6 +0,0 @@
1
- declare const VoteControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
- "show-overlay": (...args: any[]) => void;
3
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
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>;
6
- export default VoteControl;
@@ -1,6 +0,0 @@
1
- declare const VoteControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
- "show-overlay": (...args: any[]) => void;
3
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
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>;
6
- export default VoteControl;
@@ -1,122 +0,0 @@
1
- <template>
2
- <div>
3
- <div v-if="moreControlConfig.visible" class="more-control-container">
4
- <icon-button
5
- v-tap="showMore"
6
- :is-active="sidebarName === 'more'"
7
- :title="t('More')"
8
- >
9
- <IconExtension size="24" />
10
- </icon-button>
11
- </div>
12
- <div v-if="showMoreContent" ref="moreContentRef" class="show-more-content">
13
- <div class="control-compent">
14
- <chat-control
15
- v-if="roomStore.isSpeakAfterTakingSeatMode"
16
- @click="handleControlClick('chatControl')"
17
- />
18
- <contact-control @click="handleControlClick('contactControl')" />
19
- <invite-control
20
- @show-overlay="handleShowOverlay"
21
- @click="handleControlClick('inviteControl')"
22
- />
23
- </div>
24
- <div v-tap="handleCancelControl" class="close">{{ t('Cancel') }}</div>
25
- </div>
26
- </div>
27
- </template>
28
- <script setup lang="ts">
29
- import { ref, onMounted, onUnmounted, defineEmits } from 'vue';
30
- import { IconExtension } from '@tencentcloud/uikit-base-component-vue3';
31
- import IconButton from '../../common/base/IconButton.vue';
32
- import userVoteControl from './useVoteControlHooks';
33
- import ChatControl from '../ChatControl.vue';
34
- import InviteControl from '../InviteControl.vue';
35
- import ContactControl from '../ContactControl.vue';
36
- import { useRoomStore } from '../../../stores/room';
37
- import bus from '../../../hooks/useMitt';
38
- import vTap from '../../../directives/vTap';
39
- import { roomService } from '../../../services';
40
-
41
- const moreControlConfig = roomService.getComponentConfig('MoreControl');
42
- const showMoreContent = ref(false);
43
- const moreContentRef = ref();
44
-
45
- const { t, sidebarName } = userVoteControl();
46
- const roomStore = useRoomStore();
47
- const emit = defineEmits(['show-overlay']);
48
- function showMore() {
49
- showMoreContent.value = true;
50
- }
51
-
52
- function handleCancelControl() {
53
- showMoreContent.value = false;
54
- }
55
- function handleControlClick(name: string) {
56
- bus.emit('experience-communication', name);
57
- }
58
-
59
- function handleShowOverlay(data: { name: string; visible: boolean }) {
60
- showMoreContent.value = false;
61
- emit('show-overlay', data);
62
- }
63
-
64
- function handleDocumentClick(event: MouseEvent) {
65
- if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
66
- showMoreContent.value = false;
67
- }
68
- }
69
-
70
- onMounted(() => {
71
- document?.addEventListener('click', handleDocumentClick, true);
72
- });
73
-
74
- onUnmounted(() => {
75
- document?.removeEventListener('click', handleDocumentClick, true);
76
- });
77
- </script>
78
- <style lang="scss" scoped>
79
- .show-more-content {
80
- position: absolute;
81
- bottom: 15px;
82
- left: 5%;
83
- width: 90%;
84
- height: 17vh;
85
- padding: 10px;
86
- border-radius: 13px;
87
- animation-name: popup;
88
- animation-duration: 200ms;
89
- background-color: var(--bg-color-operate);
90
- }
91
-
92
- @keyframes popup {
93
- from {
94
- bottom: 0;
95
- }
96
-
97
- to {
98
- bottom: 15px;
99
- }
100
- }
101
-
102
- .control-compent {
103
- display: flex;
104
- }
105
-
106
- .close {
107
- position: relative;
108
- top: 10%;
109
- display: flex;
110
- align-items: center;
111
- justify-content: center;
112
- width: 100%;
113
- padding: 10px;
114
- font-style: normal;
115
- font-weight: 400;
116
- line-height: 24px;
117
- text-align: center;
118
- border-radius: 8px;
119
- color: var(--text-color-primary);
120
- background-color: var(--button-color-secondary-default);
121
- }
122
- </style>
@@ -1,31 +0,0 @@
1
- <template>
2
- <div v-if="moreControlConfig.visible" class="vote-control-container">
3
- <icon-button
4
- :is-active="sidebarName === 'vote'"
5
- :title="t('Vote')"
6
- @click-icon="toggleMoreSidebar"
7
- >
8
- <IconMore size="24" />
9
- </icon-button>
10
- </div>
11
- </template>
12
- <script setup lang="ts">
13
- import { IconMore } from '@tencentcloud/uikit-base-component-vue3';
14
- import IconButton from '../../common/base/IconButton.vue';
15
- import userMoreControl from './useMoreControlHooks';
16
- import { roomService } from '../../../services';
17
-
18
- const moreControlConfig = roomService.getComponentConfig('VoteControl');
19
- const { t, basicStore, sidebarName } = userMoreControl();
20
-
21
- function toggleMoreSidebar() {
22
- if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === 'vote') {
23
- basicStore.setSidebarOpenStatus(false);
24
- basicStore.setSidebarName('');
25
- return;
26
- }
27
- basicStore.setSidebarOpenStatus(true);
28
- basicStore.setSidebarName('vote');
29
- }
30
- </script>
31
- <style lang="scss" scoped></style>
@@ -1,8 +0,0 @@
1
- import VoteControlH5 from './VoteControlH5.vue';
2
- import VoteControlPc from './VoteControlPC.vue';
3
-
4
- import { isMobile } from '../../../utils/environment';
5
-
6
- const VoteControl = isMobile ? VoteControlH5 : VoteControlPc;
7
-
8
- export default VoteControl;
@@ -1,23 +0,0 @@
1
- import { computed } from 'vue';
2
- import { useBasicStore } from '../../../stores/basic';
3
- import { storeToRefs } from 'pinia';
4
- import { useI18n } from '../../../locales';
5
- import { ICON_NAME } from '../../../constants/icon';
6
-
7
- export default function useControl() {
8
- const { t } = useI18n();
9
-
10
- const basicStore = useBasicStore();
11
- const { sidebarName } = storeToRefs(basicStore);
12
-
13
- const iconName = computed(() =>
14
- sidebarName.value === 'vote' ? ICON_NAME.MoreActive : ICON_NAME.More
15
- );
16
-
17
- return {
18
- t,
19
- basicStore,
20
- iconName,
21
- sidebarName,
22
- };
23
- }