chore: tweak
This commit is contained in:
parent
f79f7bd03a
commit
e2cca7dd3b
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onMounted, ref, toValue, watch } from 'vue'
|
import { onMounted, ref, toValue, watch } from 'vue'
|
||||||
import { useMediaQuery } from '@vueuse/core'
|
import { useMediaQuery } from '@vueuse/core'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
@ -30,7 +30,7 @@ function getRepeat() {
|
|||||||
return cols.sm
|
return cols.sm
|
||||||
}
|
}
|
||||||
|
|
||||||
watch([md, lg], () => {
|
watch(() => [md.value, lg.value, props.cols], () => {
|
||||||
repeat.value = getRepeat()
|
repeat.value = getRepeat()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user