im-ui-mobile 0.0.85 → 0.0.86

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 CHANGED
@@ -45,7 +45,7 @@ const defaultConfig = {
45
45
  baseUrl: ''
46
46
  }
47
47
 
48
- // let emoji = null
48
+ let emoji = null
49
49
 
50
50
  const install = (app, options = {}) => {
51
51
  // 合并配置
@@ -64,11 +64,16 @@ const install = (app, options = {}) => {
64
64
  components.forEach(component => {
65
65
  app.component(component.name || '', component)
66
66
  })
67
+
68
+ console.log('install', configManager.get('emojiUrl'))
67
69
  }
68
70
 
71
+ nextTick(() => {
72
+ emoji = new Emoji();
73
+ })
74
+
69
75
  const getConfig = () => ({ ...config });
70
76
  const webSocket = new WebSocket();
71
- const emoji = new Emoji();
72
77
 
73
78
  export {
74
79
  getConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "A Vue3.0 + Typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/utils/emoji.js CHANGED
@@ -25,6 +25,8 @@ class Emoji {
25
25
 
26
26
  // 正则表达式匹配表情文本
27
27
  this.regex = /\#[\u4E00-\u9FA5]{1,3}\;/gi;
28
+
29
+ console.log('new Emoji', configManager.get('emojiUrl'))
28
30
  }
29
31
 
30
32
  getEmojiUrl() {
@@ -75,6 +77,7 @@ class Emoji {
75
77
  if (idx === -1) {
76
78
  return '';
77
79
  }
80
+ console.log('textToPath',this.getEmojiUrl())
78
81
  return this.getEmojiUrl() + idx + ".gif";
79
82
  }
80
83