Files
workspace/code/g3soft-libs/docs/examples/captcha/basic.vue
T
2026-10-11 22:14:13 +08:00

17 lines
430 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
// 最基础用法:v-model 绑 boolean,true 表示已验证通过
import { ref } from 'vue'
import { G3SliderCaptcha } from '@g3soft/ui'
const passed = ref(false)
</script>
<template>
<div style="max-width: 360px">
<G3SliderCaptcha v-model="passed" />
<p style="margin: 8px 0 0; font-size: 13px">
当前状态:{{ passed ? '已验证' : '未验证' }}
</p>
</div>
</template>