Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
79073268
Commit
79073268
authored
Jul 12, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 模板增加自定义标签
parent
77b97bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
templateBox.tsx
...ectWorkbench/workbenchTemplate/components/templateBox.tsx
+30
-9
index.module.css
...oject/ProjectWorkbench/workbenchTemplate/index.module.css
+1
-0
No files found.
src/views/Project/ProjectWorkbench/workbenchTemplate/components/templateBox.tsx
View file @
79073268
...
@@ -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=
{
{
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.module.css
View file @
79073268
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment