Skip to content

Commit 2e8d569

Browse files
committed
feat(alita wx-react wx-router wx-react-redux): 移除beta,测试正式npm包
1 parent 5d88a71 commit 2e8d569

25 files changed

+397
-390
lines changed

examples/HelloWorldExpoWP/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"@areslabs/wx-react": "^1.0.0",
1010
"@areslabs/wx-react-native": "^1.0.0"
1111
}
12-
}
12+
}

examples/HelloWorldExpoWP/project.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"compileType": "miniprogram",
1515
"libVersion": "2.2.2",
1616
"appid": "wx67a52214b440b81b",
17-
"projectname": "tmptmp",
17+
"projectname": "HelloWorldExpoWP",
1818
"isGameTourist": false,
1919
"condition": {
2020
"search": {

examples/HelloWorldExpoWP/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const rootContext = React.getRootContext();
4848
export default {
4949
childContext: rootContext
5050
};
51-
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {
51+
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, {
5252
"A": "/src/a/index",
5353
"C": "/src/c/index",
5454
"E": "/src/e/index",

examples/HelloWorldRNWP/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"dependencies": {
55
"@areslabs/hello-wx": "^1.0.2",
66
"@areslabs/hi-wx": "^1.0.2",
7+
"@areslabs/wx-router": "^1.0.0",
78
"@areslabs/wx-animated": "^1.0.12",
89
"@areslabs/wx-prop-types": "^1.0.0",
9-
"@areslabs/wx-react": "^1.0.23-beta.1",
10-
"@areslabs/wx-react-native": "^1.0.0",
11-
"@areslabs/wx-router": "^1.0.2-beta.1"
10+
"@areslabs/wx-react": "^1.0.0",
11+
"@areslabs/wx-react-native": "^1.0.0"
1212
}
1313
}

examples/HelloWorldRNWP/project.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"compileType": "miniprogram",
1515
"libVersion": "2.2.2",
1616
"appid": "wx67a52214b440b81b",
17-
"projectname": "tmptmp",
17+
"projectname": "HelloWorldRNWP",
1818
"isGameTourist": false,
1919
"condition": {
2020
"search": {

examples/HelloWorldRNWP/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const rootContext = React.getRootContext();
4848
export default {
4949
childContext: rootContext
5050
};
51-
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {
51+
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, {
5252
"HelloWorldRNA": "/src/a/index",
5353
"HelloWorldRNC": "/src/c/index",
5454
"HelloWorldRNE": "/src/e/index",

examples/ReactReposWP/RNApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const rootContext = React.getRootContext();
1919
export default {
2020
childContext: rootContext
2121
};
22-
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {
22+
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, {
2323
"ReactReposlist": "/src/components/list/index",
2424
"ReactReposdetail": "/src/components/detail/index"
2525
});

examples/ReactReposWP/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "ReactRepos",
33
"version": "0.0.1",
44
"dependencies": {
5+
"@areslabs/wx-router": "^1.0.0",
56
"@areslabs/wx-animated": "^1.0.3",
6-
"@areslabs/wx-react": "^1.0.23-beta.1",
7-
"@areslabs/wx-react-native": "^1.0.0",
8-
"@areslabs/wx-router": "^1.0.2-beta.1"
7+
"@areslabs/wx-react": "^1.0.0",
8+
"@areslabs/wx-react-native": "^1.0.0"
99
}
1010
}

examples/ReactReposWP/project.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"compileType": "miniprogram",
1515
"libVersion": "2.2.2",
1616
"appid": "wx67a52214b440b81b",
17-
"projectname": "tmptmp",
17+
"projectname": "ReactReposWP",
1818
"isGameTourist": false,
1919
"condition": {
2020
"search": {

examples/RoomMobxWP/RNApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ const rootContext = React.getRootContext();
2323
export default {
2424
childContext: rootContext
2525
};
26-
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {
26+
wx._historyConfig = Object.assign({}, wx._historyConfig || {}, {}, {
2727
"RoomMobxinit": "/src/components/index"
2828
});

examples/RoomMobxWP/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"@areslabs/wx-react": "^1.0.0",
99
"@areslabs/wx-react-native": "^1.0.0"
1010
}
11-
}
11+
}

examples/RoomMobxWP/project.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"compileType": "miniprogram",
1515
"libVersion": "2.2.2",
1616
"appid": "wx67a52214b440b81b",
17-
"projectname": "tmptmp",
17+
"projectname": "RoomMobxWP",
1818
"isGameTourist": false,
1919
"condition": {
2020
"search": {

examples/RoomMobxWP/src/components/Room.comp.js

+52-51
Original file line numberDiff line numberDiff line change
@@ -6,62 +6,63 @@ import { observer } from "@areslabs/wx-mobx-react"
66

77
let Room =
88
observer(
9-
(_class = ((_temp = class Room extends Component {
10-
constructor(...args) {
11-
super(...args)
12-
this.__stateless__ = true
13-
}
9+
(_class =
10+
((_temp = class Room extends Component {
11+
constructor(...args) {
12+
super(...args)
13+
this.__stateless__ = true
14+
}
1415

15-
render() {
16-
const { style, data, autoFocus } = this.props
17-
console.log(data.label, " update!")
18-
return h(
19-
"block",
20-
{
21-
style: style,
22-
original: "View",
23-
diuu: "DIUU00001",
24-
tempName: "ITNP00005"
25-
},
26-
h(
27-
"view",
16+
render() {
17+
const { style, data, autoFocus } = this.props
18+
console.log(data.label, " update!")
19+
return h(
20+
"block",
2821
{
29-
original: "OuterText",
30-
diuu: "DIUU00002"
22+
style: style,
23+
original: "View",
24+
diuu: "DIUU00001",
25+
tempName: "ITNP00005"
3126
},
32-
h("template", {
33-
datakey: "CTDK00002",
34-
tempVnode: data.label,
35-
"wx:if": "{{CTDK00002}}",
36-
is: "CTNP00001",
37-
data: "{{...CTDK00002}}"
27+
h(
28+
"view",
29+
{
30+
original: "OuterText",
31+
diuu: "DIUU00002"
32+
},
33+
h("template", {
34+
datakey: "CTDK00002",
35+
tempVnode: data.label,
36+
"wx:if": "{{CTDK00002}}",
37+
is: "CTNP00001",
38+
data: "{{...CTDK00002}}"
39+
}),
40+
"\uFF1A"
41+
),
42+
h(WXTextInput, {
43+
autoFocus: autoFocus,
44+
value: data.price + "",
45+
style: {
46+
borderBottomWidth: 2,
47+
width: 40
48+
},
49+
onChangeText: price => {
50+
data.price = Number(price)
51+
},
52+
diuu: "DIUU00003"
3853
}),
39-
"\uFF1A"
40-
),
41-
h(WXTextInput, {
42-
autoFocus: autoFocus,
43-
value: data.price + "",
44-
style: {
45-
borderBottomWidth: 2,
46-
width: 40
47-
},
48-
onChangeText: price => {
49-
data.price = Number(price)
50-
},
51-
diuu: "DIUU00003"
52-
}),
53-
h(
54-
"view",
55-
{
56-
original: "OuterText",
57-
diuu: "DIUU00004"
58-
},
59-
" \u5143"
54+
h(
55+
"view",
56+
{
57+
original: "OuterText",
58+
diuu: "DIUU00004"
59+
},
60+
" \u5143"
61+
)
6062
)
61-
)
62-
}
63-
}),
64-
_temp))
63+
}
64+
}),
65+
_temp))
6566
) || _class
6667

6768
export default Room

0 commit comments

Comments
 (0)