im-ui-mobile 0.0.52 → 0.0.54
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/im-chat-item/im-chat-item.vue +1 -4
- package/components/im-chat-message-item/im-chat-message-item.vue +2 -6
- package/components/im-chat-record/im-chat-record.vue +1 -2
- package/index.js +10 -3
- package/libs/index.ts +1 -1
- package/package.json +1 -1
- package/plugins/pinia.js +1 -1
- package/types/libs/index.d.ts +1 -1
- package/types/utils/requester.d.ts +0 -1
|
@@ -27,10 +27,7 @@
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
28
|
import ImHeadImage from '../im-head-image/im-head-image.vue'
|
|
29
29
|
import { datetime, dom, messageType, emoji } from '../../index'
|
|
30
|
-
|
|
31
|
-
// import messageType from '../../types/utils/messageType'
|
|
32
|
-
import { MESSAGE_TYPE } from '../../types'
|
|
33
|
-
// import emoji from '../../types/utils/emoji';
|
|
30
|
+
import { MESSAGE_TYPE } from '../../index'
|
|
34
31
|
|
|
35
32
|
interface Props {
|
|
36
33
|
chat?: any;
|
|
@@ -91,12 +91,8 @@
|
|
|
91
91
|
import ImHeadImage from '../im-head-image/im-head-image.vue'
|
|
92
92
|
import ImChatGroupReaded from '../im-chat-group-readed/im-chat-group-readed.vue'
|
|
93
93
|
import ImLongPressMenu from '../im-long-press-menu/im-long-press-menu.vue'
|
|
94
|
-
import { MESSAGE_TYPE, MESSAGE_STATUS
|
|
95
|
-
import emoji from '../../
|
|
96
|
-
import url from '../../types/utils/url';
|
|
97
|
-
import datetime from '../../types/utils/datetime';
|
|
98
|
-
import messageType from '../../types/utils/messageType';
|
|
99
|
-
import dom from '../../types/utils/dom';
|
|
94
|
+
import { MESSAGE_TYPE, MESSAGE_STATUS } from '../../index'
|
|
95
|
+
import { datetime, dom, url,messageType, emoji } from '../../index'
|
|
100
96
|
|
|
101
97
|
interface Props {
|
|
102
98
|
avatar?: string;
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script setup lang="ts">
|
|
29
|
-
import recorderApp from '../../
|
|
30
|
-
import recorderH5 from '../../types/utils/recorderH5';
|
|
29
|
+
import { recorderApp, recorderH5 } from '../../index'
|
|
31
30
|
|
|
32
31
|
const recording = ref(false);
|
|
33
32
|
const moveToCancel = ref(false);
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PiniaPlugin } from './plugins/pinia.js'
|
|
2
2
|
import { UViewPlusPlugin } from './plugins/uview-plus.js'
|
|
3
3
|
|
|
4
4
|
const importFn = import.meta.glob('./components/im-*/im-*.vue', { eager: true })
|
|
@@ -27,7 +27,7 @@ for (const key in importFn) {
|
|
|
27
27
|
const install = (app, options = {}) => {
|
|
28
28
|
// 安装pinia插件
|
|
29
29
|
if (options.usePinia !== false) {
|
|
30
|
-
app.use(
|
|
30
|
+
app.use(PiniaPlugin, options.piniaOptions)
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// 安装 uview-plus
|
|
@@ -53,6 +53,7 @@ import Requester from "./utils/requester.js";
|
|
|
53
53
|
import * as url from "./utils/url.js";
|
|
54
54
|
import { useDynamicRefs } from "./utils/useDynamicRefs.js";
|
|
55
55
|
import { webSocketManager, WebSocketManager } from "./utils/websocket.js";
|
|
56
|
+
import { MESSAGE_TYPE, RTC_STATE, TERMINAL_TYPE, MESSAGE_STATUS } from "./utils/enums.js";
|
|
56
57
|
|
|
57
58
|
export {
|
|
58
59
|
eventBus,
|
|
@@ -67,7 +68,13 @@ export {
|
|
|
67
68
|
url,
|
|
68
69
|
useDynamicRefs,
|
|
69
70
|
webSocketManager,
|
|
70
|
-
WebSocketManager
|
|
71
|
+
WebSocketManager,
|
|
72
|
+
|
|
73
|
+
// Enums
|
|
74
|
+
MESSAGE_TYPE,
|
|
75
|
+
RTC_STATE,
|
|
76
|
+
TERMINAL_TYPE,
|
|
77
|
+
MESSAGE_STATUS
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
export default {
|
package/libs/index.ts
CHANGED
package/package.json
CHANGED
package/plugins/pinia.js
CHANGED
package/types/libs/index.d.ts
CHANGED