@ndscnj/roomkit-web-vue3 25.12.2317 → 25.12.23181

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 "./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-e3b01383"]]);
4
+ const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-412ed740"]]);
5
5
  export {
6
6
  voteControl as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, resolveComponent, createElementBlock, openBlock, createVNode, createTextVNode, createCommentVNode, unref, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, computed, ref, watch, resolveComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createTextVNode, createElementVNode, withCtx, toDisplayString, renderSlot } from "vue";
2
2
  import "../../services/main.mjs";
3
3
  import { roomService } from "../../services/roomService.mjs";
4
4
  import { useI18n } from "../../locales/index.mjs";
@@ -7,7 +7,10 @@ import "../../utils/environment.mjs";
7
7
  import "mitt";
8
8
  import "../../services/manager/roomActionManager.mjs";
9
9
  import "@tencentcloud/tui-core";
10
- const _hoisted_1 = { class: "more-container" };
10
+ const _hoisted_1 = {
11
+ key: 0,
12
+ class: "more-container"
13
+ };
11
14
  const _hoisted_2 = {
12
15
  key: 0,
13
16
  class: "tool-box"
@@ -24,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
27
  watch(isSidebarOpen, (newValue) => {
25
28
  showToolBox.value = newValue && false;
26
29
  });
30
+ const voteControlConfig = roomService.getComponentConfig("VoteControl");
27
31
  const emit = __emit;
28
32
  function toggleToolBox() {
29
33
  showToolBox.value = !showToolBox.value;
@@ -35,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
39
  return (_ctx, _cache) => {
36
40
  const _component_IconAIIcon = resolveComponent("IconAIIcon");
37
41
  const _component_icon_button = resolveComponent("icon-button");
38
- return openBlock(), createElementBlock("div", _hoisted_1, [
42
+ return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
39
43
  createVNode(_component_icon_button, {
40
44
  "is-active": sidebarName.value === "vote",
41
45
  title: unref(t)("Vote"),
@@ -46,12 +50,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
50
  ]),
47
51
  _: 1
48
52
  }, 8, ["is-active", "title"]),
49
- _cache[1] || (_cache[1] = createTextVNode(" 测试 ", -1)),
53
+ createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
54
+ createElementVNode("div", { onClick: toggleToolBox }, "测试"),
50
55
  !isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
51
56
  _cache[0] || (_cache[0] = createTextVNode(" 123 ", -1)),
52
57
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
53
58
  ])) : createCommentVNode("", true)
54
- ]);
59
+ ])) : createCommentVNode("", true);
55
60
  };
56
61
  }
57
62
  });
package/es/index.mjs CHANGED
@@ -3928,17 +3928,17 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.more-container[data-v-e3b01383] {
3931
+ }.more-container[data-v-412ed740] {
3932
3932
  padding: 20px;
3933
3933
  }
3934
- .more-container .more-title[data-v-e3b01383] {
3934
+ .more-container .more-title[data-v-412ed740] {
3935
3935
  display: flex;
3936
3936
  align-items: center;
3937
3937
  }
3938
- .more-container .more-title .email-icon[data-v-e3b01383] {
3938
+ .more-container .more-title .email-icon[data-v-412ed740] {
3939
3939
  color: var(--uikit-color-gray-7);
3940
3940
  }
3941
- .more-container .more-title .more-notice[data-v-e3b01383] {
3941
+ .more-container .more-title .more-notice[data-v-412ed740] {
3942
3942
  width: 100%;
3943
3943
  height: 22px;
3944
3944
  padding-left: 8px;
@@ -4,7 +4,7 @@ interface IComponentManager {
4
4
  getComponentConfig(name: ComponentName): ComponentConfigItem;
5
5
  setComponentConfig(options: Partial<ComponentConfig>): boolean;
6
6
  }
7
- declare const componentNames: readonly ["SwitchTheme", "LayoutControl", "RoomInfo", "RoomLink", "Language", "UserInfo", "ScreenShare", "FullScreen", "ManageMemberControl", "InviteControl", "ChatControl", "MoreControl", "VirtualBackground", "BasicBeauty", "AIControl"];
7
+ declare const componentNames: readonly ["SwitchTheme", "LayoutControl", "RoomInfo", "RoomLink", "Language", "UserInfo", "ScreenShare", "FullScreen", "ManageMemberControl", "InviteControl", "ChatControl", "VoteControl", "MoreControl", "VirtualBackground", "BasicBeauty", "AIControl"];
8
8
  export type ComponentName = (typeof componentNames)[number];
9
9
  type ComponentConfigItem = {
10
10
  visible: boolean;
@@ -14,6 +14,7 @@ const componentNames = [
14
14
  "ManageMemberControl",
15
15
  "InviteControl",
16
16
  "ChatControl",
17
+ "VoteControl",
17
18
  "MoreControl",
18
19
  "VirtualBackground",
19
20
  "BasicBeauty",
@@ -32,6 +33,7 @@ const defaultConfig = {
32
33
  ManageMemberControl: { visible: true },
33
34
  InviteControl: { visible: true },
34
35
  ChatControl: { visible: true },
36
+ VoteControl: { visible: true },
35
37
  MoreControl: { visible: true },
36
38
  VirtualBackground: { visible: false },
37
39
  AIControl: { visible: false },
@@ -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-e3b01383"]]);
6
+ const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-412ed740"]]);
7
7
  exports.default = voteControl;
@@ -9,7 +9,10 @@ require("../../utils/environment.js");
9
9
  require("mitt");
10
10
  require("../../services/manager/roomActionManager.js");
11
11
  require("@tencentcloud/tui-core");
12
- const _hoisted_1 = { class: "more-container" };
12
+ const _hoisted_1 = {
13
+ key: 0,
14
+ class: "more-container"
15
+ };
13
16
  const _hoisted_2 = {
14
17
  key: 0,
15
18
  class: "tool-box"
@@ -26,6 +29,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
26
29
  Vue.watch(isSidebarOpen, (newValue) => {
27
30
  showToolBox.value = newValue && false;
28
31
  });
32
+ const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
29
33
  const emit = __emit;
30
34
  function toggleToolBox() {
31
35
  showToolBox.value = !showToolBox.value;
@@ -37,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
37
41
  return (_ctx, _cache) => {
38
42
  const _component_IconAIIcon = Vue.resolveComponent("IconAIIcon");
39
43
  const _component_icon_button = Vue.resolveComponent("icon-button");
40
- return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
44
+ return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
41
45
  Vue.createVNode(_component_icon_button, {
42
46
  "is-active": sidebarName.value === "vote",
43
47
  title: Vue.unref(t)("Vote"),
@@ -48,12 +52,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
48
52
  ]),
49
53
  _: 1
50
54
  }, 8, ["is-active", "title"]),
51
- _cache[1] || (_cache[1] = Vue.createTextVNode(" 测试 ", -1)),
55
+ Vue.createTextVNode(" " + Vue.toDisplayString(sidebarName.value) + " ", 1),
56
+ Vue.createElementVNode("div", { onClick: toggleToolBox }, "测试"),
52
57
  !isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
53
58
  _cache[0] || (_cache[0] = Vue.createTextVNode(" 123 ", -1)),
54
59
  Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
55
60
  ])) : Vue.createCommentVNode("", true)
56
- ]);
61
+ ])) : Vue.createCommentVNode("", true);
57
62
  };
58
63
  }
59
64
  });
package/lib/index.js CHANGED
@@ -3928,17 +3928,17 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.more-container[data-v-e3b01383] {
3931
+ }.more-container[data-v-412ed740] {
3932
3932
  padding: 20px;
3933
3933
  }
3934
- .more-container .more-title[data-v-e3b01383] {
3934
+ .more-container .more-title[data-v-412ed740] {
3935
3935
  display: flex;
3936
3936
  align-items: center;
3937
3937
  }
3938
- .more-container .more-title .email-icon[data-v-e3b01383] {
3938
+ .more-container .more-title .email-icon[data-v-412ed740] {
3939
3939
  color: var(--uikit-color-gray-7);
3940
3940
  }
3941
- .more-container .more-title .more-notice[data-v-e3b01383] {
3941
+ .more-container .more-title .more-notice[data-v-412ed740] {
3942
3942
  width: 100%;
3943
3943
  height: 22px;
3944
3944
  padding-left: 8px;
@@ -4,7 +4,7 @@ interface IComponentManager {
4
4
  getComponentConfig(name: ComponentName): ComponentConfigItem;
5
5
  setComponentConfig(options: Partial<ComponentConfig>): boolean;
6
6
  }
7
- declare const componentNames: readonly ["SwitchTheme", "LayoutControl", "RoomInfo", "RoomLink", "Language", "UserInfo", "ScreenShare", "FullScreen", "ManageMemberControl", "InviteControl", "ChatControl", "MoreControl", "VirtualBackground", "BasicBeauty", "AIControl"];
7
+ declare const componentNames: readonly ["SwitchTheme", "LayoutControl", "RoomInfo", "RoomLink", "Language", "UserInfo", "ScreenShare", "FullScreen", "ManageMemberControl", "InviteControl", "ChatControl", "VoteControl", "MoreControl", "VirtualBackground", "BasicBeauty", "AIControl"];
8
8
  export type ComponentName = (typeof componentNames)[number];
9
9
  type ComponentConfigItem = {
10
10
  visible: boolean;
@@ -16,6 +16,7 @@ const componentNames = [
16
16
  "ManageMemberControl",
17
17
  "InviteControl",
18
18
  "ChatControl",
19
+ "VoteControl",
19
20
  "MoreControl",
20
21
  "VirtualBackground",
21
22
  "BasicBeauty",
@@ -34,6 +35,7 @@ const defaultConfig = {
34
35
  ManageMemberControl: { visible: true },
35
36
  InviteControl: { visible: true },
36
37
  ChatControl: { visible: true },
38
+ VoteControl: { visible: true },
37
39
  MoreControl: { visible: true },
38
40
  VirtualBackground: { visible: false },
39
41
  AIControl: { visible: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndscnj/roomkit-web-vue3",
3
- "version": "25.12.2317",
3
+ "version": "25.12.23181",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="more-container">
2
+ <div class="more-container" v-if="voteControlConfig.visible">
3
3
  <icon-button
4
4
  :is-active="sidebarName === 'vote'"
5
5
  :title="t('Vote')"
@@ -7,7 +7,8 @@
7
7
  >
8
8
  <IconAIIcon size="24" />
9
9
  </icon-button>
10
- 测试
10
+ {{ sidebarName }}
11
+ <div @click="toggleToolBox">测试</div>
11
12
  <div class="tool-box" v-if="!isSidebarOpen && showToolBox">
12
13
  123
13
14
  <slot name="content"></slot>
@@ -27,6 +28,7 @@ const showToolBox = ref(false);
27
28
  watch(isSidebarOpen, newValue => {
28
29
  showToolBox.value = newValue && false;
29
30
  });
31
+ const voteControlConfig = roomService.getComponentConfig('VoteControl');
30
32
  const emit = defineEmits(['on-vote']);
31
33
  function toggleToolBox() {
32
34
  showToolBox.value = !showToolBox.value;
@@ -18,6 +18,7 @@ const componentNames = [
18
18
  'ManageMemberControl',
19
19
  'InviteControl',
20
20
  'ChatControl',
21
+ 'VoteControl',
21
22
  'MoreControl',
22
23
  'VirtualBackground',
23
24
  'BasicBeauty',
@@ -49,6 +50,7 @@ const defaultConfig = {
49
50
  ManageMemberControl: { visible: true },
50
51
  InviteControl: { visible: true },
51
52
  ChatControl: { visible: true },
53
+ VoteControl: { visible: true },
52
54
  MoreControl: { visible: true },
53
55
  VirtualBackground: { visible: false },
54
56
  AIControl: { visible: false },