Closed ycs77 closed 2 years ago
I want listen canUndo / canRedo status in vue, but the _undoStack is not reactive in drauu.
canUndo
canRedo
_undoStack
This is simple:
Playground: https://stackblitz.com/edit/vitejs-vite-fqw3a1?file=src%2FApp.vue
I think has two solutions:
Or if you have any other best solution?
Can you add this feature?
@antfu
https://github.com/slidevjs/slidev/blob/4eb284cded5af5d24580f265341c3e551463bc8c/packages/client/logic/drawings.ts#L82-L83
I want listen
canUndo
/canRedo
status in vue, but the_undoStack
is not reactive in drauu.This is simple:
Playground: https://stackblitz.com/edit/vitejs-vite-fqw3a1?file=src%2FApp.vue
I think has two solutions:
_undoStack
to reactivecanUndo
/canRedo
statusOr if you have any other best solution?
Can you add this feature?