Skip to content

Commit 284364a

Browse files
committed
fix: reactivity lost on direct access to cropperKeys
1 parent c4659bf commit 284364a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ModernCropper.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import Cropper from 'cropperjs'
3-
import { nextTick, onMounted, reactive, ref, watch } from 'vue'
3+
import { nextTick, onMounted, reactive, ref, toRefs, watch } from 'vue'
44
import type { SetNonNullable } from 'type-fest'
55
66
const {
@@ -77,7 +77,7 @@ type DiscriminatedExpose = { onCropperMounted: typeof onCropperMounted }
7777
)
7878
7979
defineExpose(reactive({
80-
...cropperKeys,
80+
...toRefs(cropperKeys),
8181
8282
cropperMounted,
8383
onCropperMounted,

0 commit comments

Comments
 (0)