generated from arvinxx/npm-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: ProFlow基础版本,才用BloodNode组件完成血缘图展示
- Loading branch information
jiangchu
committed
Sep 15, 2023
1 parent
cc4ea9b
commit d60fb21
Showing
8 changed files
with
248 additions
and
146 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,84 @@ | ||
import { createStyles } from 'antd-style'; | ||
|
||
export const useStyles = createStyles(({ css, cx, prefixCls }) => ({ | ||
nodeWrap: cx( | ||
`${prefixCls}-xx`, | ||
css` | ||
width: 320px; | ||
height: 85px; | ||
display: flex; | ||
z-index: 10 !important; | ||
position: absolute; | ||
border-radius: 12px; | ||
padding: 16px 12px; | ||
box-sizing: border-box; | ||
border: 3px solid white; | ||
flex: 1; | ||
background-color: white; | ||
.img { | ||
width: 48px; | ||
height: 48px; | ||
} | ||
.content { | ||
width: 230px; | ||
margin-left: 13px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
.title { | ||
width: 100%; | ||
display: flex; | ||
flex: 1; | ||
span { | ||
font-size: 16px; | ||
color: rgba(0, 0, 0, 85%); | ||
line-height: 22px; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
text-align: left; | ||
} | ||
.dangerLogo { | ||
width: 28px; | ||
height: 16px; | ||
background: #ffeef1; | ||
border-radius: 7px; | ||
margin-left: 8px; | ||
margin-top: 3px; | ||
img { | ||
width: 8px; | ||
height: 9px; | ||
} | ||
} | ||
} | ||
.des { | ||
font-size: 14px; | ||
color: rgba(0, 0, 0, 45%); | ||
line-height: 20px; | ||
white-space: nowrap; | ||
width: 100%; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
text-align: left; | ||
} | ||
} | ||
`, | ||
), | ||
nodeSelected: css` | ||
box-shadow: 0 0 0 3px #1677ff, 0 1px 4px 1px rgba(0, 0, 0, 8%) !important; | ||
`, | ||
nodeDanger: css` | ||
box-shadow: 0 0 0 3px #f7636e, 0 1px 4px 1px rgba(0, 0, 0, 8%); | ||
`, | ||
nodeWarning: css` | ||
box-shadow: 0 0 0 3px #ef9d3b, 0 1px 4px 1px rgba(0, 0, 0, 8%) !important; | ||
`, | ||
nodeDefault: css``, | ||
})); |
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
Oops, something went wrong.