refactor: 修改为ts写法

This commit is contained in:
dap 2025-03-23 12:19:29 +08:00
parent b2c66c07b4
commit 22ff5bddae

View File

@ -6,20 +6,13 @@ import { Input } from 'ant-design-vue';
defineOptions({ name: 'SecretInput' }); defineOptions({ name: 'SecretInput' });
defineProps({ withDefaults(defineProps<{ disabled?: boolean; placeholder?: string }>(), {
disabled: { disabled: false,
default: false, placeholder: '请输入密钥或随机生成',
type: Boolean,
},
placeholder: {
default: '请输入密钥或随机生成',
type: String,
},
}); });
const value = defineModel<string>('value', { const value = defineModel<string>('value', {
required: false, required: false,
type: String,
}); });
function refreshSecret() { function refreshSecret() {