@ndscnj/roomkit-web-vue3 25.12.2411 → 25.12.2412
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/VoteControlH5.vue.mjs +1 -1
- package/es/components/RoomFooter/voteControl/VoteControlH5.vue2.mjs +1 -1
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +5 -1
- package/es/components/RoomFooter/voteControl/VoteControlPC.vue.mjs +10 -4
- package/es/components/RoomFooter/voteControl/index.d.ts +5 -1
- package/es/components/RoomFooter/voteControl/{useMoreControlHooks.mjs → useVoteControlHooks.mjs} +1 -1
- package/es/components/RoomVote/indexPC.vue.mjs +1 -1
- package/es/components/RoomVote/indexPC.vue2.mjs +2 -2
- package/es/index.mjs +14 -14
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.js +1 -1
- package/lib/components/RoomFooter/voteControl/VoteControlH5.vue2.js +2 -2
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +5 -1
- package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.js +11 -5
- package/lib/components/RoomFooter/voteControl/index.d.ts +5 -1
- package/lib/components/RoomFooter/voteControl/{useMoreControlHooks.js → useVoteControlHooks.js} +1 -1
- package/lib/components/RoomVote/indexPC.vue.js +1 -1
- package/lib/components/RoomVote/indexPC.vue2.js +2 -2
- package/lib/index.js +14 -14
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlH5.vue +2 -2
- package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlPC.vue +10 -6
- package/src/TUIRoom/components/RoomFooter/voteControl/{useMoreControlHooks.ts → useVoteControlHooks.ts} +1 -1
- package/src/TUIRoom/components/RoomVote/indexPC.vue +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./VoteControlH5.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const VoteControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const VoteControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1506794c"]]);
|
|
5
5
|
export {
|
|
6
6
|
VoteControlH5 as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUnmounted, createElementBlock, openBlock, createCommentVNode, unref, withDirectives, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { IconExtension } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
4
|
-
import useControl from "./
|
|
4
|
+
import useControl from "./useVoteControlHooks.mjs";
|
|
5
5
|
import _sfc_main$1 from "../ChatControl.vue.mjs";
|
|
6
6
|
import InviteControl from "../InviteControl.vue.mjs";
|
|
7
7
|
import ContactControl from "../ContactControl.vue.mjs";
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
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 { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx } from "vue";
|
|
2
2
|
import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
4
|
-
import useControl from "./
|
|
4
|
+
import useControl from "./useVoteControlHooks.mjs";
|
|
5
5
|
import "../../../services/main.mjs";
|
|
6
6
|
import { roomService } from "../../../services/roomService.mjs";
|
|
7
7
|
import "../../../locales/index.mjs";
|
|
@@ -16,9 +16,11 @@ const _hoisted_1 = {
|
|
|
16
16
|
};
|
|
17
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
__name: "VoteControlPC",
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
emits: ["on-vote"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const voteControlConfig = roomService.getComponentConfig("VoteControl");
|
|
21
22
|
const { t, basicStore, sidebarName } = useControl();
|
|
23
|
+
const emit = __emit;
|
|
22
24
|
function toggleMoreSidebar() {
|
|
23
25
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
24
26
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -27,9 +29,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
29
|
}
|
|
28
30
|
basicStore.setSidebarOpenStatus(true);
|
|
29
31
|
basicStore.setSidebarName("vote");
|
|
32
|
+
emit("on-vote", {
|
|
33
|
+
name: "onVote",
|
|
34
|
+
visible: voteControlConfig.visible
|
|
35
|
+
});
|
|
30
36
|
}
|
|
31
37
|
return (_ctx, _cache) => {
|
|
32
|
-
return unref(
|
|
38
|
+
return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
33
39
|
createVNode(IconButton, {
|
|
34
40
|
"is-active": unref(sidebarName) === "vote",
|
|
35
41
|
title: unref(t)("Vote"),
|
|
@@ -2,5 +2,9 @@ declare const VoteControl: 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, {
|
|
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 VoteControl;
|
package/es/components/RoomFooter/voteControl/{useMoreControlHooks.mjs → useVoteControlHooks.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ function useControl() {
|
|
|
8
8
|
const basicStore = useBasicStore();
|
|
9
9
|
const { sidebarName } = storeToRefs(basicStore);
|
|
10
10
|
const iconName = computed(
|
|
11
|
-
() => sidebarName.value === "
|
|
11
|
+
() => sidebarName.value === "vote" ? ICON_NAME.VoteActive : ICON_NAME.Vote
|
|
12
12
|
);
|
|
13
13
|
return {
|
|
14
14
|
t,
|
|
@@ -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-
|
|
4
|
+
const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-11728c2b"]]);
|
|
5
5
|
export {
|
|
6
6
|
indexPC as default
|
|
7
7
|
};
|
|
@@ -12,7 +12,7 @@ const _hoisted_5 = { class: "item-title" };
|
|
|
12
12
|
const _hoisted_6 = { class: "more-item" };
|
|
13
13
|
const _hoisted_7 = { class: "item-title" };
|
|
14
14
|
const _hoisted_8 = { class: "more-content" };
|
|
15
|
-
const _hoisted_9 = { class: "
|
|
15
|
+
const _hoisted_9 = { class: "contact-container" };
|
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
__name: "indexPC",
|
|
18
18
|
setup(__props) {
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
22
|
createElementVNode("div", _hoisted_2, [
|
|
23
23
|
createVNode(unref(IconEmail), { class: "email-icon" }),
|
|
24
|
-
createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("
|
|
24
|
+
createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("Vote")), 1)
|
|
25
25
|
]),
|
|
26
26
|
unref(isZH) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
27
27
|
createElementVNode("div", _hoisted_5, toDisplayString(unref(t)("Join our product discussion group")), 1),
|
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
|
-
}.show-more-content[data-v-
|
|
3931
|
+
}.show-more-content[data-v-1506794c] {
|
|
3932
3932
|
position: absolute;
|
|
3933
3933
|
bottom: 15px;
|
|
3934
3934
|
left: 5%;
|
|
@@ -3936,11 +3936,11 @@ to {
|
|
|
3936
3936
|
height: 17vh;
|
|
3937
3937
|
padding: 10px;
|
|
3938
3938
|
border-radius: 13px;
|
|
3939
|
-
animation-name: popup-
|
|
3939
|
+
animation-name: popup-1506794c;
|
|
3940
3940
|
animation-duration: 200ms;
|
|
3941
3941
|
background-color: var(--bg-color-operate);
|
|
3942
3942
|
}
|
|
3943
|
-
@keyframes popup-
|
|
3943
|
+
@keyframes popup-1506794c {
|
|
3944
3944
|
from {
|
|
3945
3945
|
bottom: 0;
|
|
3946
3946
|
}
|
|
@@ -3948,10 +3948,10 @@ to {
|
|
|
3948
3948
|
bottom: 15px;
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
|
-
.control-compent[data-v-
|
|
3951
|
+
.control-compent[data-v-1506794c] {
|
|
3952
3952
|
display: flex;
|
|
3953
3953
|
}
|
|
3954
|
-
.close[data-v-
|
|
3954
|
+
.close[data-v-1506794c] {
|
|
3955
3955
|
position: relative;
|
|
3956
3956
|
top: 10%;
|
|
3957
3957
|
display: flex;
|
|
@@ -5075,17 +5075,17 @@ to {
|
|
|
5075
5075
|
font-size: 16px;
|
|
5076
5076
|
font-weight: 400;
|
|
5077
5077
|
text-align: end;
|
|
5078
|
-
}.more-container[data-v-
|
|
5078
|
+
}.more-container[data-v-11728c2b] {
|
|
5079
5079
|
padding: 20px;
|
|
5080
5080
|
}
|
|
5081
|
-
.more-container .more-title[data-v-
|
|
5081
|
+
.more-container .more-title[data-v-11728c2b] {
|
|
5082
5082
|
display: flex;
|
|
5083
5083
|
align-items: center;
|
|
5084
5084
|
}
|
|
5085
|
-
.more-container .more-title .email-icon[data-v-
|
|
5085
|
+
.more-container .more-title .email-icon[data-v-11728c2b] {
|
|
5086
5086
|
color: var(--uikit-color-gray-7);
|
|
5087
5087
|
}
|
|
5088
|
-
.more-container .more-title .more-notice[data-v-
|
|
5088
|
+
.more-container .more-title .more-notice[data-v-11728c2b] {
|
|
5089
5089
|
width: 100%;
|
|
5090
5090
|
height: 22px;
|
|
5091
5091
|
padding-left: 8px;
|
|
@@ -5094,15 +5094,15 @@ to {
|
|
|
5094
5094
|
line-height: 22px;
|
|
5095
5095
|
color: var(--text-color-primary);
|
|
5096
5096
|
}
|
|
5097
|
-
.more-container .more-item[data-v-
|
|
5097
|
+
.more-container .more-item[data-v-11728c2b] {
|
|
5098
5098
|
position: relative;
|
|
5099
5099
|
display: flex;
|
|
5100
5100
|
flex-direction: column;
|
|
5101
5101
|
}
|
|
5102
|
-
.more-container .more-item[data-v-
|
|
5102
|
+
.more-container .more-item[data-v-11728c2b]:not(:first-child) {
|
|
5103
5103
|
margin-top: 20px;
|
|
5104
5104
|
}
|
|
5105
|
-
.more-container .more-item:not(:first-child) .item-title[data-v-
|
|
5105
|
+
.more-container .more-item:not(:first-child) .item-title[data-v-11728c2b] {
|
|
5106
5106
|
width: 100%;
|
|
5107
5107
|
padding-bottom: 8px;
|
|
5108
5108
|
font-size: 14px;
|
|
@@ -5110,7 +5110,7 @@ to {
|
|
|
5110
5110
|
line-height: 22px;
|
|
5111
5111
|
color: var(--text-color-primary);
|
|
5112
5112
|
}
|
|
5113
|
-
.more-container .more-item:not(:first-child) .more-content[data-v-
|
|
5113
|
+
.more-container .more-item:not(:first-child) .more-content[data-v-11728c2b] {
|
|
5114
5114
|
position: relative;
|
|
5115
5115
|
box-sizing: border-box;
|
|
5116
5116
|
display: inline-block;
|
|
@@ -5130,7 +5130,7 @@ to {
|
|
|
5130
5130
|
background-color: var(--bg-color-input);
|
|
5131
5131
|
border: 1px solid var(--stroke-color-module);
|
|
5132
5132
|
}
|
|
5133
|
-
.more-container .more-item:not(:first-child) .copy-icon[data-v-
|
|
5133
|
+
.more-container .more-item:not(:first-child) .copy-icon[data-v-11728c2b] {
|
|
5134
5134
|
position: absolute;
|
|
5135
5135
|
top: 45px;
|
|
5136
5136
|
right: 10px;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const VoteControlH5_vue_vue_type_script_setup_true_lang = require("./VoteControlH5.vue2.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const VoteControlH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(VoteControlH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const VoteControlH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(VoteControlH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-1506794c"]]);
|
|
7
7
|
exports.default = VoteControlH5;
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
5
5
|
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
6
|
-
const
|
|
6
|
+
const useVoteControlHooks = require("./useVoteControlHooks.js");
|
|
7
7
|
const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
|
|
8
8
|
const InviteControl = require("../InviteControl.vue.js");
|
|
9
9
|
const ContactControl = require("../ContactControl.vue.js");
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
31
31
|
const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
32
32
|
const showMoreContent = Vue.ref(false);
|
|
33
33
|
const moreContentRef = Vue.ref();
|
|
34
|
-
const { t, sidebarName } =
|
|
34
|
+
const { t, sidebarName } = useVoteControlHooks.default();
|
|
35
35
|
const roomStore = room.useRoomStore();
|
|
36
36
|
const emit = __emit;
|
|
37
37
|
function showMore() {
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
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,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
5
5
|
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
6
|
-
const
|
|
6
|
+
const useVoteControlHooks = require("./useVoteControlHooks.js");
|
|
7
7
|
require("../../../services/main.js");
|
|
8
8
|
const roomService = require("../../../services/roomService.js");
|
|
9
9
|
require("../../../locales/index.js");
|
|
@@ -18,9 +18,11 @@ const _hoisted_1 = {
|
|
|
18
18
|
};
|
|
19
19
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
20
|
__name: "VoteControlPC",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
21
|
+
emits: ["on-vote"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
|
|
24
|
+
const { t, basicStore, sidebarName } = useVoteControlHooks.default();
|
|
25
|
+
const emit = __emit;
|
|
24
26
|
function toggleMoreSidebar() {
|
|
25
27
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
26
28
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -29,9 +31,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
29
31
|
}
|
|
30
32
|
basicStore.setSidebarOpenStatus(true);
|
|
31
33
|
basicStore.setSidebarName("vote");
|
|
34
|
+
emit("on-vote", {
|
|
35
|
+
name: "onVote",
|
|
36
|
+
visible: voteControlConfig.visible
|
|
37
|
+
});
|
|
32
38
|
}
|
|
33
39
|
return (_ctx, _cache) => {
|
|
34
|
-
return Vue.unref(
|
|
40
|
+
return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
35
41
|
Vue.createVNode(IconButton.default, {
|
|
36
42
|
"is-active": Vue.unref(sidebarName) === "vote",
|
|
37
43
|
title: Vue.unref(t)("Vote"),
|
|
@@ -2,5 +2,9 @@ declare const VoteControl: 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, {
|
|
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 VoteControl;
|
package/lib/components/RoomFooter/voteControl/{useMoreControlHooks.js → useVoteControlHooks.js}
RENAMED
|
@@ -10,7 +10,7 @@ function useControl() {
|
|
|
10
10
|
const basicStore = basic.useBasicStore();
|
|
11
11
|
const { sidebarName } = pinia.storeToRefs(basicStore);
|
|
12
12
|
const iconName = Vue.computed(
|
|
13
|
-
() => sidebarName.value === "
|
|
13
|
+
() => sidebarName.value === "vote" ? icon.ICON_NAME.VoteActive : icon.ICON_NAME.Vote
|
|
14
14
|
);
|
|
15
15
|
return {
|
|
16
16
|
t,
|
|
@@ -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-
|
|
6
|
+
const indexPC = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-11728c2b"]]);
|
|
7
7
|
exports.default = indexPC;
|
|
@@ -14,7 +14,7 @@ const _hoisted_5 = { class: "item-title" };
|
|
|
14
14
|
const _hoisted_6 = { class: "more-item" };
|
|
15
15
|
const _hoisted_7 = { class: "item-title" };
|
|
16
16
|
const _hoisted_8 = { class: "more-content" };
|
|
17
|
-
const _hoisted_9 = { class: "
|
|
17
|
+
const _hoisted_9 = { class: "contact-container" };
|
|
18
18
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
19
19
|
__name: "indexPC",
|
|
20
20
|
setup(__props) {
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
23
23
|
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
24
24
|
Vue.createElementVNode("div", _hoisted_2, [
|
|
25
25
|
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconEmail), { class: "email-icon" }),
|
|
26
|
-
Vue.createElementVNode("div", _hoisted_3, Vue.toDisplayString(Vue.unref(t)("
|
|
26
|
+
Vue.createElementVNode("div", _hoisted_3, Vue.toDisplayString(Vue.unref(t)("Vote")), 1)
|
|
27
27
|
]),
|
|
28
28
|
Vue.unref(isZH) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
|
|
29
29
|
Vue.createElementVNode("div", _hoisted_5, Vue.toDisplayString(Vue.unref(t)("Join our product discussion group")), 1),
|
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
|
-
}.show-more-content[data-v-
|
|
3931
|
+
}.show-more-content[data-v-1506794c] {
|
|
3932
3932
|
position: absolute;
|
|
3933
3933
|
bottom: 15px;
|
|
3934
3934
|
left: 5%;
|
|
@@ -3936,11 +3936,11 @@ to {
|
|
|
3936
3936
|
height: 17vh;
|
|
3937
3937
|
padding: 10px;
|
|
3938
3938
|
border-radius: 13px;
|
|
3939
|
-
animation-name: popup-
|
|
3939
|
+
animation-name: popup-1506794c;
|
|
3940
3940
|
animation-duration: 200ms;
|
|
3941
3941
|
background-color: var(--bg-color-operate);
|
|
3942
3942
|
}
|
|
3943
|
-
@keyframes popup-
|
|
3943
|
+
@keyframes popup-1506794c {
|
|
3944
3944
|
from {
|
|
3945
3945
|
bottom: 0;
|
|
3946
3946
|
}
|
|
@@ -3948,10 +3948,10 @@ to {
|
|
|
3948
3948
|
bottom: 15px;
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
|
-
.control-compent[data-v-
|
|
3951
|
+
.control-compent[data-v-1506794c] {
|
|
3952
3952
|
display: flex;
|
|
3953
3953
|
}
|
|
3954
|
-
.close[data-v-
|
|
3954
|
+
.close[data-v-1506794c] {
|
|
3955
3955
|
position: relative;
|
|
3956
3956
|
top: 10%;
|
|
3957
3957
|
display: flex;
|
|
@@ -5075,17 +5075,17 @@ to {
|
|
|
5075
5075
|
font-size: 16px;
|
|
5076
5076
|
font-weight: 400;
|
|
5077
5077
|
text-align: end;
|
|
5078
|
-
}.more-container[data-v-
|
|
5078
|
+
}.more-container[data-v-11728c2b] {
|
|
5079
5079
|
padding: 20px;
|
|
5080
5080
|
}
|
|
5081
|
-
.more-container .more-title[data-v-
|
|
5081
|
+
.more-container .more-title[data-v-11728c2b] {
|
|
5082
5082
|
display: flex;
|
|
5083
5083
|
align-items: center;
|
|
5084
5084
|
}
|
|
5085
|
-
.more-container .more-title .email-icon[data-v-
|
|
5085
|
+
.more-container .more-title .email-icon[data-v-11728c2b] {
|
|
5086
5086
|
color: var(--uikit-color-gray-7);
|
|
5087
5087
|
}
|
|
5088
|
-
.more-container .more-title .more-notice[data-v-
|
|
5088
|
+
.more-container .more-title .more-notice[data-v-11728c2b] {
|
|
5089
5089
|
width: 100%;
|
|
5090
5090
|
height: 22px;
|
|
5091
5091
|
padding-left: 8px;
|
|
@@ -5094,15 +5094,15 @@ to {
|
|
|
5094
5094
|
line-height: 22px;
|
|
5095
5095
|
color: var(--text-color-primary);
|
|
5096
5096
|
}
|
|
5097
|
-
.more-container .more-item[data-v-
|
|
5097
|
+
.more-container .more-item[data-v-11728c2b] {
|
|
5098
5098
|
position: relative;
|
|
5099
5099
|
display: flex;
|
|
5100
5100
|
flex-direction: column;
|
|
5101
5101
|
}
|
|
5102
|
-
.more-container .more-item[data-v-
|
|
5102
|
+
.more-container .more-item[data-v-11728c2b]:not(:first-child) {
|
|
5103
5103
|
margin-top: 20px;
|
|
5104
5104
|
}
|
|
5105
|
-
.more-container .more-item:not(:first-child) .item-title[data-v-
|
|
5105
|
+
.more-container .more-item:not(:first-child) .item-title[data-v-11728c2b] {
|
|
5106
5106
|
width: 100%;
|
|
5107
5107
|
padding-bottom: 8px;
|
|
5108
5108
|
font-size: 14px;
|
|
@@ -5110,7 +5110,7 @@ to {
|
|
|
5110
5110
|
line-height: 22px;
|
|
5111
5111
|
color: var(--text-color-primary);
|
|
5112
5112
|
}
|
|
5113
|
-
.more-container .more-item:not(:first-child) .more-content[data-v-
|
|
5113
|
+
.more-container .more-item:not(:first-child) .more-content[data-v-11728c2b] {
|
|
5114
5114
|
position: relative;
|
|
5115
5115
|
box-sizing: border-box;
|
|
5116
5116
|
display: inline-block;
|
|
@@ -5130,7 +5130,7 @@ to {
|
|
|
5130
5130
|
background-color: var(--bg-color-input);
|
|
5131
5131
|
border: 1px solid var(--stroke-color-module);
|
|
5132
5132
|
}
|
|
5133
|
-
.more-container .more-item:not(:first-child) .copy-icon[data-v-
|
|
5133
|
+
.more-container .more-item:not(:first-child) .copy-icon[data-v-11728c2b] {
|
|
5134
5134
|
position: absolute;
|
|
5135
5135
|
top: 45px;
|
|
5136
5136
|
right: 10px;
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
import { ref, onMounted, onUnmounted, defineEmits } from 'vue';
|
|
30
30
|
import { IconExtension } from '@tencentcloud/uikit-base-component-vue3';
|
|
31
31
|
import IconButton from '../../common/base/IconButton.vue';
|
|
32
|
-
import
|
|
32
|
+
import userVoteControl from './useVoteControlHooks';
|
|
33
33
|
import ChatControl from '../ChatControl.vue';
|
|
34
34
|
import InviteControl from '../InviteControl.vue';
|
|
35
35
|
import ContactControl from '../ContactControl.vue';
|
|
@@ -42,7 +42,7 @@ const moreControlConfig = roomService.getComponentConfig('MoreControl');
|
|
|
42
42
|
const showMoreContent = ref(false);
|
|
43
43
|
const moreContentRef = ref();
|
|
44
44
|
|
|
45
|
-
const { t, sidebarName } =
|
|
45
|
+
const { t, sidebarName } = userVoteControl();
|
|
46
46
|
const roomStore = useRoomStore();
|
|
47
47
|
const emit = defineEmits(['show-overlay']);
|
|
48
48
|
function showMore() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="
|
|
2
|
+
<div v-if="voteControlConfig.visible" class="vote-control-container">
|
|
3
3
|
<icon-button
|
|
4
4
|
:is-active="sidebarName === 'vote'"
|
|
5
5
|
:title="t('Vote')"
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import { IconMore } from '@tencentcloud/uikit-base-component-vue3';
|
|
14
14
|
import IconButton from '../../common/base/IconButton.vue';
|
|
15
|
-
import
|
|
15
|
+
import userVoteControl from './useVoteControlHooks';
|
|
16
16
|
import { roomService } from '../../../services';
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const { t, basicStore, sidebarName } =
|
|
20
|
-
|
|
17
|
+
import { defineEmits } from 'vue';
|
|
18
|
+
const voteControlConfig = roomService.getComponentConfig('VoteControl');
|
|
19
|
+
const { t, basicStore, sidebarName } = userVoteControl();
|
|
20
|
+
const emit = defineEmits(['on-vote']);
|
|
21
21
|
function toggleMoreSidebar() {
|
|
22
22
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === 'vote') {
|
|
23
23
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -26,6 +26,10 @@ function toggleMoreSidebar() {
|
|
|
26
26
|
}
|
|
27
27
|
basicStore.setSidebarOpenStatus(true);
|
|
28
28
|
basicStore.setSidebarName('vote');
|
|
29
|
+
emit('on-vote', {
|
|
30
|
+
name: 'onVote',
|
|
31
|
+
visible: voteControlConfig.visible,
|
|
32
|
+
});
|
|
29
33
|
}
|
|
30
34
|
</script>
|
|
31
35
|
<style lang="scss" scoped></style>
|
|
@@ -11,7 +11,7 @@ export default function useControl() {
|
|
|
11
11
|
const { sidebarName } = storeToRefs(basicStore);
|
|
12
12
|
|
|
13
13
|
const iconName = computed(() =>
|
|
14
|
-
sidebarName.value === '
|
|
14
|
+
sidebarName.value === 'vote' ? ICON_NAME.VoteActive : ICON_NAME.Vote
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="more-title">
|
|
4
4
|
<IconEmail class="email-icon" />
|
|
5
5
|
<div class="more-notice">
|
|
6
|
-
{{ t('
|
|
6
|
+
{{ t('Vote') }}
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
<div v-if="isZH" class="more-item">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="more-content">{{ email }}</div>
|
|
16
16
|
<IconCopy class="copy-icon" @click="onCopy(email)" />
|
|
17
17
|
</div>
|
|
18
|
-
<div class="
|
|
18
|
+
<div class="contact-container">
|
|
19
19
|
<slot name="content"></slot>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|