Skip to content

Commit

Permalink
Merge pull request #1 from lvyueyang/dev
Browse files Browse the repository at this point in the history
feat: 完善文档与打包
  • Loading branch information
lvyueyang authored May 19, 2023
2 parents 09eeaf9 + 7af0c90 commit e35b638
Show file tree
Hide file tree
Showing 22 changed files with 1,015 additions and 35 deletions.
6 changes: 3 additions & 3 deletions demo/components/AppDock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export class AppDock extends React.Component<{}, AppDockState> {
};

componentDidMount(): void {
launcher.on('openListChange', this.updateList);
launcher.on('change:openList', this.updateList);
}
componentWillUnmount(): void {
launcher.off('openListChange', this.updateList);
launcher.off('change:openList', this.updateList);
}
render(): ReactNode {
return (
Expand All @@ -31,7 +31,7 @@ export class AppDock extends React.Component<{}, AppDockState> {
key={index}
style={{ padding: '6px 20px', border: '1px solid #ccc', cursor: 'pointer' }}
onClick={() => {
launcher.unminimize(item.id);
launcher.normalize(item.id);
}}
>
{item.title} <span style={{ cursor: 'pointer', color: 'red' }}>x</span>
Expand Down
2 changes: 2 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './launcher';
export * from './router';
Loading

0 comments on commit e35b638

Please sign in to comment.