Sharkey/src/client/app/common/views/components/ui/horizon-group.vue
syuilo c047324b42
🎨
2018-12-03 09:43:07 +09:00

51 lines
659 B
Vue

<template>
<div class="vnxwkwuf" :class="{ inputs, noGrow }">
<slot></slot>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
provide: {
horizonGrouped: true
},
props: {
inputs: {
type: Boolean,
required: false,
default: false
},
noGrow: {
type: Boolean,
required: false,
default: false
}
}
});
</script>
<style lang="stylus" scoped>
.vnxwkwuf
margin 16px 0
&.inputs
margin 32px 0
&.fit-top
margin-top 0
&.fit-bottom
margin-bottom 0
&:not(.noGrow)
display flex
> *
flex 1
min-width 0 !important
> *:not(:last-child)
margin-right 16px !important
</style>