From 2e8d569234575ae6e5a684d77aabbdb2440035df Mon Sep 17 00:00:00 2001 From: ykforerlang <1527997464@qq.com> Date: Mon, 8 Jul 2019 15:36:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(alita=20wx-react=20wx-router=20wx-react-re?= =?UTF-8?q?dux):=20=E7=A7=BB=E9=99=A4beta=EF=BC=8C=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=AD=A3=E5=BC=8Fnpm=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/HelloWorldExpoWP/package.json | 2 +- examples/HelloWorldExpoWP/project.config.json | 2 +- examples/HelloWorldExpoWP/src/index.js | 2 +- examples/HelloWorldRNWP/package.json | 6 +- examples/HelloWorldRNWP/project.config.json | 2 +- examples/HelloWorldRNWP/src/index.js | 2 +- examples/ReactReposWP/RNApp.js | 2 +- examples/ReactReposWP/package.json | 6 +- examples/ReactReposWP/project.config.json | 2 +- examples/RoomMobxWP/RNApp.js | 2 +- examples/RoomMobxWP/package.json | 2 +- examples/RoomMobxWP/project.config.json | 2 +- .../RoomMobxWP/src/components/Room.comp.js | 103 +++---- .../src/components/TotalInfo.comp.js | 286 +++++++++--------- .../RoomMobxWP/src/components/index.comp.js | 152 +++++----- examples/RoomMobxWP/src/store/Room.js | 186 ++++++------ examples/SubpackagesDemo/package.json | 6 +- examples/TodoWP/RNApp.js | 2 +- examples/TodoWP/package.json | 8 +- examples/TodoWP/project.config.json | 2 +- package.json | 2 +- packages/wx-mobx-react/package.json | 2 +- packages/wx-react-redux/package.json | 2 +- packages/wx-react/package.json | 2 +- packages/wx-router/package.json | 2 +- 25 files changed, 397 insertions(+), 390 deletions(-) diff --git a/examples/HelloWorldExpoWP/package.json b/examples/HelloWorldExpoWP/package.json index fa3f4b8..3986391 100644 --- a/examples/HelloWorldExpoWP/package.json +++ b/examples/HelloWorldExpoWP/package.json @@ -9,4 +9,4 @@ "@areslabs/wx-react": "^1.0.0", "@areslabs/wx-react-native": "^1.0.0" } -} \ No newline at end of file +} diff --git a/examples/HelloWorldExpoWP/project.config.json b/examples/HelloWorldExpoWP/project.config.json index 8d57045..28634e1 100644 --- a/examples/HelloWorldExpoWP/project.config.json +++ b/examples/HelloWorldExpoWP/project.config.json @@ -14,7 +14,7 @@ "compileType": "miniprogram", "libVersion": "2.2.2", "appid": "wx67a52214b440b81b", - "projectname": "tmptmp", + "projectname": "HelloWorldExpoWP", "isGameTourist": false, "condition": { "search": { diff --git a/examples/HelloWorldExpoWP/src/index.js b/examples/HelloWorldExpoWP/src/index.js index 8f4d878..22d6f83 100644 --- a/examples/HelloWorldExpoWP/src/index.js +++ b/examples/HelloWorldExpoWP/src/index.js @@ -48,7 +48,7 @@ const rootContext = React.getRootContext(); export default { childContext: rootContext }; -wx._historyConfig = Object.assign({}, wx._historyConfig || {}, { +wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, { "A": "/src/a/index", "C": "/src/c/index", "E": "/src/e/index", diff --git a/examples/HelloWorldRNWP/package.json b/examples/HelloWorldRNWP/package.json index e2e1a28..b859d97 100644 --- a/examples/HelloWorldRNWP/package.json +++ b/examples/HelloWorldRNWP/package.json @@ -4,10 +4,10 @@ "dependencies": { "@areslabs/hello-wx": "^1.0.2", "@areslabs/hi-wx": "^1.0.2", + "@areslabs/wx-router": "^1.0.0", "@areslabs/wx-animated": "^1.0.12", "@areslabs/wx-prop-types": "^1.0.0", - "@areslabs/wx-react": "^1.0.23-beta.1", - "@areslabs/wx-react-native": "^1.0.0", - "@areslabs/wx-router": "^1.0.2-beta.1" + "@areslabs/wx-react": "^1.0.0", + "@areslabs/wx-react-native": "^1.0.0" } } diff --git a/examples/HelloWorldRNWP/project.config.json b/examples/HelloWorldRNWP/project.config.json index 8d57045..e110536 100644 --- a/examples/HelloWorldRNWP/project.config.json +++ b/examples/HelloWorldRNWP/project.config.json @@ -14,7 +14,7 @@ "compileType": "miniprogram", "libVersion": "2.2.2", "appid": "wx67a52214b440b81b", - "projectname": "tmptmp", + "projectname": "HelloWorldRNWP", "isGameTourist": false, "condition": { "search": { diff --git a/examples/HelloWorldRNWP/src/index.js b/examples/HelloWorldRNWP/src/index.js index c68591a..8d1409a 100644 --- a/examples/HelloWorldRNWP/src/index.js +++ b/examples/HelloWorldRNWP/src/index.js @@ -48,7 +48,7 @@ const rootContext = React.getRootContext(); export default { childContext: rootContext }; -wx._historyConfig = Object.assign({}, wx._historyConfig || {}, { +wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, { "HelloWorldRNA": "/src/a/index", "HelloWorldRNC": "/src/c/index", "HelloWorldRNE": "/src/e/index", diff --git a/examples/ReactReposWP/RNApp.js b/examples/ReactReposWP/RNApp.js index 062becd..9abd947 100644 --- a/examples/ReactReposWP/RNApp.js +++ b/examples/ReactReposWP/RNApp.js @@ -19,7 +19,7 @@ const rootContext = React.getRootContext(); export default { childContext: rootContext }; -wx._historyConfig = Object.assign({}, wx._historyConfig || {}, { +wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, { "ReactReposlist": "/src/components/list/index", "ReactReposdetail": "/src/components/detail/index" }); \ No newline at end of file diff --git a/examples/ReactReposWP/package.json b/examples/ReactReposWP/package.json index 9cec378..a851a61 100644 --- a/examples/ReactReposWP/package.json +++ b/examples/ReactReposWP/package.json @@ -2,9 +2,9 @@ "name": "ReactRepos", "version": "0.0.1", "dependencies": { + "@areslabs/wx-router": "^1.0.0", "@areslabs/wx-animated": "^1.0.3", - "@areslabs/wx-react": "^1.0.23-beta.1", - "@areslabs/wx-react-native": "^1.0.0", - "@areslabs/wx-router": "^1.0.2-beta.1" + "@areslabs/wx-react": "^1.0.0", + "@areslabs/wx-react-native": "^1.0.0" } } diff --git a/examples/ReactReposWP/project.config.json b/examples/ReactReposWP/project.config.json index 8d57045..7c9f346 100644 --- a/examples/ReactReposWP/project.config.json +++ b/examples/ReactReposWP/project.config.json @@ -14,7 +14,7 @@ "compileType": "miniprogram", "libVersion": "2.2.2", "appid": "wx67a52214b440b81b", - "projectname": "tmptmp", + "projectname": "ReactReposWP", "isGameTourist": false, "condition": { "search": { diff --git a/examples/RoomMobxWP/RNApp.js b/examples/RoomMobxWP/RNApp.js index 6999aa0..99eb535 100644 --- a/examples/RoomMobxWP/RNApp.js +++ b/examples/RoomMobxWP/RNApp.js @@ -23,6 +23,6 @@ const rootContext = React.getRootContext(); export default { childContext: rootContext }; -wx._historyConfig = Object.assign({}, wx._historyConfig || {}, { +wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, { "RoomMobxinit": "/src/components/index" }); \ No newline at end of file diff --git a/examples/RoomMobxWP/package.json b/examples/RoomMobxWP/package.json index 2ac06e3..2699848 100644 --- a/examples/RoomMobxWP/package.json +++ b/examples/RoomMobxWP/package.json @@ -8,4 +8,4 @@ "@areslabs/wx-react": "^1.0.0", "@areslabs/wx-react-native": "^1.0.0" } -} \ No newline at end of file +} diff --git a/examples/RoomMobxWP/project.config.json b/examples/RoomMobxWP/project.config.json index 8d57045..d680e16 100644 --- a/examples/RoomMobxWP/project.config.json +++ b/examples/RoomMobxWP/project.config.json @@ -14,7 +14,7 @@ "compileType": "miniprogram", "libVersion": "2.2.2", "appid": "wx67a52214b440b81b", - "projectname": "tmptmp", + "projectname": "RoomMobxWP", "isGameTourist": false, "condition": { "search": { diff --git a/examples/RoomMobxWP/src/components/Room.comp.js b/examples/RoomMobxWP/src/components/Room.comp.js index 0ba51d8..838424f 100644 --- a/examples/RoomMobxWP/src/components/Room.comp.js +++ b/examples/RoomMobxWP/src/components/Room.comp.js @@ -6,62 +6,63 @@ import { observer } from "@areslabs/wx-mobx-react" let Room = observer( - (_class = ((_temp = class Room extends Component { - constructor(...args) { - super(...args) - this.__stateless__ = true - } + (_class = + ((_temp = class Room extends Component { + constructor(...args) { + super(...args) + this.__stateless__ = true + } - render() { - const { style, data, autoFocus } = this.props - console.log(data.label, " update!") - return h( - "block", - { - style: style, - original: "View", - diuu: "DIUU00001", - tempName: "ITNP00005" - }, - h( - "view", + render() { + const { style, data, autoFocus } = this.props + console.log(data.label, " update!") + return h( + "block", { - original: "OuterText", - diuu: "DIUU00002" + style: style, + original: "View", + diuu: "DIUU00001", + tempName: "ITNP00005" }, - h("template", { - datakey: "CTDK00002", - tempVnode: data.label, - "wx:if": "{{CTDK00002}}", - is: "CTNP00001", - data: "{{...CTDK00002}}" + h( + "view", + { + original: "OuterText", + diuu: "DIUU00002" + }, + h("template", { + datakey: "CTDK00002", + tempVnode: data.label, + "wx:if": "{{CTDK00002}}", + is: "CTNP00001", + data: "{{...CTDK00002}}" + }), + "\uFF1A" + ), + h(WXTextInput, { + autoFocus: autoFocus, + value: data.price + "", + style: { + borderBottomWidth: 2, + width: 40 + }, + onChangeText: price => { + data.price = Number(price) + }, + diuu: "DIUU00003" }), - "\uFF1A" - ), - h(WXTextInput, { - autoFocus: autoFocus, - value: data.price + "", - style: { - borderBottomWidth: 2, - width: 40 - }, - onChangeText: price => { - data.price = Number(price) - }, - diuu: "DIUU00003" - }), - h( - "view", - { - original: "OuterText", - diuu: "DIUU00004" - }, - " \u5143" + h( + "view", + { + original: "OuterText", + diuu: "DIUU00004" + }, + " \u5143" + ) ) - ) - } - }), - _temp)) + } + }), + _temp)) ) || _class export default Room diff --git a/examples/RoomMobxWP/src/components/TotalInfo.comp.js b/examples/RoomMobxWP/src/components/TotalInfo.comp.js index 7536811..fdbc2dc 100644 --- a/examples/RoomMobxWP/src/components/TotalInfo.comp.js +++ b/examples/RoomMobxWP/src/components/TotalInfo.comp.js @@ -3,147 +3,149 @@ var _dec, _class, _temp import React, { Component, h } from "@areslabs/wx-react" import { View, Text } from "@areslabs/wx-react-native" import { inject, observer } from "@areslabs/wx-mobx-react" -let TotalInfo = ((_dec = inject(allStores => { - return Object.assign({}, allStores.room, { - total: allStores.room.total - }) -})), -_dec( - (_class = - observer( - (_class = ((_temp = class TotalInfo extends Component { - constructor(...args) { - super(...args) - this.__stateless__ = true - } +let TotalInfo = + ((_dec = inject(allStores => { + return Object.assign({}, allStores.room, { + total: allStores.room.total + }) + })), + _dec( + (_class = + observer( + (_class = + ((_temp = class TotalInfo extends Component { + constructor(...args) { + super(...args) + this.__stateless__ = true + } - render() { - const { - bedRoom1, - bedRoom2, - kitchen, - bookroom, - total - } = this.props - return h( - "block", - { - original: "View", - diuu: "DIUU00001", - tempName: "ITNP00007" - }, - h( - "view", - { - original: "OuterText", - diuu: "DIUU00002" - }, - h("template", { - datakey: "CTDK00002", - tempVnode: bedRoom1.label, - "wx:if": "{{CTDK00002}}", - is: "CTNP00001", - data: "{{...CTDK00002}}" - }), - "\uFF1A", - h("template", { - datakey: "CTDK00003", - tempVnode: bedRoom1.price, - "wx:if": "{{CTDK00003}}", - is: "CTNP00001", - data: "{{...CTDK00003}}" - }), - "\xA5" - ), - h( - "view", - { - original: "OuterText", - diuu: "DIUU00003" - }, - h("template", { - datakey: "CTDK00005", - tempVnode: bedRoom2.label, - "wx:if": "{{CTDK00005}}", - is: "CTNP00004", - data: "{{...CTDK00005}}" - }), - "\uFF1A", - h("template", { - datakey: "CTDK00006", - tempVnode: bedRoom2.price, - "wx:if": "{{CTDK00006}}", - is: "CTNP00004", - data: "{{...CTDK00006}}" - }), - "\xA5" - ), - h( - "view", - { - original: "OuterText", - diuu: "DIUU00004" - }, - h("template", { - datakey: "CTDK00008", - tempVnode: kitchen.label, - "wx:if": "{{CTDK00008}}", - is: "CTNP00007", - data: "{{...CTDK00008}}" - }), - "\uFF1A", - h("template", { - datakey: "CTDK00009", - tempVnode: kitchen.price, - "wx:if": "{{CTDK00009}}", - is: "CTNP00007", - data: "{{...CTDK00009}}" - }), - "\xA5" - ), - h( - "view", - { - original: "OuterText", - diuu: "DIUU00005" - }, - h("template", { - datakey: "CTDK00011", - tempVnode: bookroom.label, - "wx:if": "{{CTDK00011}}", - is: "CTNP00010", - data: "{{...CTDK00011}}" - }), - "\uFF1A", - h("template", { - datakey: "CTDK00012", - tempVnode: bookroom.price, - "wx:if": "{{CTDK00012}}", - is: "CTNP00010", - data: "{{...CTDK00012}}" - }), - "\xA5" - ), - h( - "view", - { - original: "OuterText", - diuu: "DIUU00006" - }, - "\u603B\u4EF7\uFF1A", - h("template", { - datakey: "CTDK00014", - tempVnode: total, - "wx:if": "{{CTDK00014}}", - is: "CTNP00013", - data: "{{...CTDK00014}}" - }), - "\xA5" - ) - ) - } - }), - _temp)) - ) || _class) -) || _class) + render() { + const { + bedRoom1, + bedRoom2, + kitchen, + bookroom, + total + } = this.props + return h( + "block", + { + original: "View", + diuu: "DIUU00001", + tempName: "ITNP00007" + }, + h( + "view", + { + original: "OuterText", + diuu: "DIUU00002" + }, + h("template", { + datakey: "CTDK00002", + tempVnode: bedRoom1.label, + "wx:if": "{{CTDK00002}}", + is: "CTNP00001", + data: "{{...CTDK00002}}" + }), + "\uFF1A", + h("template", { + datakey: "CTDK00003", + tempVnode: bedRoom1.price, + "wx:if": "{{CTDK00003}}", + is: "CTNP00001", + data: "{{...CTDK00003}}" + }), + "\xA5" + ), + h( + "view", + { + original: "OuterText", + diuu: "DIUU00003" + }, + h("template", { + datakey: "CTDK00005", + tempVnode: bedRoom2.label, + "wx:if": "{{CTDK00005}}", + is: "CTNP00004", + data: "{{...CTDK00005}}" + }), + "\uFF1A", + h("template", { + datakey: "CTDK00006", + tempVnode: bedRoom2.price, + "wx:if": "{{CTDK00006}}", + is: "CTNP00004", + data: "{{...CTDK00006}}" + }), + "\xA5" + ), + h( + "view", + { + original: "OuterText", + diuu: "DIUU00004" + }, + h("template", { + datakey: "CTDK00008", + tempVnode: kitchen.label, + "wx:if": "{{CTDK00008}}", + is: "CTNP00007", + data: "{{...CTDK00008}}" + }), + "\uFF1A", + h("template", { + datakey: "CTDK00009", + tempVnode: kitchen.price, + "wx:if": "{{CTDK00009}}", + is: "CTNP00007", + data: "{{...CTDK00009}}" + }), + "\xA5" + ), + h( + "view", + { + original: "OuterText", + diuu: "DIUU00005" + }, + h("template", { + datakey: "CTDK00011", + tempVnode: bookroom.label, + "wx:if": "{{CTDK00011}}", + is: "CTNP00010", + data: "{{...CTDK00011}}" + }), + "\uFF1A", + h("template", { + datakey: "CTDK00012", + tempVnode: bookroom.price, + "wx:if": "{{CTDK00012}}", + is: "CTNP00010", + data: "{{...CTDK00012}}" + }), + "\xA5" + ), + h( + "view", + { + original: "OuterText", + diuu: "DIUU00006" + }, + "\u603B\u4EF7\uFF1A", + h("template", { + datakey: "CTDK00014", + tempVnode: total, + "wx:if": "{{CTDK00014}}", + is: "CTNP00013", + data: "{{...CTDK00014}}" + }), + "\xA5" + ) + ) + } + }), + _temp)) + ) || _class) + ) || _class) export { TotalInfo as default } diff --git a/examples/RoomMobxWP/src/components/index.comp.js b/examples/RoomMobxWP/src/components/index.comp.js index ce32b75..5850038 100644 --- a/examples/RoomMobxWP/src/components/index.comp.js +++ b/examples/RoomMobxWP/src/components/index.comp.js @@ -5,82 +5,84 @@ import { View, StyleSheet, Text, WXButton } from "@areslabs/wx-react-native" import { inject } from "@areslabs/wx-mobx-react" import TotalInfo from "./TotalInfo.comp" import Room from "./Room.comp" -let Index = ((_dec = inject("room")), -_dec( - (_class = ((_temp = class Index extends Component { - constructor(...args) { - super(...args) - this.__stateless__ = true - } +let Index = + ((_dec = inject("room")), + _dec( + (_class = + ((_temp = class Index extends Component { + constructor(...args) { + super(...args) + this.__stateless__ = true + } - render() { - const { - bedRoom1, - bedRoom2, - kitchen, - bookroom, - reset - } = this.props.room - return h( - "view", - { - style: styles.container, - original: "View", - diuu: "DIUU00001", - tempName: "ITNP00010" - }, - h( - "view", - { - original: "OuterText", - diuu: "DIUU00002" - }, - "\u4E00\u4E2A\u623F\u5B50" - ), - h( - "view", - { - style: styles.room, - original: "View", - diuu: "DIUU00003" - }, - h(Room, { - autoFocus: true, - style: styles.bedRoom1, - data: bedRoom1, - diuu: "DIUU00004" - }), - h(Room, { - style: styles.bedRoom2, - data: bedRoom2, - diuu: "DIUU00005" - }), - h(Room, { - style: styles.kitchen, - data: kitchen, - diuu: "DIUU00006" - }), - h(Room, { - style: styles.bookroom, - data: bookroom, - diuu: "DIUU00007" - }) - ), - h(TotalInfo, { - diuu: "DIUU00008" - }), - h(WXButton, { - title: "\u91CD\u7F6E", - onPress: () => { - this.props.room.reset() - }, - diuu: "DIUU00009" - }) - ) - } - }), - _temp)) -) || _class) + render() { + const { + bedRoom1, + bedRoom2, + kitchen, + bookroom, + reset + } = this.props.room + return h( + "view", + { + style: styles.container, + original: "View", + diuu: "DIUU00001", + tempName: "ITNP00010" + }, + h( + "view", + { + original: "OuterText", + diuu: "DIUU00002" + }, + "\u4E00\u4E2A\u623F\u5B50" + ), + h( + "view", + { + style: styles.room, + original: "View", + diuu: "DIUU00003" + }, + h(Room, { + autoFocus: true, + style: styles.bedRoom1, + data: bedRoom1, + diuu: "DIUU00004" + }), + h(Room, { + style: styles.bedRoom2, + data: bedRoom2, + diuu: "DIUU00005" + }), + h(Room, { + style: styles.kitchen, + data: kitchen, + diuu: "DIUU00006" + }), + h(Room, { + style: styles.bookroom, + data: bookroom, + diuu: "DIUU00007" + }) + ), + h(TotalInfo, { + diuu: "DIUU00008" + }), + h(WXButton, { + title: "\u91CD\u7F6E", + onPress: () => { + this.props.room.reset() + }, + diuu: "DIUU00009" + }) + ) + } + }), + _temp)) + ) || _class) const styles = StyleSheet.create({ container: { flex: 1, diff --git a/examples/RoomMobxWP/src/store/Room.js b/examples/RoomMobxWP/src/store/Room.js index 365c51f..9773c54 100644 --- a/examples/RoomMobxWP/src/store/Room.js +++ b/examples/RoomMobxWP/src/store/Room.js @@ -55,109 +55,111 @@ function _initializerWarningHelper(descriptor, context) { } import { observable, computed } from "@areslabs/wx-mobx" -let Room = ((_class = ((_temp = class Room { - constructor() { - _initializerDefineProperty(this, "bedRoom1", _descriptor, this) +let Room = + ((_class = + ((_temp = class Room { + constructor() { + _initializerDefineProperty(this, "bedRoom1", _descriptor, this) - _initializerDefineProperty(this, "bedRoom2", _descriptor2, this) + _initializerDefineProperty(this, "bedRoom2", _descriptor2, this) - _initializerDefineProperty(this, "kitchen", _descriptor3, this) + _initializerDefineProperty(this, "kitchen", _descriptor3, this) - _initializerDefineProperty(this, "bookroom", _descriptor4, this) - } + _initializerDefineProperty(this, "bookroom", _descriptor4, this) + } - get total() { - return ( - this.bedRoom1.price + - this.bedRoom2.price + - this.kitchen.price + - this.bookroom.price - ) - } + get total() { + return ( + this.bedRoom1.price + + this.bedRoom2.price + + this.kitchen.price + + this.bookroom.price + ) + } - reset() { - this.bedRoom1.price = 0 - this.bedRoom1.price = 1 - this.bedRoom1.price = 2 - this.bedRoom1.price = 3 - this.bedRoom1.price = 4 - this.bedRoom1.price = 0 - this.bedRoom2.price = 0 - this.kitchen.price = 0 - this.bookroom.price = 0 - } -}), -_temp)), -((_descriptor = _applyDecoratedDescriptor( - _class.prototype, - "bedRoom1", - [observable], - { - configurable: true, - enumerable: true, - writable: true, - initializer: function() { - return { - price: 0, - label: "主卧" + reset() { + this.bedRoom1.price = 0 + this.bedRoom1.price = 1 + this.bedRoom1.price = 2 + this.bedRoom1.price = 3 + this.bedRoom1.price = 4 + this.bedRoom1.price = 0 + this.bedRoom2.price = 0 + this.kitchen.price = 0 + this.bookroom.price = 0 + } + }), + _temp)), + ((_descriptor = _applyDecoratedDescriptor( + _class.prototype, + "bedRoom1", + [observable], + { + configurable: true, + enumerable: true, + writable: true, + initializer: function() { + return { + price: 0, + label: "主卧" + } } } - } -)), -(_descriptor2 = _applyDecoratedDescriptor( - _class.prototype, - "bedRoom2", - [observable], - { - configurable: true, - enumerable: true, - writable: true, - initializer: function() { - return { - price: 0, - label: "次卧" + )), + (_descriptor2 = _applyDecoratedDescriptor( + _class.prototype, + "bedRoom2", + [observable], + { + configurable: true, + enumerable: true, + writable: true, + initializer: function() { + return { + price: 0, + label: "次卧" + } } } - } -)), -(_descriptor3 = _applyDecoratedDescriptor( - _class.prototype, - "kitchen", - [observable], - { - configurable: true, - enumerable: true, - writable: true, - initializer: function() { - return { - price: 0, - label: "厨房" + )), + (_descriptor3 = _applyDecoratedDescriptor( + _class.prototype, + "kitchen", + [observable], + { + configurable: true, + enumerable: true, + writable: true, + initializer: function() { + return { + price: 0, + label: "厨房" + } } } - } -)), -(_descriptor4 = _applyDecoratedDescriptor( - _class.prototype, - "bookroom", - [observable], - { - configurable: true, - enumerable: true, - writable: true, - initializer: function() { - return { - price: 0, - label: "书房" + )), + (_descriptor4 = _applyDecoratedDescriptor( + _class.prototype, + "bookroom", + [observable], + { + configurable: true, + enumerable: true, + writable: true, + initializer: function() { + return { + price: 0, + label: "书房" + } } } - } -)), -_applyDecoratedDescriptor( - _class.prototype, - "total", - [computed], - Object.getOwnPropertyDescriptor(_class.prototype, "total"), - _class.prototype -)), -_class) + )), + _applyDecoratedDescriptor( + _class.prototype, + "total", + [computed], + Object.getOwnPropertyDescriptor(_class.prototype, "total"), + _class.prototype + )), + _class) export { Room as default } diff --git a/examples/SubpackagesDemo/package.json b/examples/SubpackagesDemo/package.json index 5fa072d..221a215 100644 --- a/examples/SubpackagesDemo/package.json +++ b/examples/SubpackagesDemo/package.json @@ -12,14 +12,14 @@ "@areslabs/hi-wx": "^1.0.2", "@areslabs/wx-animated": "^1.0.1", "@areslabs/wx-prop-types": "^1.0.0", - "@areslabs/wx-react": "^1.0.23-beta.1", + "@areslabs/wx-react": "^1.0.0", "@areslabs/wx-react-native": "^1.0.0", - "@areslabs/wx-react-redux": "^1.0.3-beta.1", + "@areslabs/wx-react-redux": "^1.0.0", "@areslabs/wx-redux": "^1.0.0", "@areslabs/wx-redux-actions": "^1.0.0", "@areslabs/wx-redux-promise": "^1.0.0", "@areslabs/wx-redux-thunk": "^1.0.0", - "@areslabs/wx-router": "^1.0.2-beta.1" + "@areslabs/wx-router": "^1.0.0" }, "license": "MIT" } diff --git a/examples/TodoWP/RNApp.js b/examples/TodoWP/RNApp.js index e30fa1b..e4c4942 100644 --- a/examples/TodoWP/RNApp.js +++ b/examples/TodoWP/RNApp.js @@ -26,6 +26,6 @@ const rootContext = React.getRootContext(); export default { childContext: rootContext }; -wx._historyConfig = Object.assign({}, wx._historyConfig || {}, { +wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, { "Todoinit": "/src/components/index" }); \ No newline at end of file diff --git a/examples/TodoWP/package.json b/examples/TodoWP/package.json index 4e70c83..1b2a780 100644 --- a/examples/TodoWP/package.json +++ b/examples/TodoWP/package.json @@ -2,15 +2,15 @@ "name": "Todo", "version": "0.0.1", "dependencies": { + "@areslabs/wx-router": "^1.0.0", "@areslabs/wx-animated": "^1.0.1", - "@areslabs/wx-prop-types": "^1.0.0", - "@areslabs/wx-react": "^1.0.23-beta.1", + "@areslabs/wx-react": "^1.0.0", "@areslabs/wx-react-native": "^1.0.0", + "@areslabs/wx-prop-types": "^1.0.0", "@areslabs/wx-react-redux": "^1.0.0", "@areslabs/wx-redux": "^1.0.0", "@areslabs/wx-redux-actions": "^1.0.0", "@areslabs/wx-redux-promise": "^1.0.0", - "@areslabs/wx-redux-thunk": "^1.0.0", - "@areslabs/wx-router": "^1.0.2-beta.1" + "@areslabs/wx-redux-thunk": "^1.0.0" } } diff --git a/examples/TodoWP/project.config.json b/examples/TodoWP/project.config.json index 8d57045..b589764 100644 --- a/examples/TodoWP/project.config.json +++ b/examples/TodoWP/project.config.json @@ -14,7 +14,7 @@ "compileType": "miniprogram", "libVersion": "2.2.2", "appid": "wx67a52214b440b81b", - "projectname": "tmptmp", + "projectname": "TodoWP", "isGameTourist": false, "condition": { "search": { diff --git a/package.json b/package.json index 641c21a..afd2a11 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "weixin", "redux" ], - "version": "1.0.2-beta.2", + "version": "1.1.0", "description": "首个ReactNative转微信小程序引擎", "main": "./lib/index.js", "scripts": { diff --git a/packages/wx-mobx-react/package.json b/packages/wx-mobx-react/package.json index 24bdbb5..bfeb4ae 100644 --- a/packages/wx-mobx-react/package.json +++ b/packages/wx-mobx-react/package.json @@ -1,6 +1,6 @@ { "name": "@areslabs/wx-mobx-react", - "version": "0.0.3", + "version": "1.0.0", "description": "", "main": "index.js", "scripts": { diff --git a/packages/wx-react-redux/package.json b/packages/wx-react-redux/package.json index 5fc0950..c81d036 100644 --- a/packages/wx-react-redux/package.json +++ b/packages/wx-react-redux/package.json @@ -1,6 +1,6 @@ { "name": "@areslabs/wx-react-redux", - "version": "1.0.3-beta.1", + "version": "1.0.4", "description": "微信版本的react-redux", "main": "index.js", "scripts": { diff --git a/packages/wx-react/package.json b/packages/wx-react/package.json index dba1c81..733b773 100644 --- a/packages/wx-react/package.json +++ b/packages/wx-react/package.json @@ -1,6 +1,6 @@ { "name": "@areslabs/wx-react", - "version": "1.0.23-beta.1", + "version": "1.0.23", "description": "微信版本的React", "main": "index.js", "scripts": { diff --git a/packages/wx-router/package.json b/packages/wx-router/package.json index 68e378a..316e746 100644 --- a/packages/wx-router/package.json +++ b/packages/wx-router/package.json @@ -1,6 +1,6 @@ { "name": "@areslabs/wx-router", - "version": "1.0.2-beta.1", + "version": "1.0.2", "description": "router for mini-program", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"