feat: 添加antd依赖并在App中添加按钮组件
This commit is contained in:
1 parent
a71ad5a2e7
commit
6133dfe404
3 files changed
+913
No files matched your search
@@ -23,6 +23,7 @@
|
||||
"dependencies": {
|
||||
"@electron-toolkit/preload": "^3.0.2",
|
||||
"@electron-toolkit/utils": "^4.0.0",
|
||||
"antd": "5.22.1",
|
||||
"electron-updater": "^6.3.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Generated
+908
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,6 @@
|
||||
import Versions from './components/Versions'
|
||||
import electronLogo from './assets/electron.svg'
|
||||
import { Button } from 'antd';
|
||||
|
||||
function App(): React.JSX.Element {
|
||||
const ipcHandle = (): void => window.electron.ipcRenderer.send('ping')
|
||||
@@ -8,6 +9,9 @@ function App(): React.JSX.Element {
|
||||
<>
|
||||
<img alt="logo" className="logo" src={electronLogo} />
|
||||
<div className="creator">Powered by electron-vite</div>
|
||||
<Button type="primary" onClick={ipcHandle}>
|
||||
Send IPC123
|
||||
</Button>
|
||||
<div className="text">
|
||||
Build an Electron app with <span className="react">React</span>
|
||||
and <span className="ts">TypeScript</span>
|
||||
|
||||
Reference in new issue
Block a user