Skip to content

Commit

Permalink
实现手动更改遮罩颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
slince-zero committed May 5, 2024
1 parent 418b196 commit 29e8c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export default function ImgContextProvider({
penSize,
handlePenSize,
board_pen_color,
setHexColor,
handleChangeBoardPenColor,
isCircle,
handleIsCircle,
Expand Down
4 changes: 3 additions & 1 deletion src/page/right/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function RightBoard() {
handleChangeBoardPenColor,
isCircle,
handleIsCircle,
setHexColor
} = useContext(ImgContext)
const { handleDownloadImage } = useContext(ImageDownloadContext)

Expand Down Expand Up @@ -235,9 +236,10 @@ export default function RightBoard() {
<div className='flex w-full items-center justify-between '>
<div className='w-4/5'>
<Input
type='url'
type='text'
label='遮罩'
value={hexColor}
onChange={(e)=>setHexColor(e.target.value)}
/>
</div>

Expand Down

0 comments on commit 29e8c02

Please sign in to comment.