parent
14ea755a51
commit
3ca855ff06
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div class="range-input">
|
||||
<va-input placeholder="1.59" v-model="reso_min" input-class="text--center"
|
||||
:mask="{ numeral: true, delimiter: '', numeralDecimalMark: ',' }" @change="applyFilter" />
|
||||
<va-input placeholder="264" v-model="reso_max" input-class="text--center"
|
||||
:mask="{ numeral: true, delimiter: '', numeralDecimalMark: ',' }" @change="applyFilter" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "resolution-filter",
|
||||
data() {
|
||||
return {
|
||||
// SELECT MIN(resolution), MAX(resolution) FROM geodata;
|
||||
reso_min: "1.59",
|
||||
reso_max: "264",
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
applyFilter() {
|
||||
console.log("asd");
|
||||
const filter = { "resolution": [this.reso_min, this.reso_max] }
|
||||
this.$emit('filter', filter, this.name)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="css">
|
||||
.range-input {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
gap: 5rem
|
||||
}
|
||||
|
||||
.range-input>div {
|
||||
--va-input-wrapper-min-width: 4rem;
|
||||
width: 4rem;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in new issue