✌️
This commit is contained in:
parent
6f546efdb7
commit
8ed30d1ff3
@ -2,6 +2,7 @@
|
|||||||
<div class="mkw-messaging">
|
<div class="mkw-messaging">
|
||||||
<mk-widget-container :show-header="props.design == 0">
|
<mk-widget-container :show-header="props.design == 0">
|
||||||
<template slot="header">%fa:comments%%i18n:@title%</template>
|
<template slot="header">%fa:comments%%i18n:@title%</template>
|
||||||
|
<button slot="func" @click="add">%fa:plus%</button>
|
||||||
|
|
||||||
<mk-messaging ref="index" compact @navigate="navigate"/>
|
<mk-messaging ref="index" compact @navigate="navigate"/>
|
||||||
</mk-widget-container>
|
</mk-widget-container>
|
||||||
@ -11,6 +12,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import define from '../../../common/define-widget';
|
import define from '../../../common/define-widget';
|
||||||
import MkMessagingRoomWindow from '../components/messaging-room-window.vue';
|
import MkMessagingRoomWindow from '../components/messaging-room-window.vue';
|
||||||
|
import MkMessagingWindow from '../components/messaging-window.vue';
|
||||||
|
|
||||||
export default define({
|
export default define({
|
||||||
name: 'messaging',
|
name: 'messaging',
|
||||||
@ -24,6 +26,9 @@ export default define({
|
|||||||
user: user
|
user: user
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
add() {
|
||||||
|
(this as any).os.new(MkMessagingWindow);
|
||||||
|
},
|
||||||
func() {
|
func() {
|
||||||
if (this.props.design == 1) {
|
if (this.props.design == 1) {
|
||||||
this.props.design = 0;
|
this.props.design = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user