Skip to content

Commit 2358720

Browse files
committed
fix: #585 use dtstack copy icon
1 parent 9acb122 commit 2358720

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

components/icon/demo/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
ClockCircleOutlined,
2525
CloseCircleFilled,
2626
CloseOutlined,
27+
CopyOutlined,
2728
DeleteOutlined,
2829
DoubleLeftOutlined,
2930
DoubleRightOutlined,
@@ -89,6 +90,7 @@ const fileNameToClassName = {
8990
ClockCircleOutlined: 'anticon-clock-circle',
9091
CloseCircleFilled: 'anticon-close-circle',
9192
CloseOutlined: 'anticon-close',
93+
CopyOutlined: 'anticon-copy',
9294
DeleteOutlined: 'anticon-delete',
9395
DoubleLeftOutlined: 'anticon-double-left',
9496
DoubleRightOutlined: 'anticon-double-right',

custom-icons/generate/fileNameToClassName.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
ClockCircleOutlined: 'anticon-clock-circle',
1515
CloseCircleFilled: 'anticon-close-circle',
1616
CloseOutlined: 'anticon-close',
17+
CopyOutlined: 'anticon-copy',
1718
DeleteOutlined: 'anticon-delete',
1819
DoubleLeftOutlined: 'anticon-double-left',
1920
DoubleRightOutlined: 'anticon-double-right',
Lines changed: 1 addition & 0 deletions
Loading

theme/dt-theme/default/custom-icons.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@
111111
}
112112
}
113113

114+
.anticon-copy svg path {
115+
&:first-child {
116+
d: path("M44 6H12C8.68629 6 6 8.68629 6 12V44C6 47.3137 8.68629 50 12 50H14V51C14 54.3137 16.6863 57 20 57H52C55.3137 57 58 54.3137 58 51V19C58 15.6863 55.3137 13 52 13H50V12C50 8.68629 47.3137 6 44 6ZM50 17V44C50 47.3137 47.3137 50 44 50H18V51C18 52.1046 18.8954 53 20 53H52C53.1046 53 54 52.1046 54 51V19C54 17.8954 53.1046 17 52 17H50ZM44 10C45.1046 10 46 10.8954 46 12V44C46 45.1046 45.1046 46 44 46H12C10.8954 46 10 45.1046 10 44V12C10 10.8954 10.8954 10 12 10H44ZM42 28C42 26.8954 41.1046 26 40 26H30V16C30 14.8954 29.1046 14 28 14C26.8954 14 26 14.8954 26 16V26H16C14.8954 26 14 26.8954 14 28C14 29.1046 14.8954 30 16 30H26V40C26 41.1046 26.8954 42 28 42C29.1046 42 30 41.1046 30 40V30H40C41.1046 30 42 29.1046 42 28Z");
117+
}
118+
&:not(:first-child) {
119+
d: path("");
120+
}
121+
}
122+
114123
.anticon-delete svg path {
115124
&:first-child {
116125
d: path("M596.375 174.5a56.25 56.25 0 0 1 56.25 56.25v56.25h210.9375a28.125 28.125 0 1 1 0 56.25h-70.3125v450a56.25 56.25 0 0 1-56.25 56.25H287a56.25 56.25 0 0 1-56.25-56.25V343.25H160.4375a28.125 28.125 0 1 1 0-56.25h210.9375v-56.25a56.25 56.25 0 0 1 56.25-56.25h168.75z m140.625 168.75H287v450h450V343.25z m-309.375 84.375a28.125 28.125 0 0 1 28.125 28.125v225a28.125 28.125 0 1 1-56.25 0V455.75a28.125 28.125 0 0 1 28.125-28.125z m168.75 0a28.125 28.125 0 0 1 28.125 28.125v225a28.125 28.125 0 1 1-56.25 0V455.75a28.125 28.125 0 0 1 28.125-28.125z m0-196.875H427.625v56.25h168.75v-56.25z");

0 commit comments

Comments
 (0)