246cead2b1
Resolve #2197 Resolve #3367
51 lines
633 B
Vue
51 lines
633 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
|
|
|
|
> *:not(:last-child)
|
|
margin-right 16px !important
|
|
|
|
</style>
|