diff --git a/components.d.ts b/components.d.ts index 1300179d..21255064 100644 --- a/components.d.ts +++ b/components.d.ts @@ -254,6 +254,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 9c85fc05..efa7e974 100644 --- a/src/tools/temperature-converter/temperature-converter.vue +++ b/src/tools/temperature-converter/temperature-converter.vue @@ -94,7 +94,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(); }