refactor: 修改为ts写法
This commit is contained in:
parent
b2c66c07b4
commit
22ff5bddae
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user