Skip to content

Commit

Permalink
feat(alita wx-react wx-router wx-react-redux): 移除beta,测试正式npm包
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Jul 8, 2019
1 parent 5d88a71 commit 2e8d569
Show file tree
Hide file tree
Showing 25 changed files with 397 additions and 390 deletions.
2 changes: 1 addition & 1 deletion examples/HelloWorldExpoWP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"@areslabs/wx-react": "^1.0.0",
"@areslabs/wx-react-native": "^1.0.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/HelloWorldExpoWP/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"compileType": "miniprogram",
"libVersion": "2.2.2",
"appid": "wx67a52214b440b81b",
"projectname": "tmptmp",
"projectname": "HelloWorldExpoWP",
"isGameTourist": false,
"condition": {
"search": {
Expand Down
2 changes: 1 addition & 1 deletion examples/HelloWorldExpoWP/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions examples/HelloWorldRNWP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/HelloWorldRNWP/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"compileType": "miniprogram",
"libVersion": "2.2.2",
"appid": "wx67a52214b440b81b",
"projectname": "tmptmp",
"projectname": "HelloWorldRNWP",
"isGameTourist": false,
"condition": {
"search": {
Expand Down
2 changes: 1 addition & 1 deletion examples/HelloWorldRNWP/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/ReactReposWP/RNApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
6 changes: 3 additions & 3 deletions examples/ReactReposWP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/ReactReposWP/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"compileType": "miniprogram",
"libVersion": "2.2.2",
"appid": "wx67a52214b440b81b",
"projectname": "tmptmp",
"projectname": "ReactReposWP",
"isGameTourist": false,
"condition": {
"search": {
Expand Down
2 changes: 1 addition & 1 deletion examples/RoomMobxWP/RNApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
2 changes: 1 addition & 1 deletion examples/RoomMobxWP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"@areslabs/wx-react": "^1.0.0",
"@areslabs/wx-react-native": "^1.0.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/RoomMobxWP/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"compileType": "miniprogram",
"libVersion": "2.2.2",
"appid": "wx67a52214b440b81b",
"projectname": "tmptmp",
"projectname": "RoomMobxWP",
"isGameTourist": false,
"condition": {
"search": {
Expand Down
103 changes: 52 additions & 51 deletions examples/RoomMobxWP/src/components/Room.comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit 2e8d569

Please sign in to comment.