Skip to content

Commit 10a3384

Browse files
authored
chore: upgrade tdesign-react to 1.15.0 (#191)
* chore: upgrade `tdesign-react` * docs: correct typo
1 parent 4a70384 commit 10a3384

File tree

4 files changed

+41
-75
lines changed

4 files changed

+41
-75
lines changed

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
<p align="center">
11-
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
11+
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
1212
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
1313
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
1414
</a>

package-lock.json

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

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@types/lodash": "^4.14.178",
2424
"@types/mockjs": "^1.0.6",
2525
"@types/node": "^20.2.5",
26-
"@types/qrcode.react": "^1.0.2",
2726
"@types/react": "^18.2.0",
2827
"@types/react-dom": "^18.2.0",
2928
"@types/react-router-dom": "^5.3.3",
@@ -52,13 +51,12 @@
5251
"echarts-for-react": "^3.0.2",
5352
"lodash": "^4.17.21",
5453
"mockjs": "^1.1.0",
55-
"qrcode.react": "^3.1.0",
5654
"react": "^18.2.0",
5755
"react-dom": "^18.2.0",
5856
"react-redux": "^7.2.4",
5957
"react-router-dom": "^6.3.0",
60-
"tdesign-icons-react": "^0.4.3",
61-
"tdesign-react": "^1.10.4",
58+
"tdesign-icons-react": "^0.6.0",
59+
"tdesign-react": "^1.15.0",
6260
"tvision-color": "^1.5.0"
6361
},
6462
"browserslist": {

src/pages/Login/components/Login/index.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
import React, { useState, useRef } from 'react';
1+
import React, { useRef, useState } from 'react';
22
import { useNavigate } from 'react-router-dom';
3-
import { Form, MessagePlugin, Input, Checkbox, Button, FormInstanceFunctions, SubmitContext } from 'tdesign-react';
4-
import { LockOnIcon, UserIcon, BrowseOffIcon, BrowseIcon, RefreshIcon } from 'tdesign-icons-react';
3+
import {
4+
Button,
5+
Checkbox,
6+
Form,
7+
type FormInstanceFunctions,
8+
Input,
9+
MessagePlugin,
10+
QRCode,
11+
type SubmitContext,
12+
} from 'tdesign-react';
13+
import { BrowseIcon, BrowseOffIcon, LockOnIcon, RefreshIcon, UserIcon } from 'tdesign-icons-react';
514
import classnames from 'classnames';
6-
import QRCode from 'qrcode.react';
715
import { useAppDispatch } from 'modules/store';
816
import { login } from 'modules/user';
917
import useCountdown from '../../hooks/useCountDown';
@@ -88,7 +96,7 @@ export default function Login() {
8896
刷新 <RefreshIcon />
8997
</span>
9098
</div>
91-
<QRCode value='' size={200} />
99+
<QRCode value='https://tdesign.tencent.com/' size={200} />
92100
</>
93101
)}
94102
{/* // 手机号登陆 */}

0 commit comments

Comments
 (0)