WIP
This commit is contained in:
parent
fa20945571
commit
be891b0615
|
@ -21,7 +21,6 @@
|
|||
"date-fns": "^2.28.0",
|
||||
"debounce": "^1.2.1",
|
||||
"fuse.js": "^6.4.6",
|
||||
"js-cookie": "^2.2.1",
|
||||
"js-sha256": "^0.9.0",
|
||||
"libphonenumber-js": "^1.10.44",
|
||||
"pinia": "^2.1.7",
|
||||
|
|
|
@ -33,18 +33,20 @@ export function useFormInput (props, context, formPrefixKey = null) {
|
|||
})
|
||||
|
||||
const hasError = computed(() => {
|
||||
return hasValidation && props.form?.errors?.has(name)
|
||||
return hasValidation && props.form?.errors?.has(props.name)
|
||||
})
|
||||
|
||||
const compVal = computed({
|
||||
get: () => {
|
||||
if (props.form) {
|
||||
console.log(props, 'props')
|
||||
return props.form[(formPrefixKey || '') + props.name]
|
||||
}
|
||||
return content.value
|
||||
},
|
||||
set: (val) => {
|
||||
if (props.form) {
|
||||
console.log(props, 'props')
|
||||
props.form[(formPrefixKey || '') + props.name] = val
|
||||
} else {
|
||||
content.value = val
|
||||
|
|
Loading…
Reference in New Issue