@ecoding/components.antd.layout
Advanced tools
@@ -5,2 +5,3 @@ import React from "react"; | ||
| sTitle?: React.ReactNode; | ||
| addAfter?: React.ReactNode; | ||
| style?: React.CSSProperties; | ||
@@ -7,0 +8,0 @@ boxStyle?: React.CSSProperties; |
| import React from "react"; | ||
| import { Space, Divider, Typography } from "antd"; | ||
| const Tip = ({ theme, style, title, sTitle, children, boxStyle, wrapStyle }) => { | ||
| const Tip = ({ theme, style, title, sTitle, children, boxStyle, wrapStyle, addAfter }) => { | ||
| const TitleWrap = Object.assign({ | ||
@@ -25,5 +25,10 @@ position: "relative", | ||
| React.createElement(Typography.Title, { level: 5, style: { marginBottom: 0 } }, title), | ||
| React.createElement(Typography.Text, { type: "secondary" }, sTitle)))) : null, | ||
| typeof sTitle === "string" ? React.createElement(Typography.Text, { type: "secondary" }, sTitle) : sTitle), | ||
| addAfter ? (React.createElement("div", { style: { | ||
| position: "absolute", | ||
| top: "50%", | ||
| transform: "translateY(-50%)" | ||
| } }, addAfter)) : null)) : null, | ||
| React.createElement(Space, { size: 0, style: { marginTop: "10px" }, direction: "vertical" }, children))); | ||
| }; | ||
| export default Tip; |
+2
-2
| { | ||
| "name": "@ecoding/components.antd.layout", | ||
| "version": "0.0.27", | ||
| "version": "0.0.28", | ||
| "author": "cxc", | ||
@@ -26,3 +26,3 @@ "homepage": "", | ||
| }, | ||
| "gitHead": "7cc66340e90ece146de9b3bcc915321b80924e90" | ||
| "gitHead": "e9fd11eb73630ed175e89ada978a9ef464859305" | ||
| } |
12950
2.42%323
1.89%