-
-
-
-
-
-
@@ -56,17 +61,22 @@ import { computed } from 'vue'
const emit = defineEmits(['update:modelValue', 'on-change'])
-enum Size
-{
- small = 'w-10 h-5',
- default = 'w-14 h-6',
- large = 'w-20 h-8'
+enum Size {
+ small = 'h-5 min-w-[2.5rem]',
+ default = 'h-6 min-w-[3.5rem]',
+ large = 'h-8 min-w-[5rem]'
}
const ToggleSize = {
- small: 'w-5 h-4',
- default: 'w-6 h-6',
- large: 'w-8 h-6'
+ small: 'w-4 h-4',
+ default: 'w-5 h-5',
+ large: 'w-7 h-7'
+}
+
+const TextSize = {
+ small: 'text-xs',
+ default: 'text-sm',
+ large: 'text-base'
}
const props = withDefaults(defineProps<{
@@ -104,4 +114,4 @@ const onChange = (event: Event) => {
emit('update:modelValue', newValue)
emit('on-change', newValue)
}
-
+
\ No newline at end of file