mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 04:57:18 +08:00
🔧 更新(package-lock.json):修复@icon-park/react包的resolved链接地址
🔧 更新(config/index.ts):优化窗口创建逻辑,解决重复创建窗口的问题 🔧 更新(Search/index.tsx):优化搜索组件样式和按钮逻辑
This commit is contained in:
2
ui/autoMate/package-lock.json
generated
2
ui/autoMate/package-lock.json
generated
@@ -1385,7 +1385,7 @@
|
||||
},
|
||||
"node_modules/@icon-park/react": {
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/@icon-park/react/-/react-1.4.2.tgz",
|
||||
"resolved": "https://registry.npmmirror.com/@icon-park/react/-/react-1.4.2.tgz",
|
||||
"integrity": "sha512-+MtQLjNiRuia3fC/NfpSCTIy5KH5b+NkMB9zYd7p3R4aAIK61AjK0OSraaICJdkKooU9jpzk8m0fY4g9A3JqhQ==",
|
||||
"engines": {
|
||||
"node": ">= 8.0.0",
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import { BrowserWindow } from "electron"
|
||||
import { createWindow } from "./window"
|
||||
let win = null as null|BrowserWindow
|
||||
const createConfigWindow=()=>{
|
||||
createWindow()
|
||||
// 解决重复创建窗口
|
||||
if(!win) win = createWindow()
|
||||
// 窗口关闭时,将win置为null,可再次打开
|
||||
win.on("closed", ()=>{
|
||||
win = null
|
||||
})
|
||||
}
|
||||
|
||||
export { createConfigWindow }
|
||||
|
||||
@@ -6,17 +6,16 @@ export default function Search(): JSX.Element {
|
||||
const search = useStore((state)=>state.search)
|
||||
const {handleSearch} = useSearch()
|
||||
return (
|
||||
<main className="bg-slate-50 p-3 rounded-lg drag" >
|
||||
<section className="bg-slate-200 p-3 rounded-lg flex items-center gap-1 nodrag">
|
||||
<main className="bg-slate-50 p-3 rounded-lg" >
|
||||
<section className="bg-slate-200 p-3 rounded-lg flex items-center gap-1">
|
||||
<SettingOne
|
||||
theme="outline"
|
||||
size="22"
|
||||
fill="#2f3542"
|
||||
fill="#34495e"
|
||||
strokeWidth={4}
|
||||
className="cursor-pointer"
|
||||
onClick={()=>{
|
||||
window.api.openConfigWindow()
|
||||
}}
|
||||
onClick={()=>window.api.openConfigWindow()
|
||||
}
|
||||
/>
|
||||
<Input
|
||||
placeholder="请输入内容"
|
||||
@@ -24,11 +23,6 @@ export default function Search(): JSX.Element {
|
||||
onChange={handleSearch}
|
||||
autoFocus
|
||||
/>
|
||||
{/* <input
|
||||
value={search}
|
||||
onChange={handleSearch}
|
||||
className="w-full outline-none text-2xl text-slate-600 bg-slate-200"
|
||||
autoFocus/> */}
|
||||
</section>
|
||||
<section className="text-center text-slate-600 text-xs mt-2">autoMate</section>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user