im-ui-mobile 0.0.31 → 0.0.33
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/index.js +29 -5
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
- package/utils/emoji.js +7 -2
package/index.js
CHANGED
|
@@ -13,11 +13,35 @@ const install = (app) => {
|
|
|
13
13
|
})
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
import eventBus from "./utils/eventBus.js";
|
|
17
|
+
import * as auth from "./utils/auth.js";
|
|
18
|
+
import datetime from "./utils/datetime.js";
|
|
19
|
+
import { emoji, Emoji } from "./utils/emoji.js";
|
|
20
|
+
import * as dom from "./utils/dom.js";
|
|
21
|
+
import messageType from "./utils/messageType.js";
|
|
22
|
+
import * as recorderApp from "./utils/recorderApp.js";
|
|
23
|
+
import * as recorderH5 from "./utils/recorderH5.js";
|
|
24
|
+
import Requester from "./utils/requester.js";
|
|
25
|
+
import * as url from "./utils/url.js";
|
|
26
|
+
import { useDynamicRefs } from "./utils/useDynamicRefs.js";
|
|
27
|
+
import { webSocketManager, WebSocketManager } from "./utils/websocket.js";
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
eventBus,
|
|
32
|
+
datetime,
|
|
33
|
+
emoji,
|
|
34
|
+
Emoji,
|
|
35
|
+
dom,
|
|
36
|
+
messageType,
|
|
37
|
+
recorderApp,
|
|
38
|
+
recorderH5,
|
|
39
|
+
Requester,
|
|
40
|
+
url,
|
|
41
|
+
useDynamicRefs,
|
|
42
|
+
webSocketManager,
|
|
43
|
+
WebSocketManager
|
|
44
|
+
}
|
|
21
45
|
|
|
22
46
|
export default {
|
|
23
47
|
install
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as dom from "./utils/dom";
|
|
|
10
10
|
import messageType from "./utils/messageType";
|
|
11
11
|
import * as recorderApp from "./utils/recorderApp";
|
|
12
12
|
import * as recorderH5 from "./utils/recorderH5";
|
|
13
|
-
import Requester from "./utils/
|
|
13
|
+
import Requester from "./utils/requester";
|
|
14
14
|
import * as url from "./utils/url";
|
|
15
15
|
import { useDynamicRefs } from "./utils/useDynamicRefs";
|
|
16
16
|
import webSocketManager from "./utils/websocket";
|
package/utils/emoji.js
CHANGED
|
@@ -165,8 +165,13 @@ class Emoji {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
|
|
169
|
+
// 创建单例实例
|
|
170
|
+
const emoji = new Emoji()
|
|
171
|
+
|
|
172
|
+
// 导出单例和类
|
|
173
|
+
export { emoji, Emoji }
|
|
174
|
+
export default emoji
|
|
170
175
|
|
|
171
176
|
// 为了方便使用,也可以导出一个默认实例(需要先配置emojiUrl)
|
|
172
177
|
// export const emoji = new Emoji();
|