Merge branch 'previewFix'
This commit is contained in:
commit
ede48ab034
@ -38,7 +38,6 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
Ref,
|
Ref,
|
||||||
InjectionKey,
|
InjectionKey,
|
||||||
inject,
|
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import {useStore} from "../js/store";
|
import {useStore} from "../js/store";
|
||||||
import type {DebouncedFunc} from "lodash";
|
import type {DebouncedFunc} from "lodash";
|
||||||
@ -47,10 +46,6 @@ export const imageViewerKey = Symbol() as InjectionKey<Ref<typeof ImageViewer |
|
|||||||
const contextMenuKey = Symbol() as InjectionKey<Ref<typeof ContextMenu | null>>;
|
const contextMenuKey = Symbol() as InjectionKey<Ref<typeof ContextMenu | null>>;
|
||||||
const confirmDialogKey = Symbol() as InjectionKey<Ref<typeof ConfirmDialog | null>>;
|
const confirmDialogKey = Symbol() as InjectionKey<Ref<typeof ConfirmDialog | null>>;
|
||||||
|
|
||||||
export const useImageViewer = () => {
|
|
||||||
return inject(imageViewerKey) as Ref<typeof ImageViewer | null>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "App",
|
name: "App",
|
||||||
components: {
|
components: {
|
||||||
|
@ -456,6 +456,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
link,
|
link,
|
||||||
|
channel,
|
||||||
image,
|
image,
|
||||||
transform,
|
transform,
|
||||||
closeViewer,
|
closeViewer,
|
||||||
|
Loading…
Reference in New Issue
Block a user