-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
调整prettier配置让尖括号换行 删除不合适的示例代码
- Loading branch information
chj_damon
committed
Apr 14, 2021
1 parent
1c115d3
commit 1bc93f8
Showing
19 changed files
with
82 additions
and
157 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
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
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
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
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,30 +1,11 @@ | ||
import { Button } from 'antd'; | ||
import React from 'react'; | ||
import { Link } from 'umi'; | ||
import React, { useContext } from 'react'; | ||
import { HotelDispatchContext } from '../useHotelService'; | ||
import HotelOtherInfo from '../HotelOtherInfo'; | ||
import HotelMetaInfo from '../HotelMetaInfo'; | ||
|
||
export default function HotelInfo() { | ||
const {setValue, setName} = useContext(HotelDispatchContext); | ||
|
||
const changeValue = () => { | ||
setValue(Math.random() * 100); | ||
}; | ||
|
||
const changeName = () => { | ||
setName((Math.random() * 100).toFixed(2)); | ||
}; | ||
|
||
console.log('222') | ||
return ( | ||
<div> | ||
<div>酒店基本信息</div> | ||
<Button onClick={changeValue}>修改value</Button> | ||
<Button onClick={changeName}>修改name</Button> | ||
<Link to="/homepage">homepage</Link> | ||
<HotelOtherInfo /> | ||
<HotelMetaInfo /> | ||
</div> | ||
); | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
import React from 'react'; | ||
import { Link } from 'umi'; | ||
|
||
export default function HotelInfo() { | ||
return ( | ||
<div> | ||
<div>酒店基本信息</div> | ||
<Link to="/homepage">homepage</Link> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.