mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-02-24 14:15:24 +00:00
升级vue3
This commit is contained in:
17
web-front/src/directive/index.js
Normal file
17
web-front/src/directive/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
//index.ts
|
||||
import { ObjectDirective, App, Plugin } from "vue";
|
||||
|
||||
// 自定义指令 可以引用多个
|
||||
import vClipboard from "./vClipboard";
|
||||
|
||||
// 构建指令集
|
||||
const directives = [vClipboard];
|
||||
|
||||
export default {
|
||||
install: (app) => {
|
||||
// 安装指令集
|
||||
directives.forEach((item) => {
|
||||
app.directive(item.name, item.options);
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user