mali-applet-ui 0.0.76 → 0.0.77

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",
@@ -0,0 +1,16 @@
1
+ /**
2
+ * 获取 AppId
3
+ */
4
+ export function getAppId () {
5
+ let appId = null
6
+
7
+ // #ifdef MP-WEIXIN
8
+ appId = uni.getAccountInfoSync().miniProgram.appId
9
+ // #endif
10
+
11
+ // #ifdef MP-ALIPAY
12
+ appId = dd.getAppIdSync().appId
13
+ // #endif
14
+
15
+ return appId
16
+ }
package/utils/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './applet'
1
2
  export * from './date'
2
3
  export * from './number'
3
4
  export * from './file'