Skip to content

Commit

Permalink
feat: added runtime version options
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhandsome authored and Gcaufy committed May 25, 2019
1 parent 398b75f commit a8f4228
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/weapp/wepy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Object.assign(wepy, {
mixin,

nextTick: renderNextTick,
version: '2.0.0-alpha',
version: __VERSION__,
config: {},
});

Expand Down
1 change: 1 addition & 0 deletions packages/use-promisify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const makeObj = (arr) => {
* wepy.login().then().catch()
*/
export default {
version: __VERSION__,
install (wepy, removeFromPromisify) {
let _wx = (wepy.wx = wepy.wx || Object.assign({}, wx));

Expand Down
4 changes: 3 additions & 1 deletion packages/x/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Store, install, version, mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from 'vuex';
import { Store, install, mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from 'vuex';

const version = __VERSION__

function wepyInstall (wepy) {
install(wepy);
Expand Down

0 comments on commit a8f4228

Please sign in to comment.