parent
fcdf22d13e
commit
ca2bce89fe
@ -0,0 +1,20 @@ |
||||
<script setup name="AckCreateAntdButton"> |
||||
import { h, ref } from 'vue'; |
||||
import { PlusOutlined } from '@ant-design/icons-vue'; |
||||
|
||||
const canClick = ref(true); |
||||
const handleClick = () => { |
||||
if (canClick.value) { |
||||
canClick.value = false; |
||||
setTimeout(() => { |
||||
canClick.value = true; |
||||
}, 750); |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<template> |
||||
<AButton type="primary" :disabled="!canClick" @click="handleClick" :icon="h(PlusOutlined)">确认创建</AButton> |
||||
</template> |
||||
|
||||
<style scoped></style> |
Loading…
Reference in new issue