-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ce1ed3
commit 2487ac5
Showing
17 changed files
with
739 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,5 +91,11 @@ const Fit = styled({ | |
height:'100%' | ||
}) | ||
|
||
|
||
``` | ||
|
||
然后这样原子样式就可以在其他样式声明中被重新使用。详见[组合样式](/guide/combind)章节。 | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* 显示颜色按钮 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { styled } from "../../src" | ||
|
||
|
||
export type ColorButtonProps = { | ||
color?: string | ||
} | ||
|
||
|
||
export const ColorButton = styled.span<ColorButtonProps>({ | ||
width: '24px', | ||
height: '24px', | ||
padding:"8px", | ||
borderRadius: 5, | ||
margin: "4px", | ||
backgroundColor: (props)=>props.color, | ||
cursor: "pointer", | ||
"&:hover":{ | ||
outline: "1px solid #aaa" | ||
} | ||
}); |
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,12 @@ | ||
import { createTheme } from "../../src/theme"; | ||
|
||
export const theme = createTheme({ | ||
primaryColor : "#007bff", | ||
secondaryColor : "blue", | ||
backgroundColor: "#e8f8ff", | ||
textColor : "333", | ||
fontSize : "16px", | ||
},{ | ||
prefix:"v" | ||
}) | ||
|
Oops, something went wrong.