mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 02:42:49 +09:00
first
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
### Validation rounded
|
||||
|
||||
Vuero offers `VControl` validation styles to go with any type of form validation
|
||||
library you could use in your project.
|
||||
Use the props shown in the code examples to handle validation.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<VField>
|
||||
<VControl icon="lucide:user" is-valid>
|
||||
<VInput
|
||||
type="text"
|
||||
class="is-rounded"
|
||||
placeholder="Username"
|
||||
value="Superman"
|
||||
/>
|
||||
<p class="help has-text-success">
|
||||
This username is available
|
||||
</p>
|
||||
</VControl>
|
||||
</VField>
|
||||
<VField>
|
||||
<VControl icon="lucide:lock" has-error>
|
||||
<VInput
|
||||
type="text"
|
||||
class="is-rounded"
|
||||
placeholder="Password"
|
||||
value="passwd"
|
||||
/>
|
||||
<p class="help has-text-danger">
|
||||
The password must contains 8 characters
|
||||
</p>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<form method="post" novalidate @submit.prevent>
|
||||
<VField>
|
||||
<VControl icon="lucide:user" is-valid>
|
||||
<VInput
|
||||
type="text"
|
||||
class="is-rounded"
|
||||
placeholder="Username"
|
||||
value="Superman"
|
||||
autocomplete="username"
|
||||
/>
|
||||
<p class="help has-text-success">This username is available</p>
|
||||
</VControl>
|
||||
</VField>
|
||||
<VField>
|
||||
<VControl icon="lucide:lock" has-error>
|
||||
<VInput
|
||||
type="text"
|
||||
class="is-rounded"
|
||||
placeholder="Password"
|
||||
value="passwd"
|
||||
autocomplete="current-password"
|
||||
/>
|
||||
<p class="help has-text-danger">The password must contains 8 characters</p>
|
||||
</VControl>
|
||||
</VField>
|
||||
</form>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user