@@ -495,21 +495,21 @@ const formData = ref<SshHostFormModel>({ ...initialFormData });
495495const formItems = computed <FormItem []>(() => {
496496 const isKey = formData .value .auth_type === " key" ;
497497 return [
498- { label: " 名称" , key: " name" , type: " input" , span: 24 , props: { placeholder: " 唯一名称" } },
499- { label: " 地址" , key: " host" , type: " input" , span: 24 , props: { placeholder: " 如 10.0.0.1" } },
498+ { label: " 名称" , key: " name" , type: " input" , span: 12 , props: { placeholder: " 唯一名称" } },
499+ { label: " 地址" , key: " host" , type: " input" , span: 12 , props: { placeholder: " 如 10.0.0.1" } },
500500 {
501501 label: " 端口" ,
502502 key: " port" ,
503503 type: " number" ,
504- span: 24 ,
504+ span: 12 ,
505505 props: { controlsPosition: " right" , min: 1 , max: 65535 , style: { width: " 160px" } },
506506 },
507- { label: " 用户名" , key: " username" , type: " input" , span: 24 },
507+ { label: " 用户名" , key: " username" , type: " input" , span: 12 },
508508 {
509509 label: " 认证方式" ,
510510 key: " auth_type" ,
511511 type: " radiogroup" ,
512- span: 24 ,
512+ span: 12 ,
513513 props: {
514514 options: [
515515 { label: " 密码" , value: " password" },
@@ -521,7 +521,7 @@ const formItems = computed<FormItem[]>(() => {
521521 label: " 密码" ,
522522 key: " password" ,
523523 type: " input" ,
524- span: 24 ,
524+ span: 12 ,
525525 hidden: isKey ,
526526 props: { type: " password" , showPassword: true , placeholder: " 修改时不填表示不变" },
527527 },
@@ -537,15 +537,15 @@ const formItems = computed<FormItem[]>(() => {
537537 label: " 私钥口令" ,
538538 key: " passphrase" ,
539539 type: " input" ,
540- span: 24 ,
540+ span: 12 ,
541541 hidden: ! isKey ,
542542 props: { type: " password" , showPassword: true , placeholder: " 可选" },
543543 },
544544 {
545545 label: " 状态" ,
546546 key: " status" ,
547547 type: " radiogroup" ,
548- span: 24 ,
548+ span: 12 ,
549549 props: {
550550 options: [
551551 { label: " 启用" , value: 0 },
@@ -618,12 +618,12 @@ const initialSnippetForm: SshSnippetFormModel = {
618618const snippetFormData = ref <SshSnippetFormModel >({ ... initialSnippetForm });
619619
620620const snippetFormItems = computed <FormItem []>(() => [
621- { label: " 名称" , key: " name" , type: " input" , span: 24 },
621+ { label: " 名称" , key: " name" , type: " input" , span: 12 },
622622 {
623623 label: " 命令" ,
624624 key: " command" ,
625625 type: " input" ,
626- span: 24 ,
626+ span: 12 ,
627627 props: { type: " textarea" , rows: 4 , placeholder: " 如 df -h" },
628628 },
629629 { label: " 备注" , key: " description" , type: " input" , span: 24 },
0 commit comments