diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-02 09:45:39 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-02 09:45:39 +0300 |
commit | 2115ab9778fcabcec6293161fc8f6254219bfb03 (patch) | |
tree | 35da3f90cd57f97c597f258e1a15556a36de54c5 /src/components | |
parent | 20f718fc04f3ad8b8be0236f23717a63c5e8757c (diff) | |
download | webui-vue-2115ab9778fcabcec6293161fc8f6254219bfb03.tar.xz |
add reset zoom, switch period
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/_sila/Global/TableDatePicker.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/_sila/Global/TableDatePicker.vue b/src/components/_sila/Global/TableDatePicker.vue index 0eef0f8c..397c507f 100644 --- a/src/components/_sila/Global/TableDatePicker.vue +++ b/src/components/_sila/Global/TableDatePicker.vue @@ -20,9 +20,11 @@ export default { type: String, default: 'hour', }, - switchTimeScale: { - type: Function, - required: true, + }, + + methods: { + switchTimeScale(period) { + this.$emit('changePeriod', period); }, }, }; |