Commit 79073268 authored by chenshouchao's avatar chenshouchao

feat: 模板增加自定义标签

parent 77b97bc9
......@@ -30,6 +30,13 @@ const TemplateBox = (props: any) => {
return (
<Box className={styles.templateBlock}>
<Box>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<Typography
sx={{
fontSize: "14px",
......@@ -42,6 +49,20 @@ const TemplateBox = (props: any) => {
>
{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" }}>
<Typography
sx={{
......
......@@ -27,6 +27,7 @@
flex-direction: column;
justify-content: space-between;
margin: 8px;
position: relative;
}
.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