Skip to content

Commit 7ce9f66

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

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("M704 96a96 96 0 0 1 96 96v16h32a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H320a96 96 0 0 1-96-96v-16h-32a96 96 0 0 1-95.936-92.4L96 704V192a96 96 0 0 1 96-96z m96 608a96 96 0 0 1-96 96H288v16a32 32 0 0 0 32 32h512a32 32 0 0 0 32-32V304a32 32 0 0 0-32-32h-32z m-96-544H192a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h512a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32z m-256 64a32 32 0 0 1 32 32v160h160a32 32 0 1 1 0 64H480v160a32 32 0 1 1-64 0V480H256a32 32 0 1 1 0-64h160V256a32 32 0 0 1 32-32z");
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)