im-ui-mobile 0.0.88 → 0.0.90
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 +1 -1
- package/package.json +1 -1
- package/utils/config.js +9 -0
package/index.js
CHANGED
|
@@ -72,6 +72,7 @@ const install = (app, options = {}) => {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
nextTick(() => {
|
|
75
|
+
console.log('new an emoji instance.')
|
|
75
76
|
emoji = new Emoji();
|
|
76
77
|
})
|
|
77
78
|
|
|
@@ -80,7 +81,6 @@ const webSocket = new WebSocket();
|
|
|
80
81
|
|
|
81
82
|
export {
|
|
82
83
|
getConfig,
|
|
83
|
-
Emoji,
|
|
84
84
|
emoji,
|
|
85
85
|
eventBus,
|
|
86
86
|
datetime,
|
package/package.json
CHANGED
package/utils/config.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
let _config = {}
|
|
2
2
|
|
|
3
|
+
// 初始化自定义配置
|
|
4
|
+
if (uni && uni.upuiParams) {
|
|
5
|
+
console.log('setting im-ui-mobile')
|
|
6
|
+
let temp = uni.upuiParams()
|
|
7
|
+
if (temp.options) {
|
|
8
|
+
configManager.setConfig(temp.options)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
// 配置管理器
|
|
4
13
|
export const configManager = {
|
|
5
14
|
setConfig(config) {
|