im-ui-mobile 0.0.78 → 0.0.79

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.
Files changed (2) hide show
  1. package/index.js +6 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -43,7 +43,7 @@ const defaultConfig = {
43
43
  emojiUrl: '',
44
44
  baseUrl: ''
45
45
  }
46
-
46
+ let emoji = null
47
47
  const install = (app, options = {}) => {
48
48
  // 合并配置
49
49
  config = { ...defaultConfig, ...options }
@@ -58,6 +58,9 @@ const install = (app, options = {}) => {
58
58
  // emoji.setEmojiUrl(config.emojiUrl);
59
59
  // }
60
60
 
61
+ emoji = new Emoji({ emojiUrl: config.emojiUrl })
62
+ emoji.setEmojiUrl(config.emojiUrl)
63
+
61
64
  // 安装插件
62
65
  app.use(UViewPlusPlugin)
63
66
 
@@ -69,14 +72,13 @@ const install = (app, options = {}) => {
69
72
 
70
73
  const getConfig = () => ({ ...config });
71
74
  const webSocket = new WebSocket();
72
- const emoji = new Emoji({ emojiUrl: config.emojiUrl })
73
- emoji.setEmojiUrl(config.emojiUrl)
75
+
74
76
 
75
77
  export {
76
78
  getConfig,
79
+ emoji,
77
80
  eventBus,
78
81
  datetime,
79
- emoji,
80
82
  dom,
81
83
  messageType,
82
84
  RecorderApp as recorderApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",