@ndscnj/roomkit-web-vue3 25.12.23181 → 25.12.23182
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.vue.mjs +1 -1
- package/es/components/RoomFooter/voteControl.vue2.mjs +6 -6
- package/es/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
- package/es/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
- package/es/index.mjs +24 -13
- package/es/locales/zh-CN.mjs +1 -1
- package/es/stores/basic.d.ts +1 -1
- package/lib/components/RoomFooter/voteControl.vue.js +1 -1
- package/lib/components/RoomFooter/voteControl.vue2.js +5 -5
- package/lib/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
- package/lib/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
- package/lib/index.js +24 -13
- package/lib/locales/zh-CN.js +1 -1
- package/lib/stores/basic.d.ts +1 -1
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/voteControl.vue +33 -17
- package/src/TUIRoom/locales/zh-CN.ts +1 -1
- package/src/TUIRoom/stores/basic.ts +1 -1
|
@@ -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-
|
|
4
|
+
const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-45795e90"]]);
|
|
5
5
|
export {
|
|
6
6
|
voteControl as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch,
|
|
1
|
+
import { defineComponent, computed, ref, watch, 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,6 +7,8 @@ import "../../utils/environment.mjs";
|
|
|
7
7
|
import "mitt";
|
|
8
8
|
import "../../services/manager/roomActionManager.mjs";
|
|
9
9
|
import "@tencentcloud/tui-core";
|
|
10
|
+
import IconButton from "../common/base/IconButton.vue.mjs";
|
|
11
|
+
import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
|
|
10
12
|
const _hoisted_1 = {
|
|
11
13
|
key: 0,
|
|
12
14
|
class: "more-container"
|
|
@@ -37,21 +39,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
return (_ctx, _cache) => {
|
|
40
|
-
const _component_IconAIIcon = resolveComponent("IconAIIcon");
|
|
41
|
-
const _component_icon_button = resolveComponent("icon-button");
|
|
42
42
|
return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
-
createVNode(
|
|
43
|
+
createVNode(IconButton, {
|
|
44
44
|
"is-active": sidebarName.value === "vote",
|
|
45
45
|
title: unref(t)("Vote"),
|
|
46
46
|
onClickIcon: toggleToolBox
|
|
47
47
|
}, {
|
|
48
48
|
default: withCtx(() => [
|
|
49
|
-
createVNode(
|
|
49
|
+
createVNode(unref(IconAIIcon), { size: "24" })
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}, 8, ["is-active", "title"]),
|
|
53
53
|
createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
|
|
54
|
-
createElementVNode("div", { onClick: toggleToolBox }, "测试"),
|
|
54
|
+
createElementVNode("div", { onClick: toggleToolBox }, "0测试"),
|
|
55
55
|
!isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
56
56
|
_cache[0] || (_cache[0] = createTextVNode(" 123 ", -1)),
|
|
57
57
|
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
@@ -76,5 +76,5 @@ export default function useRoomInvite(): {
|
|
|
76
76
|
isVisible: boolean;
|
|
77
77
|
}[]>;
|
|
78
78
|
copyRoomIdAndRoomLink: () => void;
|
|
79
|
-
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription"
|
|
79
|
+
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
|
|
80
80
|
};
|
|
@@ -2,7 +2,7 @@ export default function useSideBar(): {
|
|
|
2
2
|
t: any;
|
|
3
3
|
isSidebarOpen: import('vue').Ref<boolean, boolean>;
|
|
4
4
|
title: import('vue').ComputedRef<string>;
|
|
5
|
-
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription"
|
|
5
|
+
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
|
|
6
6
|
handleClose: (done: any) => void;
|
|
7
7
|
showSideBar: import('vue').ComputedRef<boolean>;
|
|
8
8
|
};
|
package/es/index.mjs
CHANGED
|
@@ -3928,24 +3928,35 @@ to {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3930
3930
|
margin-left: 4px;
|
|
3931
|
-
}.
|
|
3932
|
-
|
|
3931
|
+
}.tool-box[data-v-45795e90] {
|
|
3932
|
+
position: absolute;
|
|
3933
|
+
bottom: 72px;
|
|
3934
|
+
z-index: 2;
|
|
3935
|
+
display: flex;
|
|
3936
|
+
flex-direction: column;
|
|
3937
|
+
align-items: center;
|
|
3938
|
+
justify-content: center;
|
|
3939
|
+
padding: 5px 0;
|
|
3940
|
+
border-radius: 15px;
|
|
3941
|
+
background-color: var(--bg-color-dialog);
|
|
3942
|
+
box-shadow: 0 -8px 30p var(--uikit-color-black-8);
|
|
3933
3943
|
}
|
|
3934
|
-
.
|
|
3944
|
+
.tool-box .tool-box-item[data-v-45795e90] {
|
|
3935
3945
|
display: flex;
|
|
3936
3946
|
align-items: center;
|
|
3947
|
+
justify-content: flex-start;
|
|
3948
|
+
width: 100%;
|
|
3949
|
+
padding: 7px 10px;
|
|
3950
|
+
font-size: 12px;
|
|
3951
|
+
white-space: nowrap;
|
|
3952
|
+
cursor: pointer;
|
|
3937
3953
|
}
|
|
3938
|
-
.
|
|
3939
|
-
|
|
3954
|
+
.tool-box .tool-box-item .icon[data-v-45795e90] {
|
|
3955
|
+
margin-right: 8px;
|
|
3940
3956
|
}
|
|
3941
|
-
.
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
padding-left: 8px;
|
|
3945
|
-
font-size: 14px;
|
|
3946
|
-
font-weight: 400;
|
|
3947
|
-
line-height: 22px;
|
|
3948
|
-
color: var(--text-color-primary);
|
|
3957
|
+
.tool-box .tool-box-item[data-v-45795e90]:hover {
|
|
3958
|
+
border-radius: 8px;
|
|
3959
|
+
background-color: var(--list-color-hover);
|
|
3949
3960
|
}.footer-container[data-v-6b90d75f] {
|
|
3950
3961
|
position: absolute;
|
|
3951
3962
|
bottom: 0;
|
package/es/locales/zh-CN.mjs
CHANGED
package/es/stores/basic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LAYOUT } from '../constants/render';
|
|
2
2
|
import { TUINetwork } from '../../../node_modules/@tencentcloud/tuiroom-engine-js';
|
|
3
3
|
|
|
4
|
-
type SideBarType = 'chat' | 'invite' | 'manage-member' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | '
|
|
4
|
+
type SideBarType = 'chat' | 'invite' | 'manage-member' | 'vote' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | '';
|
|
5
5
|
type SceneType = 'chat' | 'default';
|
|
6
6
|
interface BasicState {
|
|
7
7
|
sdkAppId: number;
|
|
@@ -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-
|
|
6
|
+
const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-45795e90"]]);
|
|
7
7
|
exports.default = voteControl;
|
|
@@ -9,6 +9,8 @@ require("../../utils/environment.js");
|
|
|
9
9
|
require("mitt");
|
|
10
10
|
require("../../services/manager/roomActionManager.js");
|
|
11
11
|
require("@tencentcloud/tui-core");
|
|
12
|
+
const IconButton = require("../common/base/IconButton.vue.js");
|
|
13
|
+
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
12
14
|
const _hoisted_1 = {
|
|
13
15
|
key: 0,
|
|
14
16
|
class: "more-container"
|
|
@@ -39,21 +41,19 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
39
41
|
});
|
|
40
42
|
}
|
|
41
43
|
return (_ctx, _cache) => {
|
|
42
|
-
const _component_IconAIIcon = Vue.resolveComponent("IconAIIcon");
|
|
43
|
-
const _component_icon_button = Vue.resolveComponent("icon-button");
|
|
44
44
|
return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
45
|
-
Vue.createVNode(
|
|
45
|
+
Vue.createVNode(IconButton.default, {
|
|
46
46
|
"is-active": sidebarName.value === "vote",
|
|
47
47
|
title: Vue.unref(t)("Vote"),
|
|
48
48
|
onClickIcon: toggleToolBox
|
|
49
49
|
}, {
|
|
50
50
|
default: Vue.withCtx(() => [
|
|
51
|
-
Vue.createVNode(
|
|
51
|
+
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconAIIcon), { size: "24" })
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
54
|
}, 8, ["is-active", "title"]),
|
|
55
55
|
Vue.createTextVNode(" " + Vue.toDisplayString(sidebarName.value) + " ", 1),
|
|
56
|
-
Vue.createElementVNode("div", { onClick: toggleToolBox }, "测试"),
|
|
56
|
+
Vue.createElementVNode("div", { onClick: toggleToolBox }, "0测试"),
|
|
57
57
|
!isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
58
58
|
_cache[0] || (_cache[0] = Vue.createTextVNode(" 123 ", -1)),
|
|
59
59
|
Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
@@ -76,5 +76,5 @@ export default function useRoomInvite(): {
|
|
|
76
76
|
isVisible: boolean;
|
|
77
77
|
}[]>;
|
|
78
78
|
copyRoomIdAndRoomLink: () => void;
|
|
79
|
-
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription"
|
|
79
|
+
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
|
|
80
80
|
};
|
|
@@ -2,7 +2,7 @@ export default function useSideBar(): {
|
|
|
2
2
|
t: any;
|
|
3
3
|
isSidebarOpen: import('vue').Ref<boolean, boolean>;
|
|
4
4
|
title: import('vue').ComputedRef<string>;
|
|
5
|
-
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription"
|
|
5
|
+
sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
|
|
6
6
|
handleClose: (done: any) => void;
|
|
7
7
|
showSideBar: import('vue').ComputedRef<boolean>;
|
|
8
8
|
};
|
package/lib/index.js
CHANGED
|
@@ -3928,24 +3928,35 @@ to {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3930
3930
|
margin-left: 4px;
|
|
3931
|
-
}.
|
|
3932
|
-
|
|
3931
|
+
}.tool-box[data-v-45795e90] {
|
|
3932
|
+
position: absolute;
|
|
3933
|
+
bottom: 72px;
|
|
3934
|
+
z-index: 2;
|
|
3935
|
+
display: flex;
|
|
3936
|
+
flex-direction: column;
|
|
3937
|
+
align-items: center;
|
|
3938
|
+
justify-content: center;
|
|
3939
|
+
padding: 5px 0;
|
|
3940
|
+
border-radius: 15px;
|
|
3941
|
+
background-color: var(--bg-color-dialog);
|
|
3942
|
+
box-shadow: 0 -8px 30p var(--uikit-color-black-8);
|
|
3933
3943
|
}
|
|
3934
|
-
.
|
|
3944
|
+
.tool-box .tool-box-item[data-v-45795e90] {
|
|
3935
3945
|
display: flex;
|
|
3936
3946
|
align-items: center;
|
|
3947
|
+
justify-content: flex-start;
|
|
3948
|
+
width: 100%;
|
|
3949
|
+
padding: 7px 10px;
|
|
3950
|
+
font-size: 12px;
|
|
3951
|
+
white-space: nowrap;
|
|
3952
|
+
cursor: pointer;
|
|
3937
3953
|
}
|
|
3938
|
-
.
|
|
3939
|
-
|
|
3954
|
+
.tool-box .tool-box-item .icon[data-v-45795e90] {
|
|
3955
|
+
margin-right: 8px;
|
|
3940
3956
|
}
|
|
3941
|
-
.
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
padding-left: 8px;
|
|
3945
|
-
font-size: 14px;
|
|
3946
|
-
font-weight: 400;
|
|
3947
|
-
line-height: 22px;
|
|
3948
|
-
color: var(--text-color-primary);
|
|
3957
|
+
.tool-box .tool-box-item[data-v-45795e90]:hover {
|
|
3958
|
+
border-radius: 8px;
|
|
3959
|
+
background-color: var(--list-color-hover);
|
|
3949
3960
|
}.footer-container[data-v-6b90d75f] {
|
|
3950
3961
|
position: absolute;
|
|
3951
3962
|
bottom: 0;
|
package/lib/locales/zh-CN.js
CHANGED
package/lib/stores/basic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LAYOUT } from '../constants/render';
|
|
2
2
|
import { TUINetwork } from '../../../node_modules/@tencentcloud/tuiroom-engine-js';
|
|
3
3
|
|
|
4
|
-
type SideBarType = 'chat' | 'invite' | 'manage-member' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | '
|
|
4
|
+
type SideBarType = 'chat' | 'invite' | 'manage-member' | 'vote' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | '';
|
|
5
5
|
type SceneType = 'chat' | 'default';
|
|
6
6
|
interface BasicState {
|
|
7
7
|
sdkAppId: number;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<IconAIIcon size="24" />
|
|
9
9
|
</icon-button>
|
|
10
10
|
{{ sidebarName }}
|
|
11
|
-
<div @click="toggleToolBox"
|
|
11
|
+
<div @click="toggleToolBox">0测试</div>
|
|
12
12
|
<div class="tool-box" v-if="!isSidebarOpen && showToolBox">
|
|
13
13
|
123
|
|
14
14
|
<slot name="content"></slot>
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script setup lang="ts">
|
|
20
|
-
|
|
20
|
+
import { roomService } from '../../services';
|
|
21
21
|
import { defineEmits, ref,computed,watch } from 'vue';
|
|
22
22
|
import { useI18n } from '../../locales';
|
|
23
|
+
import IconButton from '../common/base/IconButton.vue';
|
|
24
|
+
import {
|
|
25
|
+
IconAIIcon,
|
|
26
|
+
IconAISubtitles,
|
|
27
|
+
IconAITranscription,
|
|
28
|
+
} from '@tencentcloud/uikit-base-component-vue3';
|
|
23
29
|
const { basicStore } = roomService;
|
|
24
30
|
const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
|
|
25
31
|
const sidebarName = computed(() => basicStore.sidebarName);
|
|
@@ -41,27 +47,37 @@ function toggleToolBox() {
|
|
|
41
47
|
</script>
|
|
42
48
|
|
|
43
49
|
<style lang="scss" scoped>
|
|
44
|
-
.
|
|
45
|
-
|
|
50
|
+
.tool-box {
|
|
51
|
+
position: absolute;
|
|
52
|
+
bottom: 72px;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
padding: 5px 0;
|
|
59
|
+
border-radius: 15px;
|
|
60
|
+
background-color: var(--bg-color-dialog);
|
|
61
|
+
box-shadow: 0 -8px 30p var(--uikit-color-black-8);
|
|
46
62
|
|
|
47
|
-
.
|
|
63
|
+
.tool-box-item {
|
|
48
64
|
display: flex;
|
|
49
65
|
align-items: center;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
width: 100%;
|
|
68
|
+
padding: 7px 10px;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
cursor: pointer;
|
|
50
72
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.more-notice {
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: 22px;
|
|
58
|
-
padding-left: 8px;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
font-weight: 400;
|
|
61
|
-
line-height: 22px;
|
|
62
|
-
color: var(--text-color-primary);
|
|
73
|
+
.icon {
|
|
74
|
+
margin-right: 8px;
|
|
63
75
|
}
|
|
64
76
|
}
|
|
65
77
|
|
|
78
|
+
.tool-box-item:hover {
|
|
79
|
+
border-radius: 8px;
|
|
80
|
+
background-color: var(--list-color-hover);
|
|
81
|
+
}
|
|
66
82
|
}
|
|
67
83
|
</style>
|