fix composables
This commit is contained in:
parent
25a5dd0fc7
commit
85306c407a
|
@ -12,6 +12,7 @@ const section_count = use_section_count()
|
||||||
const extra_section = use_extra_section()
|
const extra_section = use_extra_section()
|
||||||
const total_length = use_total_length()
|
const total_length = use_total_length()
|
||||||
const min_length = use_min_length()
|
const min_length = use_min_length()
|
||||||
|
const max_size = use_max_size()
|
||||||
|
|
||||||
const controlsState = reactive({
|
const controlsState = reactive({
|
||||||
distance: section_count.value,
|
distance: section_count.value,
|
||||||
|
|
|
@ -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_extra_section = () => useState('extra_section', () => 0)
|
||||||
export const use_total_length = () => useState('total_length', () => (1000 * 5 - 100) * 0.001)
|
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_min_length = () => useState('min_length', () => 1000)
|
||||||
|
export const use_max_size = () => useState<number>('max_size', () => 13)
|
Loading…
Reference in New Issue