Prettified
This commit is contained in:
parent
aefe924060
commit
a0b6995347
6 changed files with 6 additions and 9 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { shallowMount } from "@vue/test-utils";
|
||||
import dropdownQuestion from "./dropdown-question";
|
||||
|
||||
|
||||
// Mock CMS content
|
||||
const questionText = "Question Text";
|
||||
const mockMixin = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export default {
|
|||
},
|
||||
},
|
||||
setup() {
|
||||
const uuid = uuidv4();
|
||||
const uuid = uuidv4();
|
||||
const modalId = `modal-${uuid}`;
|
||||
|
||||
const { meta, validate, resetForm } = useForm();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ export default {
|
|||
};
|
||||
},
|
||||
setup(props) {
|
||||
const uuid = uuidv4();
|
||||
const uuid = uuidv4();
|
||||
const componentId = !props.customComponentId
|
||||
? `component-${uuid}`
|
||||
: props.customComponentId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue