diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index c668769e5..bfb470c48 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -91,6 +91,10 @@ const $props = defineProps({ type: Boolean, default: true, }, + maxWidth: { + type: [String, Boolean], + default: '800px', + }, }); const emit = defineEmits(['onFetch', 'onDataSaved']); const modelValue = computed( @@ -283,6 +287,7 @@ defineExpose({ @submit="save" @reset="reset" class="q-pa-md" + :style="maxWidth ? 'max-width: ' + maxWidth : ''" id="formModel" > @@ -371,7 +376,6 @@ defineExpose({ color: black; } #formModel { - max-width: 800px; width: 100%; } diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index 4672529c6..7a9e26186 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -93,6 +93,7 @@ const mixinRules = [ :rules="mixinRules" :lazy-rules="true" hide-bottom-space + :data-cy="$attrs.dataCy ?? $attrs.label + '_input'" >