ops供应链系统迁移
This commit is contained in:
27
src/directives/index.ts
Normal file
27
src/directives/index.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { App, Directive } from "vue";
|
||||
|
||||
import copy from "./modules/copy";
|
||||
import waterMarker from "./modules/waterMarker";
|
||||
import draggable from "./modules/draggable";
|
||||
import debounce from "./modules/debounce";
|
||||
import throttle from "./modules/throttle";
|
||||
import longpress from "./modules/longpress";
|
||||
|
||||
const directivesList: { [key: string]: Directive } = {
|
||||
copy,
|
||||
waterMarker,
|
||||
draggable,
|
||||
debounce,
|
||||
throttle,
|
||||
longpress
|
||||
};
|
||||
|
||||
const directives = {
|
||||
install: function (app: App<Element>) {
|
||||
Object.keys(directivesList).forEach(key => {
|
||||
app.directive(key, directivesList[key]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default directives;
|
||||
Reference in New Issue
Block a user