Skip to content

Commit b53b2c0

Browse files
committed
fix: support class
1 parent bff23d8 commit b53b2c0

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

demo-quasar/src/viewer/FDateViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const form = useForm({
1818
placeholder: 'Seleccionar',
1919
type: FieldType.datepicker,
2020
wrapper: {
21-
class: 'col-span-12',
21+
class: 'col-span-6',
2222
},
2323
},
2424
},

demo-quasar/src/viewer/FTableViewer.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ const table = useTable({
8888
created_at: {
8989
format: (value: unknown) => 'Lo que sea',
9090
},
91+
is_active: {
92+
input: {
93+
isEnable: true
94+
}
95+
},
9196
actions: { value: 'actions', label: '', align: 'left' },
9297
},
9398
settings: {

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-input v-model="modelValue" mask="date" :error-message="hintText" :hint="hintText" :error="hasFieldErrors">
2+
<q-input v-model="modelValue" mask="date" :error-message="hintText" :hint="hintText" :error="hasFieldErrors" v-bind="attributes">
33
<template #append>
44
<q-icon name="event" class="cursor-pointer">
55
<q-popup-proxy cover transition-show="scale" transition-hide="scale">
@@ -25,5 +25,14 @@ const props = defineProps<{
2525
}>()
2626
2727
const { hintText, modelValue, hasFieldErrors } = useDatepickerField<any>(props)
28+
29+
const attributes = computed(() => {
30+
const { modelValue, rules, type, ...attrs} = props.field
31+
32+
return {
33+
...attrs,
34+
...props.field.wrapper,
35+
}
36+
})
2837
</script>
2938

0 commit comments

Comments
 (0)