mirror of
https://github.com/nasa/openmct.git
synced 2025-01-30 08:04:03 +00:00
a09da30768
* no-implicit-coercion and no-unneeded-ternary * End every line with a semicolon * Spacing and formatting * Enabled semi-spacing * Applies npm run lint:fix to code after master merge * Fix merge issues * Switched operator-linebreak to 'before' Co-authored-by: Joshi <simplyrender@gmail.com>
26 lines
479 B
Vue
26 lines
479 B
Vue
<template>
|
|
<div
|
|
class="l-multipane"
|
|
:class="{
|
|
'l-multipane--vertical': type === 'vertical',
|
|
'l-multipane--horizontal': type === 'horizontal'
|
|
}"
|
|
>
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
required: true,
|
|
validator: function (value) {
|
|
return ['vertical', 'horizontal'].indexOf(value) !== -1;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script>
|