Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-21 16:02:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
01a00dac0fcb978c700d4daf873f7a91cfdfafda
01a00dac
1 parent
c9cf4867
fix 适配微信电脑版显示问题
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
package-lock.json
package.json
src/utils/tools.js
src/views/index.vue
yarn.lock
package-lock.json
View file @
01a00da
...
...
@@ -9,6 +9,7 @@
"version"
:
"1.0.0"
,
"dependencies"
:
{
"@vant/area-data"
:
"^1.3.1"
,
"@vant/touch-emulator"
:
"^1.4.0"
,
"@vitejs/plugin-legacy"
:
"^1.8.2"
,
"@vueuse/core"
:
"^8.5.0"
,
"animate.css"
:
"^4.1.1"
,
...
...
@@ -599,6 +600,12 @@
"integrity"
:
"sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw=="
,
"license"
:
"MIT"
},
"node_modules/@vant/touch-emulator"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz"
,
"integrity"
:
"sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw=="
,
"license"
:
"MIT"
},
"node_modules/@vant/use"
:
{
"version"
:
"1.4.3"
,
"resolved"
:
"https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz"
,
...
...
@@ -6620,6 +6627,11 @@
"resolved"
:
"https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz"
,
"integrity"
:
"sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw=="
},
"@vant/touch-emulator"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz"
,
"integrity"
:
"sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw=="
},
"@vant/use"
:
{
"version"
:
"1.4.3"
,
"resolved"
:
"https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz"
,
...
...
package.json
View file @
01a00da
...
...
@@ -13,6 +13,7 @@
},
"dependencies"
:
{
"@vant/area-data"
:
"^1.3.1"
,
"@vant/touch-emulator"
:
"^1.4.0"
,
"@vitejs/plugin-legacy"
:
"^1.8.2"
,
"@vueuse/core"
:
"^8.5.0"
,
"animate.css"
:
"^4.1.1"
,
...
...
src/utils/tools.js
View file @
01a00da
/*
* @Date: 2022-04-18 15:59:42
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-
08-29 16:13:49
* @LastEditTime: 2022-
11-21 15:42:14
* @FilePath: /data-table/src/utils/tools.js
* @Description: 文件描述
*/
...
...
@@ -24,7 +24,7 @@ const wxInfo = () => {
let
isIpad
=
u
.
indexOf
(
'iPad'
)
>
-
1
;
// iPad平台
let
uAgent
=
navigator
.
userAgent
.
toLowerCase
();
let
isWeiXin
=
(
uAgent
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
)
?
true
:
false
;
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
;
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
;
return
{
isAndroid
,
isiOS
,
...
...
src/views/index.vue
View file @
01a00da
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-21 1
3:40:08
* @LastEditTime: 2022-11-21 1
5:38:24
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -28,6 +28,7 @@
</template>
<script setup>
import "@vant/touch-emulator";
import { createComponentType } from "@/hooks/useComponentType";
import _ from "lodash";
import { useRoute } from "vue-router";
...
...
yarn.lock
View file @
01a00da
...
...
@@ -255,6 +255,11 @@
"resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fpopperjs/-/popperjs-1.3.0.tgz"
"version" "1.3.0"
"@vant/touch-emulator@^1.4.0":
"integrity" "sha512-Zt+zISV0+wpOew2S1siOJ3G22y+hapHAKmXM+FhpvWzsRc4qahaYXatCAITuuXt0EcDp7WvEeTO4F7p9AtX/pw=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2ftouch-emulator/-/touch-emulator-1.4.0.tgz"
"version" "1.4.0"
"@vant/use@^1.4.3":
"integrity" "sha512-rSnETN7P9qT1WbItMpQxBqe3cHeK2ZFYp1sCxWUXaTeI71TqA8sOdzC36ledZ36NQgFNTch9fsRPYOkrCgZfQA=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@vant%2fuse/-/use-1.4.3.tgz"
...
...
Please
register
or
login
to post a comment