Fixed some broken forms

This commit is contained in:
Thaum Rystra
2020-05-21 14:57:35 +02:00
parent c4a52ca744
commit 26d836767b
4 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import TextField from '/imports/ui/components/global/TextField.vue';
import TextArea from '/imports/ui/components/global/TextArea.vue'; import TextArea from '/imports/ui/components/global/TextArea.vue';
import SmartSelect from '/imports/ui/components/global/SmartSelect.vue'; import SmartSelect from '/imports/ui/components/global/SmartSelect.vue';
import SmartCombobox from '/imports/ui/components/global/SmartCombobox.vue'; import SmartCombobox from '/imports/ui/components/global/SmartCombobox.vue';
import SmartCheckbox from '/imports/ui/components/global/SmartCheckbox.vue';
import SmartSwitch from '/imports/ui/components/global/SmartSwitch.vue'; import SmartSwitch from '/imports/ui/components/global/SmartSwitch.vue';
Vue.component('DatePicker', DatePicker); Vue.component('DatePicker', DatePicker);
@@ -12,4 +13,5 @@ Vue.component('TextField', TextField);
Vue.component('TextArea', TextArea); Vue.component('TextArea', TextArea);
Vue.component('SmartSelect', SmartSelect); Vue.component('SmartSelect', SmartSelect);
Vue.component('SmartCombobox', SmartCombobox); Vue.component('SmartCombobox', SmartCombobox);
Vue.component('SmartCheckbox', SmartCheckbox);
Vue.component('SmartSwitch', SmartSwitch); Vue.component('SmartSwitch', SmartSwitch);

View File

@@ -82,7 +82,6 @@
:value="model.reset" :value="model.reset"
:error-messages="errors.reset" :error-messages="errors.reset"
:menu-props="{auto: true, lazy: true}" :menu-props="{auto: true, lazy: true}"
:debounce-time="debounceTime"
@change="change('reset', ...arguments)" @change="change('reset', ...arguments)"
/> />
</form-section> </form-section>

View File

@@ -34,8 +34,8 @@
import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js'; import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js';
export default { export default {
mixins: [propertyFormMixin],
data(){return { data(){return {
mixins: [propertyFormMixin],
damageTypes: [ damageTypes: [
{ {
value: 'bludgeoning', value: 'bludgeoning',

View File

@@ -1,7 +1,7 @@
export default { export default {
props: { props: {
model: { model: {
type: Object, type: [Object, Array],
default: () => ({}), default: () => ({}),
}, },
errors: { errors: {