@mpxjs/core 2.7.1-beta.1 → 2.7.11

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.
@@ -8,4 +8,4 @@ declare let __mpx_env__: string
8
8
  declare module '*?resolve' {
9
9
  const resourcePath: string
10
10
  export default resourcePath
11
- }
11
+ }
package/@types/index.d.ts CHANGED
@@ -7,7 +7,13 @@
7
7
  /// <reference path="./mpx-store.d.ts" />
8
8
  /// <reference path="./global.d.ts" />
9
9
  /// <reference path="./node.d.ts" />
10
+ import VueI18n from 'vue-i18n'
10
11
 
12
+ declare module 'vue-i18n' {
13
+ export default interface VueI18n {
14
+ mergeMessages(messages: {[index: string]:VueI18n.LocaleMessageObject}): void;
15
+ }
16
+ }
11
17
  // declare Store types
12
18
  type StoreOpt<S, G, M, A, D extends MpxStore.Deps> = MpxStore.StoreOpt<S, G, M, A, D>
13
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.7.1-beta.1",
3
+ "version": "2.7.11",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/didi/mpx/issues"
42
42
  },
43
43
  "sideEffects": false,
44
- "gitHead": "0ea8bcfff2ccfc433cb2ce43275b7e2af2bc8a61"
44
+ "gitHead": "484feb97fc5741ce3984fd235833fe0ab83593b9"
45
45
  }
@@ -91,7 +91,7 @@ export default function getRefsMixin () {
91
91
  }
92
92
  const component = e.detail.component
93
93
  const destroyed = e.detail.destroyed
94
- const className = component.props.mpxClass || component.className
94
+ const className = component.props.className || component.className
95
95
  const identifiers = className ? className.trim().split(/\s+/).map(item => {
96
96
  return `.${item}`
97
97
  }) : []