@ndscnj/roomkit-web-vue3 25.12.2422 → 25.12.2423
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/MoreControlPC.vue.d.ts +5 -1
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +1 -1
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +10 -2
- package/es/components/RoomFooter/VoteControl/index.d.ts +5 -1
- package/es/index.mjs +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +5 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +9 -1
- package/lib/components/RoomFooter/VoteControl/index.d.ts +5 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +8 -2
|
@@ -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 _sfc_main from "./MoreControlPC.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-db9d7b2c"]]);
|
|
5
5
|
export {
|
|
6
6
|
MoreControlPc as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import _imports_0 from "../../../assets/imgs/vote-icon.png.mjs";
|
|
3
3
|
import IconButton from "../../common/base/IconButton.vue.mjs";
|
|
4
4
|
import useControl from "./useMoreControlHooks.mjs";
|
|
@@ -16,9 +16,12 @@ const _hoisted_1 = {
|
|
|
16
16
|
};
|
|
17
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
__name: "MoreControlPC",
|
|
19
|
-
|
|
19
|
+
emits: ["on-vote"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
20
21
|
const moreControlConfig = roomService.getComponentConfig("MoreControl");
|
|
21
22
|
const { t, basicStore, sidebarName } = useControl();
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const showToolBox = ref(false);
|
|
22
25
|
function toggleMoreSidebar() {
|
|
23
26
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
24
27
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -27,6 +30,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
30
|
}
|
|
28
31
|
basicStore.setSidebarOpenStatus(true);
|
|
29
32
|
basicStore.setSidebarName("vote");
|
|
33
|
+
showToolBox.value = !showToolBox.value;
|
|
34
|
+
emit("on-vote", {
|
|
35
|
+
name: "onVote",
|
|
36
|
+
visible: showToolBox.value
|
|
37
|
+
});
|
|
30
38
|
}
|
|
31
39
|
return (_ctx, _cache) => {
|
|
32
40
|
return unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -2,5 +2,9 @@ declare const MoreControl: 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 MoreControl;
|
package/es/index.mjs
CHANGED
|
@@ -4006,7 +4006,7 @@ to {
|
|
|
4006
4006
|
border-radius: 8px;
|
|
4007
4007
|
color: var(--text-color-primary);
|
|
4008
4008
|
background-color: var(--button-color-secondary-default);
|
|
4009
|
-
}.ndsc-img-box[data-v-
|
|
4009
|
+
}.ndsc-img-box[data-v-db9d7b2c] {
|
|
4010
4010
|
width: 24px;
|
|
4011
4011
|
height: 24px;
|
|
4012
4012
|
}.footer-container[data-v-4afcea78] {
|
|
@@ -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,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const MoreControlPC_vue_vue_type_script_setup_true_lang = require("./MoreControlPC.vue2.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-db9d7b2c"]]);
|
|
7
7
|
exports.default = MoreControlPc;
|
|
@@ -18,9 +18,12 @@ const _hoisted_1 = {
|
|
|
18
18
|
};
|
|
19
19
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
20
|
__name: "MoreControlPC",
|
|
21
|
-
|
|
21
|
+
emits: ["on-vote"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
22
23
|
const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
23
24
|
const { t, basicStore, sidebarName } = useMoreControlHooks.default();
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const showToolBox = Vue.ref(false);
|
|
24
27
|
function toggleMoreSidebar() {
|
|
25
28
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
26
29
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -29,6 +32,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
29
32
|
}
|
|
30
33
|
basicStore.setSidebarOpenStatus(true);
|
|
31
34
|
basicStore.setSidebarName("vote");
|
|
35
|
+
showToolBox.value = !showToolBox.value;
|
|
36
|
+
emit("on-vote", {
|
|
37
|
+
name: "onVote",
|
|
38
|
+
visible: showToolBox.value
|
|
39
|
+
});
|
|
32
40
|
}
|
|
33
41
|
return (_ctx, _cache) => {
|
|
34
42
|
return Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -2,5 +2,9 @@ declare const MoreControl: 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 MoreControl;
|
package/lib/index.js
CHANGED
|
@@ -4006,7 +4006,7 @@ to {
|
|
|
4006
4006
|
border-radius: 8px;
|
|
4007
4007
|
color: var(--text-color-primary);
|
|
4008
4008
|
background-color: var(--button-color-secondary-default);
|
|
4009
|
-
}.ndsc-img-box[data-v-
|
|
4009
|
+
}.ndsc-img-box[data-v-db9d7b2c] {
|
|
4010
4010
|
width: 24px;
|
|
4011
4011
|
height: 24px;
|
|
4012
4012
|
}.footer-container[data-v-4afcea78] {
|
package/package.json
CHANGED
|
@@ -14,10 +14,11 @@ import { IconMore } from '@tencentcloud/uikit-base-component-vue3';
|
|
|
14
14
|
import IconButton from '../../common/base/IconButton.vue';
|
|
15
15
|
import userMoreControl from './useMoreControlHooks';
|
|
16
16
|
import { roomService } from '../../../services';
|
|
17
|
-
|
|
17
|
+
import { defineEmits,ref} from 'vue';
|
|
18
18
|
const moreControlConfig = roomService.getComponentConfig('MoreControl');
|
|
19
19
|
const { t, basicStore, sidebarName } = userMoreControl();
|
|
20
|
-
|
|
20
|
+
const emit = defineEmits(['on-vote']);
|
|
21
|
+
const showToolBox = ref(false);
|
|
21
22
|
function toggleMoreSidebar() {
|
|
22
23
|
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === 'vote') {
|
|
23
24
|
basicStore.setSidebarOpenStatus(false);
|
|
@@ -26,6 +27,11 @@ function toggleMoreSidebar() {
|
|
|
26
27
|
}
|
|
27
28
|
basicStore.setSidebarOpenStatus(true);
|
|
28
29
|
basicStore.setSidebarName('vote');
|
|
30
|
+
showToolBox.value = !showToolBox.value;
|
|
31
|
+
emit('on-vote', {
|
|
32
|
+
name: 'onVote',
|
|
33
|
+
visible: showToolBox.value,
|
|
34
|
+
});
|
|
29
35
|
}
|
|
30
36
|
</script>
|
|
31
37
|
<style lang="scss" scoped>
|