Skip to content

Commit 071dfe4

Browse files
committed
fix: display label on color field
1 parent 58314c4 commit 071dfe4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/wrapper-quasar/src/form/WqColor.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<q-input
33
v-model="modelValue"
44
@focus="state.popup = true"
5-
v-bind="{ ...props.field.wrapper, rules: undefined }"
5+
v-bind="{ ...attributes }"
66
:hint="hintText"
77
:error="hasFieldErrors"
88
:error-message="hintText"
@@ -31,4 +31,9 @@ const { hintText, hasFieldErrors, modelValue } = useColorField<any>(props)
3131
const state = reactive({
3232
popup: false,
3333
})
34+
35+
const attributes = computed(() => {
36+
const { wrapper, modelValue, hint, errorMessage, type, class: _class, ...field } = props.field
37+
return { ...wrapper, ...field } as any
38+
})
3439
</script>

0 commit comments

Comments
 (0)