升级vue3

This commit is contained in:
QAIU
2024-11-04 18:56:49 +08:00
parent daa3c940ee
commit 4666e942b4
7 changed files with 1203 additions and 1029 deletions

View 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);
});
},
};