im-ui-mobile 0.0.95 → 0.0.98

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.
@@ -124,8 +124,9 @@ const onEndRecord = () => {
124
124
  rc.upload().then((data: any) => {
125
125
  emit("send", data);
126
126
  }).catch((e: any) => {
127
+ console.error(e)
127
128
  uni.showToast({
128
- title: e,
129
+ title: '录音上传失败',
129
130
  icon: 'none'
130
131
  });
131
132
  });
package/index.js CHANGED
@@ -42,7 +42,7 @@ let config = {}
42
42
  let emoji = null
43
43
 
44
44
  const install = (app, upuiParams = '') => {
45
- // 初始化
45
+ // 初始化自定义配置
46
46
  if (upuiParams) {
47
47
  uni.upuiParams = upuiParams
48
48
  const params = upuiParams()
@@ -61,8 +61,8 @@ const install = (app, upuiParams = '') => {
61
61
  })
62
62
  }
63
63
 
64
+ // 使用自定义配置的对象实例化
64
65
  nextTick(() => {
65
- console.log('new an emoji instance.')
66
66
  emoji = new Emoji();
67
67
  })
68
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.95",
3
+ "version": "0.0.98",
4
4
  "description": "A Vue3.0 + Typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/utils/config.js CHANGED
@@ -15,11 +15,10 @@ export const configManager = {
15
15
  }
16
16
  }
17
17
 
18
- // // 初始化自定义配置
19
- // if (uni && uni.upuiParams) {
20
- // const params = uni.upuiParams()
21
- // console.log('setting im-ui-mobile', params.options)
22
- // if (params.options) {
23
- // configManager.setConfig(params.options)
24
- // }
25
- // }
18
+ // 初始化自定义配置
19
+ if (uni && uni.upuiParams) {
20
+ const params = uni.upuiParams()
21
+ if (params.options) {
22
+ configManager.setConfig(params.options)
23
+ }
24
+ }
package/utils/emoji.js CHANGED
@@ -71,7 +71,6 @@ class Emoji {
71
71
  if (idx === -1) {
72
72
  return '';
73
73
  }
74
- console.log('textToPath',this.emojiUrl)
75
74
  return this.emojiUrl + idx + ".gif";
76
75
  }
77
76