mali-applet-ui 1.1.21 → 1.1.22

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/i18n/i18n.js CHANGED
@@ -31,6 +31,7 @@ const MaliI18n = {
31
31
  },
32
32
  hasKey (key) {
33
33
  if (key && key.indexOf && key.indexOf('.') > -1) {
34
+ return XEUtils.has(localeMessage[currLanguage], key)
34
35
  }
35
36
  return false
36
37
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",
@@ -33,7 +33,7 @@
33
33
  "run-before": "node script/run-before.js"
34
34
  },
35
35
  "dependencies": {
36
- "xe-utils": "^3.5.10"
36
+ "xe-utils": "^3.5.11"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@dcloudio/uni-app-plus": "^2.0.1-36420220922003",
@@ -2,6 +2,7 @@ export interface MlI18nCore {
2
2
  getLanguage(): string
3
3
  setLanguage(language: string): void
4
4
  setLocaleMessage(language: string, message: Record<string, any>): void
5
+ hasKey(key: string): boolean
5
6
  t(key: string, args: any): any
6
7
  }
7
8
 
package/types/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { MaliI18n, MlI18nCore } from './i18n'
10
10
  export const MaliUI: {
11
11
  version: string
12
12
  // config(options: ConfigOptions): any
13
- // install(app: Vue): void
13
+ install(app: Vue): void
14
14
  MaliUtils: MlUtilsCore
15
15
  MaliToast: typeof MaliToast
16
16
  MaliModal: typeof MaliModal