Skip to content

Commit

Permalink
fix(useElementSize): update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakian committed Aug 30, 2022
1 parent 5cdb340 commit 8a94d1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/useElementSize/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { stringify } from '@vueuse/docs-utils'
import { useElementSize } from '@vueuse/core'
const el = ref(null)
const size = reactive(useElementSize(el))
const size = reactive(useElementSize(el, { width: 0, height: 0 }, {
box: 'border-box',
}))
const text = stringify(size)
</script>

Expand Down

0 comments on commit 8a94d1b

Please sign in to comment.