Skip to content

Commit

Permalink
Merge pull request #61 from Tencent/develop
Browse files Browse the repository at this point in the history
升级react-router-dom
  • Loading branch information
xucz authored Apr 10, 2022
2 parents 60af2e8 + 5ba83be commit 06ed5ae
Show file tree
Hide file tree
Showing 61 changed files with 6,095 additions and 1,019 deletions.
5,093 changes: 5,093 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-react-starter",
"version": "0.1.0",
"version": "0.1.3",
"private": true,
"scripts": {
"dev:mock": "vite --open --mode mock",
Expand All @@ -21,11 +21,11 @@
"@types/echarts": "^4.9.13",
"@types/lodash": "^4.14.178",
"@types/mockjs": "^1.0.6",
"@types/node": "^16.11.18",
"@types/node": "^17.0.23",
"@types/qrcode.react": "^1.0.2",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/react-router-dom": "^5.3.2",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^1.2.0",
"eslint": "^8.3.0",
"eslint-config-airbnb-base": "^15.0.0",
Expand All @@ -52,12 +52,11 @@
"lodash": "^4.17.21",
"mockjs": "^1.1.0",
"qrcode.react": "^2.0.0",
"query-string": "^6.12.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"tdesign-icons-react": "0.0.8",
"react-router-dom": "^6.3.0",
"tdesign-icons-react": "0.0.9",
"tdesign-react": "^0.30.1",
"tvision-color": "^1.3.1"
},
Expand Down
110 changes: 72 additions & 38 deletions src/assets/svg/assets-logo-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 50 additions & 40 deletions src/assets/svg/assets-t-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 4 additions & 27 deletions src/components/Board/index.module.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
//.boardPanel {
// padding: 24px 32px;
// background: var(--td-bg-color-container);
// border-radius: 3px;
// width: 100%;
// display: flex;
// flex-direction: column;
// height: 168px;
// position: relative;
//}
.panel {
height: 160px
}

.boardPanelDark {
background: var(--td-brand-color);
background: var(--td-brand-color)!important;
.boardTitle, .boardItemLeft, .boardItemDesc, .trendColorUp, .trendColorDown, .boardItemBottom {
color: var(--td-text-color-anti);
}
Expand All @@ -21,22 +14,6 @@

.boardTitle {}

//.boardTitle {
// display: flex;
// justify-content: space-between;
// font-size: 14px;
// line-height: 22px;
// color: var(--td-text-color-secondary);
// margin-bottom: 8px;
//}
//
//.boardContainer {
// flex: 1;
// display: flex;
// flex-direction: column;
// justify-content: space-between;
//}

.boardItem {
display: flex;
justify-content: space-between;
Expand Down
3 changes: 1 addition & 2 deletions src/components/Board/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export const TrendIcon = ({ trend, trendNum }: { trend?: TTrend; trendNum?: stri
const Board = ({ title, count, desc, trend, trendNum, Icon, dark, border }: IBoardProps) => (
<Card
title={<div className={Style.boardTitle}>{title}</div>}
style={{ height: 160 }}
className={classnames({
className={classnames(Style.panel, {
[Style.boardPanelDark]: dark,
})}
border={border}
Expand Down
3 changes: 0 additions & 3 deletions src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export interface ICardProps {
className?: string;
border?: boolean;
size?: 'small' | 'large';
[key: string]: any;
}

const Card = ({
Expand All @@ -20,7 +19,6 @@ const Card = ({
border,
className,
size,
...other
}: React.PropsWithChildren<ICardProps>) => (
<div
className={classnames(
Expand All @@ -30,7 +28,6 @@ const Card = ({
},
className,
)}
{...other}
>
<div className={Style.top}>
<div className={Style.left}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/PageBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export interface IPageBoxProps {

const PageBox: React.FC<React.PropsWithChildren<IPageBoxProps>> = ({
children,
withColor = true,
withPadding = true,
withColor,
withPadding,
className,
...others
}) => (
Expand Down
Loading

0 comments on commit 06ed5ae

Please sign in to comment.