aboutsummaryrefslogtreecommitdiff
path: root/src/tools/math-evaluator/math-evaluator.vue
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-06-25 15:00:50 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-25 13:00:50 +0000
commit05ea54547515f7fb1eed5f31ccbde10e36041fb1 (patch)
tree535e78ce534818e9a66ff3a2335499a53db1fe4c /src/tools/math-evaluator/math-evaluator.vue
parent5c3bebfe62ab2942f6378356fbb6be40e389c70e (diff)
downloadit-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.tar.gz
it-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.tar.zst
it-tools-05ea54547515f7fb1eed5f31ccbde10e36041fb1.zip
refactor(ui): replaced some n-input to c-input (#505)
Diffstat (limited to 'src/tools/math-evaluator/math-evaluator.vue')
-rw-r--r--src/tools/math-evaluator/math-evaluator.vue10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tools/math-evaluator/math-evaluator.vue b/src/tools/math-evaluator/math-evaluator.vue
index 25e5129..3144a66 100644
--- a/src/tools/math-evaluator/math-evaluator.vue
+++ b/src/tools/math-evaluator/math-evaluator.vue
@@ -10,16 +10,12 @@ const result = computed(() => withDefaultOnError(() => evaluate(expression.value
<template>
<div>
- <n-input
+ <c-input-text
v-model:value="expression"
rows="1"
- type="textarea"
+ multiline
placeholder="Your math expression (ex: 2*sqrt(6) )..."
- size="large"
- autocomplete="off"
- autocorrect="off"
- autocapitalize="off"
- spellcheck="false"
+ raw-text
/>
<c-card v-if="result !== ''" title="Result " mt-5>