docs(ComponentExample): round width in iframe params

This commit is contained in:
Benjamin Canac
2025-01-06 12:21:58 +01:00
parent 0201a3de75
commit 2f19136fd8

View File

@@ -132,7 +132,11 @@ const optionsValues = ref(props.options?.reduce((acc, option) => {
return acc
}, {} as Record<string, any>) || {})
const urlSearchParams = computed(() => new URLSearchParams({ ...optionsValues.value, ...componentProps, width: width.value.toString() }).toString())
const urlSearchParams = computed(() => new URLSearchParams({
...optionsValues.value,
...componentProps,
width: Math.round(width.value).toString()
}).toString())
</script>
<template>