Skip to content

Commit 130b8d2

Browse files
committed
chore(demo): Add missing password attributes in playground
1 parent 365b23d commit 130b8d2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/pages/demo/Password.vue

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
<script setup lang='ts'>
2-
const primeAttributes = 'placeholder'
2+
const primeAttributes = 'placeholder, feedback, mediumRegex, strongRegex, promptLabel, weakLabel, mediumLabel, strongLabel, hideIcon, showIcon, toggleMask'
33
const schema
44
= [
5+
{
6+
$formkit: 'primePassword',
7+
name: 'password',
8+
label: 'Password',
9+
help: 'Enter your new password',
10+
feedback: true,
11+
},
512
{
613
$formkit: 'primePassword',
714
name: 'password_confirm',
815
label: 'Confirm password',
9-
placeholder: 'password',
10-
16+
help: 'Enter your new password again.',
17+
validation: 'required|confirm',
18+
validationLabel: 'password confirmation',
1119
},
1220
]
1321

0 commit comments

Comments
 (0)