Conformance: feature task clear but after apply need to trued.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
<div class="mt-2">
|
||||
<p class="h2">Time Range</p>
|
||||
<div>
|
||||
<p>min: {{ timeData.min }}</p>
|
||||
<p>max: {{ timeData.max }}</p>
|
||||
<Durationjs></Durationjs>
|
||||
|
||||
</div>
|
||||
@@ -11,19 +13,31 @@
|
||||
import Durationjs from '@/components/durationjs.vue';
|
||||
|
||||
export default {
|
||||
props: ['time'],
|
||||
data() {
|
||||
return {
|
||||
timeData: {
|
||||
min: null,
|
||||
max: null,
|
||||
},
|
||||
selectTimeRange: [20, 80],
|
||||
selectedStart: null,
|
||||
selectedEnd: null,
|
||||
timeStart: ['Sec(s)', 'Min(s)', 'Hour(s)', 'Day(s)', 'Week(s)', 'Mon(s)'],
|
||||
timeEnd: ['Sec(s)', 'Min(s)', 'Hour(s)', 'Day(s)', 'Week(s)', 'Mon(s)'],
|
||||
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Durationjs,
|
||||
},
|
||||
watch: {
|
||||
time: function(newValue, oldValue) {
|
||||
this.timeData = {
|
||||
min: newValue.min,
|
||||
max: newValue.max
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.selectedStart = this.timeStart[1];
|
||||
this.selectedEnd = this.timeEnd[5];
|
||||
|
||||
Reference in New Issue
Block a user