SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/images/new_image/components/Panel/PanelSqed/layouts/shared/layout.js

Summary

Maintainability
A
40 mins
Test Coverage
import SelectComponent from './select'

export default {
  components: { SelectComponent },

  props: {
    modelValue: {
      type: Object
    },
    layoutTypes: {
      type: Array,
      required: true
    }
  },

  emits: ['update:modelValue'],

  computed: {
    newType: {
      get() {
        return this.modelValue
      },
      set(value) {
        this.$emit('update:modelValue', value)
      }
    }
  }
}