fix composables

This commit is contained in:
Kseninia Mikhaylova 2024-06-19 13:36:47 +03:00
parent 25a5dd0fc7
commit 85306c407a
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ const section_count = use_section_count()
const extra_section = use_extra_section()
const total_length = use_total_length()
const min_length = use_min_length()
const max_size = use_max_size()
const controlsState = reactive({
distance: section_count.value,

View File

@ -12,3 +12,4 @@ export const use_section_count = () => useState('section_count', () => 5)
export const use_extra_section = () => useState('extra_section', () => 0)
export const use_total_length = () => useState('total_length', () => (1000 * 5 - 100) * 0.001)
export const use_min_length = () => useState('min_length', () => 1000)
export const use_max_size = () => useState<number>('max_size', () => 13)