ADD: Scramble delay prop
This commit is contained in:
@@ -37,6 +37,10 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
delay: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
})
|
||||
|
||||
const content = ref('')
|
||||
@@ -107,7 +111,9 @@ defineExpose({ scramble })
|
||||
|
||||
onMounted(() => {
|
||||
if (props.scrambleOnMount) {
|
||||
setTimeout(() => {
|
||||
scramble()
|
||||
}, props.delay)
|
||||
} else {
|
||||
content.value = props.text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user