From 22ff5bddae1ec3ec0a91c19722624c15dc3f49b9 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 23 Mar 2025 12:19:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E4=B8=BAts?= =?UTF-8?q?=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/client/secret-input.vue | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/web-antd/src/views/system/client/secret-input.vue b/apps/web-antd/src/views/system/client/secret-input.vue index cc278cfa..ee77a1cc 100644 --- a/apps/web-antd/src/views/system/client/secret-input.vue +++ b/apps/web-antd/src/views/system/client/secret-input.vue @@ -6,20 +6,13 @@ import { Input } from 'ant-design-vue'; defineOptions({ name: 'SecretInput' }); -defineProps({ - disabled: { - default: false, - type: Boolean, - }, - placeholder: { - default: '请输入密钥或随机生成', - type: String, - }, +withDefaults(defineProps<{ disabled?: boolean; placeholder?: string }>(), { + disabled: false, + placeholder: '请输入密钥或随机生成', }); const value = defineModel('value', { required: false, - type: String, }); function refreshSecret() {