Skip to content

Commit

Permalink
fix: #585 use dtstack copy icon
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Dec 16, 2024
1 parent 9acb122 commit 2358720
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("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");
}
&: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 2358720

Please sign in to comment.