chore: Typescript: Rewrite Tariff (#21613)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
a4aa09932c
commit
b6c1fa70db
2 changed files with 6 additions and 6 deletions
|
|
@ -88,10 +88,10 @@ import TariffChart from "./TariffChart.vue";
|
|||
import { CO2_TYPE } from "@/units";
|
||||
import api, { allowClientError } from "@/api";
|
||||
import convertRates from "@/utils/convertRates";
|
||||
import type { PropType } from "vue";
|
||||
import { defineComponent, type PropType } from "vue";
|
||||
import type { Tariff, CURRENCY, Rate, SelectOption, Slot } from "@/types/evcc";
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: "SmartCostLimit",
|
||||
components: { TariffChart },
|
||||
mixins: [formatter],
|
||||
|
|
@ -358,7 +358,7 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import type { PropType } from "vue";
|
||||
import { defineComponent, type PropType } from "vue";
|
||||
import "@h2d2/shopicons/es/regular/arrowright";
|
||||
import { is12hFormat } from "@/units";
|
||||
import PlanEndIcon from "../MaterialIcon/PlanEnd.vue";
|
||||
|
|
@ -62,7 +62,7 @@ import type { Slot } from "@/types/evcc";
|
|||
|
||||
const BAR_WIDTH = 20;
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: "TariffChart",
|
||||
components: {
|
||||
PlanEndIcon,
|
||||
|
|
@ -169,7 +169,7 @@ export default {
|
|||
return is12hFormat() ? hour % 12 : hour;
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue