-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy pathBBoxEntry.vue
85 lines (83 loc) · 1.84 KB
/
BBoxEntry.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<b-form-group>
<b-form-row>
<b-col>
<b-form-group label="x_min" label-for="x_min">
<b-form-input
id="x_min"
@input="updateBBoxArray($event, 0)"
:value="bbox[0]"
type="number"
no-wheel
step="any"
min="-180"
max="180"
/>
</b-form-group>
</b-col>
<b-col>
<b-form-group label="y_min" label-for="y_min">
<b-form-input
id="y_min"
@input="updateBBoxArray($event, 1)"
:value="bbox[1]"
type="number"
no-wheel
step="any"
min="-90"
max="90"
/>
</b-form-group>
</b-col>
<b-col>
<b-form-group label="x_max" label-for="x_max">
<b-form-input
id="x_max"
@input="updateBBoxArray($event, 2)"
:value="bbox[2]"
type="number"
no-wheel
step="any"
min="-180"
max="180"
/>
</b-form-group>
</b-col>
<b-col>
<b-form-group label="y_max" label-for="y_max">
<b-form-input
id="y_max"
@input="updateBBoxArray($event, 3)"
:value="bbox[3]"
type="number"
no-wheel
step="any"
min="-90"
max="90"
/>
</b-form-group>
</b-col>
</b-form-row>
</b-form-group>
</template>
<script>
import { BFormInput, BFormGroup} from 'bootstrap-vue';
export default {
name: 'BBoxEntry',
components: {
BFormGroup,
BFormInput,
},
props: {
bbox: {
type: Array,
required: true
}
},
methods: {
updateBBoxArray($event, position) {
this.$emit('updateBBoxArray', $event, position);
}
}
};
</script>