@mpxjs/core 2.6.103 → 2.7.0-alpha.0

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": "@mpxjs/core",
3
- "version": "2.6.103",
3
+ "version": "2.7.0-alpha.0",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -40,5 +40,5 @@
40
40
  "url": "https://github.com/didi/mpx/issues"
41
41
  },
42
42
  "sideEffects": false,
43
- "gitHead": "76ed577de755075a982a98edb3858ae626bfcb44"
43
+ "gitHead": "43fe072e744b33b841b8e396677711e414bcca8b"
44
44
  }
@@ -196,13 +196,7 @@ export default class MpxScroll {
196
196
  )
197
197
  }
198
198
 
199
- pageScrollTo (
200
- {
201
- scrollTop,
202
- selector,
203
- duration = 300
204
- }
205
- ) {
199
+ pageScrollTo ({ scrollTop, selector, duration = 300 }) {
206
200
  let _scrollTop
207
201
 
208
202
  if (isDef(scrollTop)) {
@@ -60,10 +60,7 @@ function flushQueue () {
60
60
  }
61
61
  }
62
62
  }
63
- // 如果已经销毁,就不再执行
64
- if (!watcher.destroyed) {
65
- watcher.run()
66
- }
63
+ watcher.run()
67
64
  }
68
65
  resetQueue()
69
66
  }
@@ -1,6 +1,6 @@
1
- import mpx from '../index'
1
+ const mpx = require('../index').default
2
2
 
3
- export default (type) => (...args) => {
3
+ module.exports = (type) => (...args) => {
4
4
  if (type === 'Behavior') {
5
5
  if (args[0]) {
6
6
  Object.defineProperty(args[0], '__mpx_behaviors_to_mixins__', {
@@ -1,3 +1 @@
1
- import mpx from '../index'
2
-
3
- export default mpx
1
+ module.exports = require('../index').default