feat: 移植截图中心(浏览/分组/编辑/导出)
This commit is contained in:
1 parent
300df18aca
commit
b5406c2da0
34 files changed
+7954
-1124
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import type {
|
||||
ImageViewerEditorData,
|
||||
ImageViewerEditorSource,
|
||||
} from '#ui/components/image-viewer-editor/types'
|
||||
|
||||
import { createContext } from '.'
|
||||
|
||||
export interface ImageViewerEditorContext {
|
||||
loadEditorData: (source: ImageViewerEditorSource) => Promise<ImageViewerEditorData>
|
||||
onShow?: () => void
|
||||
onHide?: () => void
|
||||
}
|
||||
|
||||
export const [injectImageViewerEditor, provideImageViewerEditor] =
|
||||
createContext<ImageViewerEditorContext>('ImageViewerEditor')
|
||||
@@ -6,6 +6,7 @@ export { createContext } from './create-context'
|
||||
export * from './file-drop'
|
||||
export * from './file-picker'
|
||||
export * from './i18n'
|
||||
export * from './image-viewer-editor'
|
||||
export * from './instance-import'
|
||||
export * from './loading-state'
|
||||
export * from './modal-behavior'
|
||||
|
||||
Reference in new issue
Block a user