From e1fb459beeb995d9a0db88ac1b82991f905d8473 Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Fri, 6 Oct 2023 16:45:02 +0900 Subject: [PATCH] Fix demo --- demo/src/App.vue | 1 + demo/src/InputRange.vue | 2 +- demo/src/TethrConfig.vue | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/src/App.vue b/demo/src/App.vue index 2a16097..33bd90f 100644 --- a/demo/src/App.vue +++ b/demo/src/App.vue @@ -180,6 +180,7 @@ aside overflow-y scroll border-left 2px solid #2b2b2b grid-template-columns min-content 1fr + grid-template-rows repeat(10000, min-content) .connect-button, h2, dl grid-column 1 / 3 diff --git a/demo/src/InputRange.vue b/demo/src/InputRange.vue index 4757925..7b665b7 100644 --- a/demo/src/InputRange.vue +++ b/demo/src/InputRange.vue @@ -4,7 +4,7 @@ type="range" :min="min" :max="max" - :step="step" + :step="step || 0.0001" :value="modelValue" :disabled="disabled" @change="$emit('change', $event)" diff --git a/demo/src/TethrConfig.vue b/demo/src/TethrConfig.vue index ca7d45a..ae28dab 100644 --- a/demo/src/TethrConfig.vue +++ b/demo/src/TethrConfig.vue @@ -69,7 +69,7 @@ function update(e: Event) { const value = props.config.option.values[index] props.config.update(value) } else { - const value = parseInt(str) + const value = parseFloat(str) props.config.update(value) } }