im-ui-mobile 0.0.53 → 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 -1
- package/components/im-chat-message-item/im-chat-message-item.vue +1 -1
- 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,7 +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
|
-
import { MESSAGE_TYPE } from '../../
|
|
30
|
+
import { MESSAGE_TYPE } from '../../index'
|
|
31
31
|
|
|
32
32
|
interface Props {
|
|
33
33
|
chat?: any;
|
|
@@ -91,7 +91,7 @@
|
|
|
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
|
|
94
|
+
import { MESSAGE_TYPE, MESSAGE_STATUS } from '../../index'
|
|
95
95
|
import { datetime, dom, url,messageType, emoji } from '../../index'
|
|
96
96
|
|
|
97
97
|
interface Props {
|
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