-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3569 from alibaba/release-next
Release 1.9.6
- Loading branch information
Showing
10 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { store } from 'ice/Detail'; | ||
|
||
class Detail extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
console.log(this.props); | ||
} | ||
|
||
public render() { | ||
const { default: detailStore } = this.props as any; | ||
const [state, dispatcher] = detailStore; | ||
return ( | ||
<> | ||
<div>Detail Page</div> | ||
<div>Title: {state.title}</div> | ||
<button onClick={() => dispatcher.updateDetailTitle('test')} type="button">Change Title</button> | ||
</> | ||
); | ||
} | ||
} | ||
|
||
export default store.withModel('default')(Detail); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const delay = (time) => new Promise((resolve) => setTimeout(() => resolve(), time)); | ||
|
||
|
||
export default { | ||
state: { | ||
title: 'detail' | ||
}, | ||
|
||
reducers: { | ||
update(prevState, payload) { | ||
return { | ||
...prevState, | ||
...payload, | ||
}; | ||
}, | ||
}, | ||
|
||
effects: (dispatch) => ({ | ||
async updateDetailTitle(title: string) { | ||
await delay(1000); | ||
dispatch.default.update({ | ||
title | ||
}); | ||
}, | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ice.js", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"description": "command line interface and builtin plugin for icejs", | ||
"author": "[email protected]", | ||
"homepage": "", | ||
|
@@ -33,7 +33,7 @@ | |
"build-plugin-ice-request": "1.7.2", | ||
"build-plugin-ice-router": "1.7.3", | ||
"build-plugin-ice-ssr": "1.7.3", | ||
"build-plugin-ice-store": "1.7.2", | ||
"build-plugin-ice-store": "1.7.3", | ||
"build-plugin-react-app": "1.7.6", | ||
"build-plugin-miniapp": "0.1.5", | ||
"create-cli-utils": "0.1.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "build-plugin-ice-store", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "builtin `icestore` in icejs", | ||
"author": "[email protected]", | ||
"homepage": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%- pageImports %> | ||
|
||
export { | ||
<%= pageExports %> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rax-app", | ||
"version": "3.0.0-7", | ||
"version": "3.0.0-8", | ||
"description": "command line interface and builtin plugin for rax app", | ||
"author": "[email protected]", | ||
"homepage": "https://github.com/alibaba/ice#readme", | ||
|
@@ -16,7 +16,7 @@ | |
"dependencies": { | ||
"@alib/build-scripts": "^0.1.24", | ||
"build-plugin-app-core": "0.1.15", | ||
"build-plugin-ice-store": "1.7.2", | ||
"build-plugin-ice-store": "1.7.3", | ||
"build-plugin-rax-app": "5.2.6", | ||
"chokidar": "^3.3.1", | ||
"commander": "^5.0.0", | ||
|