Compare commits

...

2 Commits

Author SHA1 Message Date
Li1304553726 041c26283b Merge branch 'main' of http://113.45.67.59:3003/lzq/test 2025-11-17 19:58:07 +08:00
Li1304553726 d773b5fab0 1 2025-11-17 19:58:04 +08:00
1 changed files with 40 additions and 51 deletions

View File

@ -57,11 +57,8 @@ export function WeatherSearchForm() {
<AlertCircle className="inline w-4 h-4 text-red-500 mt-0.5" /> <AlertCircle className="inline w-4 h-4 text-red-500 mt-0.5" />
<p className="text-red-500 text-xs">{inputError}</p> <p className="text-red-500 text-xs">{inputError}</p>
</div> </div>
) )
} }
<div className='flex gap-2'> <div className='flex gap-2'>
<Button type="submit" disabled={isLoading || !city.trim()} className="mt-4 w-full"> <Button type="submit" disabled={isLoading || !city.trim()} className="mt-4 w-full">
{isLoading ? <> {isLoading ? <>
@ -75,18 +72,10 @@ export function WeatherSearchForm() {
{currentWeather && ( {currentWeather && (
<Button type="button" variant="outline" onClick={refreshWeather} disabled={isLoading} className="mt-4 w-full" title='刷新数据'> <Button type="button" variant="outline" onClick={refreshWeather} disabled={isLoading} className="mt-4 w-full" title='刷新数据'>
<RefreshCw className={cn("w-5 h-5", isLoading && "animate-spin")} /> <RefreshCw className={cn("w-5 h-5", isLoading && "animate-spin")} />
</Button> </Button>
)} )}
</div> </div>
</form> </form>
</div> </div>
) )
} }