im-ui-mobile 0.0.95 → 0.0.96
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 +2 -2
- package/package.json +1 -1
- package/utils/config.js +7 -8
- package/utils/emoji.js +0 -1
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
package/utils/config.js
CHANGED
|
@@ -15,11 +15,10 @@ export const configManager = {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// }
|
|
18
|
+
// 初始化自定义配置
|
|
19
|
+
if (uni && uni.upuiParams) {
|
|
20
|
+
const params = uni.upuiParams()
|
|
21
|
+
if (params.options) {
|
|
22
|
+
configManager.setConfig(params.options)
|
|
23
|
+
}
|
|
24
|
+
}
|