Showing
5 changed files
with
22 additions
and
3 deletions
| ... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
| 9 | "version": "1.0.0", | 9 | "version": "1.0.0", |
| 10 | "dependencies": { | 10 | "dependencies": { |
| 11 | "@vant/area-data": "^1.3.1", | 11 | "@vant/area-data": "^1.3.1", |
| 12 | + "@vant/touch-emulator": "^1.4.0", | ||
| 12 | "@vitejs/plugin-legacy": "^1.8.2", | 13 | "@vitejs/plugin-legacy": "^1.8.2", |
| 13 | "@vueuse/core": "^8.5.0", | 14 | "@vueuse/core": "^8.5.0", |
| 14 | "animate.css": "^4.1.1", | 15 | "animate.css": "^4.1.1", |
| ... | @@ -599,6 +600,12 @@ | ... | @@ -599,6 +600,12 @@ |
| 599 | "integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==", | 600 | "integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==", |
| 600 | "license": "MIT" | 601 | "license": "MIT" |
| 601 | }, | 602 | }, |
| 603 | + "node_modules/@vant/touch-emulator": { | ||
| 604 | + "version": "1.4.0", | ||
| 605 | + "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz", | ||
| 606 | + "integrity": "sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw==", | ||
| 607 | + "license": "MIT" | ||
| 608 | + }, | ||
| 602 | "node_modules/@vant/use": { | 609 | "node_modules/@vant/use": { |
| 603 | "version": "1.4.3", | 610 | "version": "1.4.3", |
| 604 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz", | 611 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz", |
| ... | @@ -6620,6 +6627,11 @@ | ... | @@ -6620,6 +6627,11 @@ |
| 6620 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz", | 6627 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz", |
| 6621 | "integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==" | 6628 | "integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==" |
| 6622 | }, | 6629 | }, |
| 6630 | + "@vant/touch-emulator": { | ||
| 6631 | + "version": "1.4.0", | ||
| 6632 | + "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz", | ||
| 6633 | + "integrity": "sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw==" | ||
| 6634 | + }, | ||
| 6623 | "@vant/use": { | 6635 | "@vant/use": { |
| 6624 | "version": "1.4.3", | 6636 | "version": "1.4.3", |
| 6625 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz", | 6637 | "resolved": "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz", | ... | ... |
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| 13 | }, | 13 | }, |
| 14 | "dependencies": { | 14 | "dependencies": { |
| 15 | "@vant/area-data": "^1.3.1", | 15 | "@vant/area-data": "^1.3.1", |
| 16 | + "@vant/touch-emulator": "^1.4.0", | ||
| 16 | "@vitejs/plugin-legacy": "^1.8.2", | 17 | "@vitejs/plugin-legacy": "^1.8.2", |
| 17 | "@vueuse/core": "^8.5.0", | 18 | "@vueuse/core": "^8.5.0", |
| 18 | "animate.css": "^4.1.1", | 19 | "animate.css": "^4.1.1", | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-04-18 15:59:42 | 2 | * @Date: 2022-04-18 15:59:42 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-08-29 16:13:49 | 4 | + * @LastEditTime: 2022-11-21 15:42:14 |
| 5 | * @FilePath: /data-table/src/utils/tools.js | 5 | * @FilePath: /data-table/src/utils/tools.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -24,7 +24,7 @@ const wxInfo = () => { | ... | @@ -24,7 +24,7 @@ const wxInfo = () => { |
| 24 | let isIpad = u.indexOf('iPad') > -1; // iPad平台 | 24 | let isIpad = u.indexOf('iPad') > -1; // iPad平台 |
| 25 | let uAgent = navigator.userAgent.toLowerCase(); | 25 | let uAgent = navigator.userAgent.toLowerCase(); |
| 26 | let isWeiXin = (uAgent.match(/MicroMessenger/i) == 'micromessenger') ? true : false; | 26 | let isWeiXin = (uAgent.match(/MicroMessenger/i) == 'micromessenger') ? true : false; |
| 27 | - let isPC = (uAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) ? false : true; | 27 | + let isPC = (uAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|micromessenger)/i)) ? false : true; |
| 28 | return { | 28 | return { |
| 29 | isAndroid, | 29 | isAndroid, |
| 30 | isiOS, | 30 | isiOS, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-21 13:40:08 | 4 | + * @LastEditTime: 2022-11-21 15:38:24 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -28,6 +28,7 @@ | ... | @@ -28,6 +28,7 @@ |
| 28 | </template> | 28 | </template> |
| 29 | 29 | ||
| 30 | <script setup> | 30 | <script setup> |
| 31 | +import "@vant/touch-emulator"; | ||
| 31 | import { createComponentType } from "@/hooks/useComponentType"; | 32 | import { createComponentType } from "@/hooks/useComponentType"; |
| 32 | import _ from "lodash"; | 33 | import _ from "lodash"; |
| 33 | import { useRoute } from "vue-router"; | 34 | import { useRoute } from "vue-router"; | ... | ... |
| ... | @@ -255,6 +255,11 @@ | ... | @@ -255,6 +255,11 @@ |
| 255 | "resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz" | 255 | "resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz" |
| 256 | "version" "1.3.0" | 256 | "version" "1.3.0" |
| 257 | 257 | ||
| 258 | +"@vant/touch-emulator@^1.4.0": | ||
| 259 | + "integrity" "sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw==" | ||
| 260 | + "resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz" | ||
| 261 | + "version" "1.4.0" | ||
| 262 | + | ||
| 258 | "@vant/use@^1.4.3": | 263 | "@vant/use@^1.4.3": |
| 259 | "integrity" "sha512-rSnETN7P9qT1WbItMpQxBqe3cHeK2ZFYp1sCxWUXaTeI71TqA8sOdzC36ledZ36NQgFNTch9fsRPYOkrCgZfQA==" | 264 | "integrity" "sha512-rSnETN7P9qT1WbItMpQxBqe3cHeK2ZFYp1sCxWUXaTeI71TqA8sOdzC36ledZ36NQgFNTch9fsRPYOkrCgZfQA==" |
| 260 | "resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz" | 265 | "resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz" | ... | ... |
-
Please register or login to post a comment