-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5975862
commit 7975e19
Showing
6 changed files
with
64 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
export function dropZone(dzConfig: DropZoneConfigVue = {}) { | ||
import type { VueDropZoneConfig } from "./vue/types"; | ||
|
||
export function dropZone(dzConfig: VueDropZoneConfig = {}) { | ||
//console.log("init dropzone", parent, config, globals); | ||
// end-user scope | ||
return (parent: HTMLElement, config: any, globals: any) => { | ||
console.log("dropZone plugin in index"); | ||
return () => { | ||
return { | ||
setup() {}, | ||
tearDown() {}, | ||
}; | ||
//fn() | ||
//console.log("teardown dropzone", parent, config, globals); | ||
// internal scope called by plugin | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { DropZoneConfig, DropZone } from "../../../types"; | ||
|
||
import type { Ref } from "vue"; | ||
|
||
export type VueElement = HTMLElement | Ref<HTMLElement | null>; | ||
|
||
export interface VueDropZone extends Omit<DropZone, "element"> { | ||
element: VueElement; | ||
} | ||
|
||
export interface VueDropZoneConfig extends Omit<DropZoneConfig, "dropZones"> { | ||
dropZones?: Array<VueDropZone>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters