fix(ui): tsc-check error

This commit is contained in:
Fu Diwei
2024-12-20 21:01:24 +08:00
parent a917d6c2c5
commit 63ffb9df14
4 changed files with 18 additions and 18 deletions

View File

@@ -324,7 +324,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel></FormLabel>
<FormControl>
<Input placeholder="输入密钥路径" {...field} />
<Input placeholder="输入密钥路径" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -339,7 +339,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>PFX </FormLabel>
<FormControl>
<Input type="password" placeholder="输入 PFX 密码" {...field} />
<Input type="password" placeholder="输入 PFX 密码" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -356,7 +356,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS </FormLabel>
<FormControl>
<Input placeholder="输入 JKS 别名" {...field} />
<Input placeholder="输入 JKS 别名" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -370,7 +370,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS Keypass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Keypass" {...field} />
<Input type="password" placeholder="输入 JKS Keypass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -384,7 +384,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS Storepass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Storepass" {...field} />
<Input type="password" placeholder="输入 JKS Storepass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -423,7 +423,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_pre_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -455,7 +455,7 @@ Remove-Item -Path "$pfxPath" -Force
</DropdownMenu>
</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>

View File

@@ -242,7 +242,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel></FormLabel>
<FormControl>
<Input placeholder="输入密钥路径" {...field} />
<Input placeholder="输入密钥路径" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -257,7 +257,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>PFX </FormLabel>
<FormControl>
<Input type="password" placeholder="输入 PFX 密码" {...field} />
<Input type="password" placeholder="输入 PFX 密码" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -274,7 +274,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS </FormLabel>
<FormControl>
<Input placeholder="输入 JKS 别名" {...field} />
<Input placeholder="输入 JKS 别名" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -288,7 +288,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS Keypass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Keypass" {...field} />
<Input type="password" placeholder="输入 JKS Keypass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -302,7 +302,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS Storepass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Storepass" {...field} />
<Input type="password" placeholder="输入 JKS Storepass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -318,7 +318,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_pre_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@@ -332,7 +332,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>