diff --git a/components.d.ts b/components.d.ts index 3e65c3cc5..3e5aa6609 100644 --- a/components.d.ts +++ b/components.d.ts @@ -138,6 +138,9 @@ declare module '@vue/runtime-core' { NH1: typeof import('naive-ui')['NH1'] NH3: typeof import('naive-ui')['NH3'] NIcon: typeof import('naive-ui')['NIcon'] + NInputGroup: typeof import('naive-ui')['NInputGroup'] + NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel'] + NInputNumber: typeof import('naive-ui')['NInputNumber'] NLayout: typeof import('naive-ui')['NLayout'] NLayoutSider: typeof import('naive-ui')['NLayoutSider'] NMenu: typeof import('naive-ui')['NMenu'] diff --git a/src/tools/temperature-converter/temperature-converter.vue b/src/tools/temperature-converter/temperature-converter.vue index 85de3904e..dd05aa8dc 100644 --- a/src/tools/temperature-converter/temperature-converter.vue +++ b/src/tools/temperature-converter/temperature-converter.vue @@ -91,7 +91,7 @@ function update(key: TemperatureScale) { _.chain(units) .omit(key) .forEach(({ fromKelvin }, index) => { - units[index].ref = Math.floor((fromKelvin(kelvins) ?? 0) * 100) / 100; + units[index].ref = fromKelvin(kelvins) ?? 0; }) .value(); }