im-ui-mobile 0.0.85 → 0.0.87

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
@@ -1,3 +1,4 @@
1
+ import { nextTick } from 'vue';
1
2
  import { UViewPlusPlugin } from './plugins/uview-plus.js'
2
3
  import eventBus from "./utils/eventBus.js";
3
4
  import datetime from "./utils/datetime.js";
@@ -45,7 +46,7 @@ const defaultConfig = {
45
46
  baseUrl: ''
46
47
  }
47
48
 
48
- // let emoji = null
49
+ let emoji = null
49
50
 
50
51
  const install = (app, options = {}) => {
51
52
  // 合并配置
@@ -64,11 +65,16 @@ const install = (app, options = {}) => {
64
65
  components.forEach(component => {
65
66
  app.component(component.name || '', component)
66
67
  })
68
+
69
+ console.log('install', configManager.get('emojiUrl'))
67
70
  }
68
71
 
72
+ nextTick(() => {
73
+ emoji = new Emoji();
74
+ })
75
+
69
76
  const getConfig = () => ({ ...config });
70
77
  const webSocket = new WebSocket();
71
- const emoji = new Emoji();
72
78
 
73
79
  export {
74
80
  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.87",
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