Skip to content

Commit a836cc5

Browse files
committed
feat: use dtinsight/react-icons replace ant-design/icons
fix #562
1 parent aa50deb commit a836cc5

File tree

19 files changed

+15551
-9676
lines changed

19 files changed

+15551
-9676
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"dependencies": {
114114
"@ant-design/icons": "^4.7.0",
115115
"@dtinsight/dt-utils": "^1.3.1",
116+
"@dtinsight/react-icons": "^1.0.0",
116117
"@handsontable/react": "2.1.0",
117118
"antd": "4.22.5",
118119
"classnames": "^2.2.6",

pnpm-lock.yaml

Lines changed: 15501 additions & 9645 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/blockHeader/demos/addonBefore.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react';
2-
import { PauseCircleOutlined, PieChartOutlined } from '@ant-design/icons';
2+
import { PauseOutlined, PieChartFilled } from '@dtinsight/react-icons';
33
import { BlockHeader } from 'dt-react-component';
44

55
export default () => {
66
return (
77
<>
88
<BlockHeader title="分类标题" />
99
<BlockHeader title="分类标题" addonBefore={''} />
10-
<BlockHeader title="分类标题" addonBefore={<PieChartOutlined />} />
11-
<BlockHeader title="分类标题" addonBefore={<PauseCircleOutlined />} />
10+
<BlockHeader title="分类标题" addonBefore={<PieChartFilled />} />
11+
<BlockHeader title="分类标题" addonBefore={<PauseOutlined />} />
1212
</>
1313
);
1414
};

src/blockHeader/demos/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { PieChartOutlined } from '@ant-design/icons';
2+
import { PieChartOutlined } from '@dtinsight/react-icons';
33
import { Radio, Space, Switch } from 'antd';
44
import { BlockHeader } from 'dt-react-component';
55
import { SizeType } from 'dt-react-component/blockHeader';

src/blockHeader/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode, useState } from 'react';
2-
import { QuestionCircleOutlined, UpOutlined } from '@ant-design/icons';
2+
import { QuestionOutlined, UpOutlined } from '@dtinsight/react-icons';
33
import { Tooltip } from 'antd';
44
import classNames from 'classnames';
55

@@ -115,7 +115,7 @@ const BlockHeader: React.FC<IBlockHeaderProps> = function (props) {
115115
{tooltipProps?.title ? (
116116
<div className={`title__tooltip`}>
117117
<Tooltip {...tooltipProps}>
118-
<QuestionCircleOutlined />
118+
<QuestionOutlined />
119119
</Tooltip>
120120
</div>
121121
) : null}

src/chat/demos/basic.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect, useState } from 'react';
2-
import { LikeOutlined } from '@ant-design/icons';
2+
import { ThumbsUpOutlined } from '@dtinsight/react-icons';
33
import { Button } from 'antd';
44
import { Chat, Flex } from 'dt-react-component';
55

@@ -44,7 +44,7 @@ export default function () {
4444
codeBlock={{
4545
convert,
4646
}}
47-
messageIcons={() => <LikeOutlined className="dtc__message__icon" />}
47+
messageIcons={() => <ThumbsUpOutlined className="dtc__message__icon" />}
4848
components={{
4949
a: ({ children }) => (
5050
<Button

src/chat/demos/codeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* background: '#f6f7f9'
33
*/
44
import React from 'react';
5-
import { PlusCircleOutlined } from '@ant-design/icons';
5+
import { PlusCircleOutlined } from '@dtinsight/react-icons';
66
import { Chat } from 'dt-react-component';
77

88
const children = `

src/chat/pagination/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
2+
import { LeftOutlined, RightOutlined } from '@dtinsight/react-icons';
33

44
import './index.scss';
55

src/collapsibleActionItems/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default () => {
101101
import React, { useState } from 'react';
102102
import { CollapsibleActionItems } from 'dt-react-component';
103103
import { Table, message, Popconfirm } from 'antd';
104-
import { DownOutlined } from '@ant-design/icons';
104+
import { DownOutlined } from '@dtinsight/react-icons';
105105

106106
export default () => {
107107
const [dataSource, setDataSource] = useState([

src/collapsibleActionItems/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from 'react';
2-
import { EllipsisOutlined } from '@ant-design/icons';
2+
import { EllipsisTableOutlined } from '@dtinsight/react-icons';
33
import { Button, ButtonProps, Divider, Dropdown, DropDownProps, Menu } from 'antd';
44
import classNames from 'classnames';
55

@@ -30,7 +30,7 @@ const CollapsibleActionItems: React.FC<ICollapsibleActionItems> = (props) => {
3030
maxCount = 3,
3131
className,
3232
divider = <Divider type="vertical" />,
33-
collapseIcon = <EllipsisOutlined />,
33+
collapseIcon = <EllipsisTableOutlined />,
3434
dropdownProps,
3535
buttonProps,
3636
style,

0 commit comments

Comments
 (0)