1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/builder/components/PaddingSelector.vue
2024-07-18 12:51:03 +00:00

39 lines
945 B
Vue

<template>
<div class="padding-selector">
<FormInput
:value="value.horizontal"
type="number"
remove-number-input-controls
:to-value="(value) => (value ? parseInt(value) : null)"
class="padding-selector__input"
icon-right="iconoir-horizontal-split"
@input="$emit('input', { horizontal: $event, vertical: value.vertical })"
@blur="$emit('blur')"
/>
<FormInput
:value="value.vertical"
type="number"
remove-number-input-controls
:to-value="(value) => (value ? parseInt(value) : null)"
class="padding-selector__input"
icon-right="iconoir-vertical-split"
@input="
$emit('input', { horizontal: value.horizontal, vertical: $event })
"
@blur="$emit('blur')"
/>
</div>
</template>
<script>
export default {
name: 'PaddingSelector',
props: {
value: {
type: Object,
required: true,
},
},
}
</script>