3434</template >
3535
3636<script setup lang="ts">
37- import type { FormUiTheme , FormSize , FormWeight } from " ~/types/forms/types.forms" ;
37+ import type { FormUiTheme , FormWeight } from " ~/types/forms/types.forms" ;
3838
3939interface Props {
4040 id: string ;
@@ -47,7 +47,6 @@ interface Props {
4747 placeholder? : string ;
4848 required? : boolean ;
4949 theme? : FormUiTheme ;
50- size? : FormSize ;
5150 weight? : FormWeight ;
5251 fieldHasError? : boolean ;
5352 styleClassPassthrough? : string | string [];
@@ -58,7 +57,6 @@ const props = withDefaults(defineProps<Props>(), {
5857 placeholder: " " ,
5958 required: false ,
6059 theme: " default" ,
61- size: " medium" ,
6260 weight: " wght-400" ,
6361 fieldHasError: false ,
6462 styleClassPassthrough : () => [],
@@ -77,15 +75,15 @@ const inputRef = ref<HTMLInputElement | null>(null);
7775const toolTipWidth = ref (0 );
7876const toolTipLowWidth = ref (0 );
7977const toolTipHighWidth = ref (0 );
80- const toolTipMargin = 20 ;
78+ // const toolTipMargin = 20;
8179
82- const toolTipLowContainerEnd = computed (() => {
83- return Math .floor (((toolTipHighWidth .value + toolTipMargin ) / toolTipWidth .value ) * 100 ) + " %" ;
84- });
80+ // const toolTipLowContainerEnd = computed(() => {
81+ // return Math.floor(((toolTipHighWidth.value + toolTipMargin) / toolTipWidth.value) * 100) + "%";
82+ // });
8583
86- const toolTipHighContainerStart = computed (() => {
87- return Math .floor (((toolTipWidth .value - (toolTipHighWidth .value + toolTipMargin )) / toolTipWidth .value ) * 100 ) + " %" ;
88- });
84+ // const toolTipHighContainerStart = computed(() => {
85+ // return Math.floor(((toolTipWidth.value - (toolTipHighWidth.value + toolTipMargin)) / toolTipWidth.value) * 100) + "%";
86+ // });
8987
9088const lowValue = computed (() => {
9189 return Math .floor (Number (props .max ) - Number (highValue .value ));
@@ -105,9 +103,6 @@ const updateBoxSizes = () => {
105103 toolTipWidth .value = toolTip .value ?.offsetWidth || 0 ;
106104 toolTipLowWidth .value = toolTipLow .value ?.offsetWidth || 0 ;
107105 toolTipHighWidth .value = toolTipHigh .value ?.offsetWidth || 0 ;
108- console .log (" toolTipWidth" , toolTipWidth .value );
109- console .log (" toolTipLowContainerEnd" , toolTipLowContainerEnd .value );
110- console .log (" toolTipHighContainerStart" , toolTipHighContainerStart .value );
111106};
112107
113108onMounted (() => {
0 commit comments