This commit is contained in:
2025-10-17 16:28:41 +08:00
parent 89dbdc63db
commit 2b634ed4d4
7 changed files with 2265 additions and 123 deletions

16
src/plugins/touch.js Normal file
View File

@@ -0,0 +1,16 @@
import { touchDirectives } from './touch';
/**
* 移动端触摸交互Vue插件
*/
export default {
install(app) {
// 注册所有触摸指令
Object.keys(touchDirectives).forEach(key => {
app.directive(key, touchDirectives[key]);
});
}
};
// 单独导出指令,以便按需使用
export { touchDirectives };