Commit 79073268 authored by chenshouchao's avatar chenshouchao

feat: 模板增加自定义标签

parent 77b97bc9
...@@ -30,18 +30,39 @@ const TemplateBox = (props: any) => { ...@@ -30,18 +30,39 @@ const TemplateBox = (props: any) => {
return ( return (
<Box className={styles.templateBlock}> <Box className={styles.templateBlock}>
<Box> <Box>
<Typography <Box
sx={{ sx={{
fontSize: "14px", display: "flex",
fontWeight: "600", justifyContent: "space-between",
color: "#1E2633", alignItems: "center",
marginBottom: "4px",
overflow: "hidden",
textOverflow: "ellipsis",
}} }}
> >
{info.title} <Typography
</Typography> sx={{
fontSize: "14px",
fontWeight: "600",
color: "#1E2633",
marginBottom: "4px",
overflow: "hidden",
textOverflow: "ellipsis",
}}
>
{info.title}
</Typography>
{info.custom && (
<Box
sx={{
backgroundColor: "rgba(227, 250, 236, 1)",
color: "rgba(2, 171, 131, 1)",
lineHeight: "20px",
padding: "1px 9px",
fontSize: "12px",
}}
>
自定义
</Box>
)}
</Box>
<Box sx={{ display: "flex", marginBottom: "8px" }}> <Box sx={{ display: "flex", marginBottom: "8px" }}>
<Typography <Typography
sx={{ sx={{
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin: 8px; margin: 8px;
position: relative;
} }
.addTemplateMask { .addTemplateMask {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment