mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
29 lines
495 B
Vue
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>
|