Conformance: time duration component add a comment.

This commit is contained in:
chiayin
2023-08-29 14:47:53 +08:00
parent 89aa346b8f
commit 2b90c02a8c
2 changed files with 40 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ export default {
},
},
methods: {
/**
* set props values
*/
setTimeValue() {
// 深拷貝原始 timeData 的內容
this.minVuemin = JSON.parse(JSON.stringify(this.timeData.min));
@@ -61,9 +64,17 @@ export default {
this.maxVuemin = JSON.parse(JSON.stringify(this.timeData.min));
this.maxVuemax = JSON.parse(JSON.stringify(this.timeData.max));
},
/**
* get min total seconds
* @param {Number} e
*/
minTotalSeconds(e) {
this.timeRangeMin = e;
},
/**
* get min total seconds
* @param {Number} e
*/
maxTotalSeconds(e) {
this.timeRangeMax = e;
this.updateMax = e;