File size: 469 Bytes
3a1d71c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<script setup lang="ts">
const model = defineModel<number>()
const props = defineProps<{ min: number, max: number, step: number }>()
</script>
<template>
<div class="num-input">
<a-input-number v-model:value="model" v-bind="props" />
<a-slider v-model:value="model" v-bind="props" class="slide"/>
</div>
</template>
<style lang="scss" scoped>
.num-input {
display: flex;
.slide {
flex: 1;
max-width: 256px;
margin-left: 8px;
}
}
</style> |