From fd1a44224e414d13ca51edecf2e2e133171c82ee Mon Sep 17 00:00:00 2001 From: Prabhu Date: Mon, 14 Dec 2020 19:12:21 +0530 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=86=20touch=20=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +- src/components/Menu.vue | 9 ++ src/components/MenuBar.vue | 174 +++++++++++++++++++----------- src/components/MenuBarItem.scss | 14 +-- src/components/MenuBarItem.vue | 5 +- src/components/menu.scss | 32 +++--- src/models/MenuBarDockPosition.ts | 3 +- src/utils/DragUtil.ts | 30 ++++-- yarn.lock | 24 ++--- 9 files changed, 188 insertions(+), 109 deletions(-) diff --git a/package.json b/package.json index f2c69bd..7d07952 100644 --- a/package.json +++ b/package.json @@ -50,16 +50,16 @@ "@vue/compiler-sfc": "^3.0.4", "eslint": "^7.15.0", "eslint-plugin-vue": "^7.2.0", - "husky": "^4.3.5", + "husky": "^4.3.6", "lint-staged": "^10.5.3", - "rollup": "^2.34.2", + "rollup": "^2.35.0", "rollup-plugin-scss": "^2.6.1", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-vue": "^6.0.0", "sass": "^1.30.0", "stylelint": "^13.8.0", "stylelint-config-standard": "^20.0.0", - "typescript": "^4.1.2", + "typescript": "^4.1.3", "vite": "^1.0.0-rc.13", "vue": "^3.0.4" }, diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 16c2328..e2f5c73 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -42,6 +42,14 @@ disable: item.disable, }) " + @touchstart=" + handleSelection({ + event: $event, + name: item.name, + isParent: !!item.menu, + disable: item.disable, + }) + " >