Skip to content

Commit

Permalink
feat: 移除没有用的文件
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Dec 13, 2023
1 parent e17240f commit 9fe1ae0
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 1,906 deletions.
36 changes: 14 additions & 22 deletions AccountCenter/src/components/Applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ShareAltOutlined,
} from '@ant-design/icons';
import { useRequest } from '@umijs/max';
import { Avatar, Card, Dropdown, List, Menu, Tooltip } from 'antd';
import { Avatar, Card, Dropdown, List, Tooltip } from 'antd';
import React from 'react';
import numeral from 'numeral';
import type { ListItemDataType } from '../../data.d';
Expand Down Expand Up @@ -47,26 +47,6 @@ const Applications: React.FC = () => {
});
});

const itemMenu = (
<Menu>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="https://www.alipay.com/">
1st menu item
</a>
</Menu.Item>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="https://www.taobao.com/">
2nd menu item
</a>
</Menu.Item>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="https://www.tmall.com/">
3d menu item
</a>
</Menu.Item>
</Menu>
);

const CardInfo: React.FC<{
activeUser: React.ReactNode;
newUser: React.ReactNode;
Expand Down Expand Up @@ -104,7 +84,19 @@ const Applications: React.FC = () => {
<Tooltip title="分享" key="share">
<ShareAltOutlined />
</Tooltip>,
<Dropdown overlay={itemMenu} key="ellipsis">
<Dropdown
menu={{
items: [
{ key: 'alipay', label: 'alipay' },
{ key: 'taobao', label: 'taobao' },
{ key: 'tmall', label: 'tmall' },
],
onClick: ({ key }) => {
window.open(`https://www.${key}.com/`, '_blank');
},
}}
key="ellipsis"
>
<EllipsisOutlined />
</Dropdown>,
]}
Expand Down
9 changes: 3 additions & 6 deletions AccountSettings/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import NotificationView from './components/notification';
import SecurityView from './components/security';
import useStyles from './style.style';

const { Item } = Menu;

type PAGE_NAME_UPPER_CAMEL_CASEStateKeys = 'base' | 'security' | 'binding' | 'notification';
type PAGE_NAME_UPPER_CAMEL_CASEState = {
mode: 'inline' | 'horizontal';
Expand Down Expand Up @@ -58,7 +56,7 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => {
}, [dom.current]);

const getMenu = () => {
return Object.keys(menuMap).map((item) => <Item key={item}>{menuMap[item]}</Item>);
return Object.keys(menuMap).map((item) => ({ key: item, label: menuMap[item] }));
};

const renderChildren = () => {
Expand Down Expand Up @@ -97,9 +95,8 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => {
selectKey: key as PAGE_NAME_UPPER_CAMEL_CASEStateKeys,
});
}}
>
{getMenu()}
</Menu>
items={getMenu()}
></Menu>
</div>
<div className={styles.right}>
<div className={styles.title}>{menuMap[initConfig.selectKey]}</div>
Expand Down
134 changes: 0 additions & 134 deletions DashboardAnalysis/src/components/Charts/Bar/index.tsx

This file was deleted.

Loading

0 comments on commit 9fe1ae0

Please sign in to comment.