@@ -60,7 +60,7 @@ import styles from '@/classes/RangeSlider-SingleThumb.json';
6060import sharedStyles from ' @/classes/RangeSlider.json' ;
6161
6262import type { LabelledProps } from ' @/components/Labelled/utils' ;
63- import type { Error } from ' @/utilities/type' ;
63+ import type { ErrorType } from ' @/utilities/type' ;
6464
6565interface SingleThumbProps {
6666 /** Adds an action to the label */
@@ -80,7 +80,7 @@ interface SingleThumbProps {
8080 /** Provide a tooltip while sliding, indicating the current value */
8181 output? : boolean ;
8282 /** Display an error message */
83- error? : Error ;
83+ error? : ErrorType ;
8484 /** Disable input */
8585 disabled? : boolean ;
8686}
@@ -90,7 +90,6 @@ const slots = useSlots();
9090
9191const emits = defineEmits <{
9292 (e : ' input' , value : number , id : string ): void ;
93- (e : ' update:modelValue' , value : number , id : string ): void ;
9493 (e : ' focus' ): void ;
9594 (e : ' blur' ): void ;
9695}>();
@@ -127,7 +126,6 @@ const className = computed(() => classNames(
127126));
128127
129128const handleChange = (event : Event ) => {
130- emits (' update:modelValue' , parseFloat ((event .target as HTMLInputElement ).value ), props .id );
131129 emits (' input' , parseFloat ((event .target as HTMLInputElement ).value ), props .id );
132130}
133131 </script >
0 commit comments