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/PixelValueSelector.vue
2024-07-18 12:51:03 +00:00

29 lines
495 B
Vue

<template>
<FormInput
:value="value"
type="number"
remove-number-input-controls
:to-value="(value) => (value ? parseInt(value) : null)"
:style="{
width: '100px',
}"
@input="$emit('input', $event)"
@blur="$emit('blur')"
>
<template #suffix>px</template>
</FormInput>
</template>
<script>
export default {
name: 'PixelValueSelector',
props: {
value: {
type: Number,
required: false,
default: null,
},
},
}
</script>