From 0124bb334e5d7ae1774c26d1925e0e94a6ba3b0d Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 02 一月 2025 11:00:05 +0800
Subject: [PATCH] 整理PlayBar.vue组件,提取 useInputEvent

---
 src/directive/index.ts |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/directive/index.ts b/src/directive/index.ts
index 926f0be..0349581 100644
--- a/src/directive/index.ts
+++ b/src/directive/index.ts
@@ -1,6 +1,12 @@
 import type { App } from 'vue';
 import { authDirective } from '/@/directive/authDirective';
-import { wavesDirective, dragDirective,eleFocusDirective } from '/@/directive/customDirective';
+import {
+	dragDirective,
+	eleFocusDirective,
+	elementResizeDirective,
+	focusDirective,
+	wavesDirective,
+} from '/@/directive/customDirective';
 import { inputLimit } from '/@/directive/inputLimit';
 
 /**
@@ -8,6 +14,10 @@
  * @methods authDirective 鐢ㄦ埛鏉冮檺鎸囦护锛岀敤娉曪細v-auth
  * @methods wavesDirective 鎸夐挳娉㈡氮鎸囦护锛岀敤娉曪細v-waves
  * @methods dragDirective 鑷畾涔夋嫋鍔ㄦ寚浠わ紝鐢ㄦ硶锛歷-drag
+ * @methods inputLimit 杈撳叆闄愬埗鎸囦护锛岀敤娉曪細v-input-limit
+ * @methods eleFocusDirective 鍏冪礌鑱氱劍鎸囦护锛岀敤娉曪細v-ele-focus
+ * @methods elementResizeDirective 鍏冪礌灏哄鍙樺寲鎸囦护锛岀敤娉曪細v-element-resize
+ * @methods focusDirective 鍏冪礌鑱氱劍鎸囦护锛岀敤娉曪細v-focus
  */
 export function directive(app: App) {
 	// 鐢ㄦ埛鏉冮檺鎸囦护
@@ -19,5 +29,6 @@
 	// 杈撳叆闄愬埗鎸囦护
 	inputLimit(app);
 	eleFocusDirective(app);
-	
+	elementResizeDirective(app);
+	focusDirective(app);
 }

--
Gitblit v1.9.3