@aochuang/client-sdk 1.0.309 → 1.0.310
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/components/chat-panel/chat-panel-box.vue +1 -1
- package/components/chat-panel/chat-panel-chat.vue +1 -1
- package/components/chat-panel/chat-panel-chats.vue +28 -23
- package/components/chat-panel/chat-panel.vue +3 -0
- package/components/wechat-chat-panel/chat-panel.vue +8 -6
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="sdk-chat-panel-box__foot-row" v-if="inner_foot_vnode">
|
|
36
36
|
<component :is="inner_foot_vnode"></component>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="sdk-chat-panel-box__foot-row" v-if="$slots.foot">
|
|
38
|
+
<div class="sdk-chat-panel-box__foot-row" v-if="$slots.foot || $scopedSlots.foot">
|
|
39
39
|
<slot name="foot"></slot>
|
|
40
40
|
</div>
|
|
41
41
|
<div class="sdk-chat-panel-box__foot-row is-last">
|
|
@@ -18,31 +18,35 @@
|
|
|
18
18
|
@range="handleIncrementRangeMore"
|
|
19
19
|
></chat-panel-increment>
|
|
20
20
|
<template v-if="dataType === 'array'">
|
|
21
|
-
<
|
|
21
|
+
<template
|
|
22
22
|
v-for="item in data"
|
|
23
|
-
:key="'chat_' + item[keyField]"
|
|
24
|
-
:dir="handleisSenderMethod(item) ? 'right' : 'left'"
|
|
25
|
-
:class="handleChatClassMethod(item)"
|
|
26
|
-
:id="item[keyField]"
|
|
27
|
-
:item="item"
|
|
28
|
-
:render-control="renderControl"
|
|
29
|
-
:fetch-user-method="fetchUserMethod"
|
|
30
|
-
:ref="'chat_' + item[keyField]"
|
|
31
|
-
:show-context-btn="showContextBtn"
|
|
32
|
-
:msg-time-field="msgTimeField"
|
|
33
|
-
@view-context="handleViewContextClick(item)"
|
|
34
|
-
@contextmenu="handleChatContextMenu(item, $event)"
|
|
35
23
|
>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
24
|
+
<slot name="chat-before" :item="item"></slot>
|
|
25
|
+
<chat-panel-chat
|
|
26
|
+
:key="'chat_' + item[keyField]"
|
|
27
|
+
:dir="handleisSenderMethod(item) ? 'right' : 'left'"
|
|
28
|
+
:class="handleChatClassMethod(item)"
|
|
29
|
+
:id="item[keyField]"
|
|
30
|
+
:item="item"
|
|
31
|
+
:render-control="renderControl"
|
|
32
|
+
:fetch-user-method="fetchUserMethod"
|
|
33
|
+
:ref="'chat_' + item[keyField]"
|
|
34
|
+
:show-context-btn="showContextBtn"
|
|
35
|
+
:msg-time-field="msgTimeField"
|
|
36
|
+
@view-context="handleViewContextClick(item)"
|
|
37
|
+
@contextmenu="handleChatContextMenu(item, $event)"
|
|
38
|
+
>
|
|
39
|
+
<template slot="chat" slot-scope="scope">
|
|
40
|
+
<slot name="chat" v-bind="scope"></slot>
|
|
41
|
+
</template>
|
|
42
|
+
<template slot-scope="scope" slot="chat-foot">
|
|
43
|
+
<slot name="chat-foot" v-bind="scope"></slot>
|
|
44
|
+
</template>
|
|
45
|
+
<template slot-scope="scope" slot="chat-append">
|
|
46
|
+
<slot name="chat-append" v-bind="scope"></slot>
|
|
47
|
+
</template>
|
|
48
|
+
</chat-panel-chat>
|
|
49
|
+
</template>
|
|
46
50
|
</template>
|
|
47
51
|
<template v-else>
|
|
48
52
|
<template v-for="day in data">
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
<template
|
|
53
57
|
v-for="item in milliseconds"
|
|
54
58
|
>
|
|
59
|
+
<slot name="chat-before" :item="item"></slot>
|
|
55
60
|
<chat-panel-chat
|
|
56
61
|
:key="'chat_' + item[keyField]"
|
|
57
62
|
:dir="handleisSenderMethod(item) ? 'right' : 'left'"
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
@view-context="handleChatsViewContext"
|
|
32
32
|
@chat-contextmenu="handleChatContext"
|
|
33
33
|
>
|
|
34
|
+
<template slot="chat-before" slot-scope="scope">
|
|
35
|
+
<slot name="chat-before" v-bind="scope"></slot>
|
|
36
|
+
</template>
|
|
34
37
|
<template slot="chat" slot-scope="scope">
|
|
35
38
|
<slot name="chat" v-bind="scope"></slot>
|
|
36
39
|
</template>
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
<template slot="filter">
|
|
15
15
|
<slot name="filter"></slot>
|
|
16
16
|
</template>
|
|
17
|
+
<template slot="chat-before" slot-scope="{ item }">
|
|
18
|
+
<div
|
|
19
|
+
v-if="handleShowTimeDivider(item)"
|
|
20
|
+
class="sdk-wechat-chat-panel__time"
|
|
21
|
+
>
|
|
22
|
+
{{ formatMessageTime(parseMessageTime(item.wechatTime)) }}
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
17
25
|
<template slot="chat" slot-scope="{ item, dir }">
|
|
18
26
|
<div class="sdk-wechat-chat-panel__item">
|
|
19
|
-
<div
|
|
20
|
-
v-if="handleShowTimeDivider(item)"
|
|
21
|
-
class="sdk-wechat-chat-panel__time"
|
|
22
|
-
>
|
|
23
|
-
{{ formatMessageTime(parseMessageTime(item.wechatTime)) }}
|
|
24
|
-
</div>
|
|
25
27
|
<chat-panel-item
|
|
26
28
|
:item="item"
|
|
27
29
|
:dir="dir"
|