Skip to content

Commit

Permalink
fix: DTStack#585 use dtstack copy icon
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Dec 17, 2024
1 parent 9acb122 commit 7ce9f66
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/icon/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
ClockCircleOutlined,
CloseCircleFilled,
CloseOutlined,
CopyOutlined,
DeleteOutlined,
DoubleLeftOutlined,
DoubleRightOutlined,
Expand Down Expand Up @@ -89,6 +90,7 @@ const fileNameToClassName = {
ClockCircleOutlined: 'anticon-clock-circle',
CloseCircleFilled: 'anticon-close-circle',
CloseOutlined: 'anticon-close',
CopyOutlined: 'anticon-copy',
DeleteOutlined: 'anticon-delete',
DoubleLeftOutlined: 'anticon-double-left',
DoubleRightOutlined: 'anticon-double-right',
Expand Down
1 change: 1 addition & 0 deletions custom-icons/generate/fileNameToClassName.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
ClockCircleOutlined: 'anticon-clock-circle',
CloseCircleFilled: 'anticon-close-circle',
CloseOutlined: 'anticon-close',
CopyOutlined: 'anticon-copy',
DeleteOutlined: 'anticon-delete',
DoubleLeftOutlined: 'anticon-double-left',
DoubleRightOutlined: 'anticon-double-right',
Expand Down
1 change: 1 addition & 0 deletions custom-icons/iconfont-svgs/CopyOutlined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions theme/dt-theme/default/custom-icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@
}
}

.anticon-copy svg path {
&:first-child {
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");
}
&:not(:first-child) {
d: path("");
}
}

.anticon-delete svg path {
&:first-child {
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");
Expand Down

0 comments on commit 7ce9f66

Please sign in to comment.