Prettified

This commit is contained in:
Leah Schumann 2023-06-29 09:01:19 -04:00
parent aefe924060
commit a0b6995347
6 changed files with 6 additions and 9 deletions

View file

@ -1,7 +1,6 @@
import { shallowMount } from "@vue/test-utils";
import dropdownQuestion from "./dropdown-question";
// Mock CMS content
const questionText = "Question Text";
const mockMixin = {

View file

@ -45,13 +45,11 @@ export default {
isRequired: Boolean,
validationRules: String,
cmsWidgetName: String,
hasError: Boolean,
hasError: Boolean,
},
setup(props) {
const uuid = uuidv4();
const dropdownId = !props.customDropdownId
? `dropdown-${uuid}`
: props.customDropdownId;
const dropdownId = !props.customDropdownId ? `dropdown-${uuid}` : props.customDropdownId;
const propsClone = Object.assign({}, props);
const modelValue = propsClone.modelValue;

View file

@ -59,7 +59,7 @@ export default {
},
},
setup() {
const uuid = uuidv4();
const uuid = uuidv4();
const modalId = `modal-${uuid}`;
const { meta, validate, resetForm } = useForm();

View file

@ -120,7 +120,7 @@ export default {
centerErrorMessage: Boolean,
},
setup(props) {
const uuid = uuidv4();
const uuid = uuidv4();
const inputId = !props.customInputId ? `input-${uuid}` : props.customInputId;
const propsClone = Object.assign({}, props);

View file

@ -1,5 +1,5 @@
<template>
<div class="address-questions" >
<div class="address-questions">
<div class="row mb-4" aria-live="polite">
<div class="col">
<textboxQuestion

View file

@ -90,7 +90,7 @@ export default {
};
},
setup(props) {
const uuid = uuidv4();
const uuid = uuidv4();
const componentId = !props.customComponentId
? `component-${uuid}`
: props.customComponentId;