From e1999e5ce8057ab511bfc62ad77785a0ee7a8285 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Wed, 2 Sep 2020 10:43:03 +0800 Subject: [PATCH] =?UTF-8?q?pref(textarea):=20=E4=BC=98=E5=8C=96textarea?= =?UTF-8?q?=E7=9A=84minRows=E4=B8=BA3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/userviews/users/UserProfile/SSHUpdate.vue | 2 +- src/views/assets/SystemUser/SystemUserCreateUpdate.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userviews/users/UserProfile/SSHUpdate.vue b/src/userviews/users/UserProfile/SSHUpdate.vue index e27b94bc9..ac3519c05 100644 --- a/src/userviews/users/UserProfile/SSHUpdate.vue +++ b/src/userviews/users/UserProfile/SSHUpdate.vue @@ -47,7 +47,7 @@ export default { el: { type: 'textarea', placeholder: 'ssh-rsa AAAA...', - autosize: true + autosize: { minRows: 3 } }, helpText: this.$t('users.HelpText.SSHKeyOfProfileSSHUpdatePage') } diff --git a/src/views/assets/SystemUser/SystemUserCreateUpdate.vue b/src/views/assets/SystemUser/SystemUserCreateUpdate.vue index 965bd7be5..3145ddf6c 100644 --- a/src/views/assets/SystemUser/SystemUserCreateUpdate.vue +++ b/src/views/assets/SystemUser/SystemUserCreateUpdate.vue @@ -114,7 +114,7 @@ export default { rules: [Required], el: { type: 'textarea', - autosize: true + autosize: { minRows: 3 } }, hidden: form => { return form.protocol !== 'k8s'