UNPKG
press-ui
Version:
latest (5.0.27)
5.0.27
5.0.26
5.0.25
5.0.24
5.0.23
5.0.22
5.0.21
5.0.20
5.0.19
5.0.18
5.0.17
5.0.16
5.0.15
5.0.14
5.0.13
5.0.12
5.0.11
5.0.10
5.0.9
5.0.8
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
3.0.18
3.0.17
3.0.16
3.0.15
3.0.14
3.0.13
3.0.12
3.0.10
3.0.9
3.0.6
3.0.5
3.0.3
3.0.0
2.4.0
2.2.38
2.2.37
2.2.36
2.2.23
2.2.14
2.2.12
2.2.11
2.2.7
2.2.6
2.2.0-alpha.2
2.2.0-alpha.1
2.2.0-alpha.0
2.1.31
2.1.22
2.1.21
2.1.16
2.1.13
2.1.5
2.1.3
2.1.2
2.1.1
2.1.0
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.12
2.0.10
2.0.9
2.0.7
2.0.0
1.3.39
1.3.37
1.3.36
1.3.35
1.3.30
1.3.29
1.3.28
1.3.16
1.3.6
1.3.1
1.2.52
1.2.41
1.1.24
1.1.7
1.0.0
0.7.24
0.7.24-alpha.1
0.7.24-alpha.0
0.0.3
0.0.2
0.0.1
简单、易用的跨端组件库,兼容 Vue2 和 Vue3,同时支持 uni-app和普通 Vue 项目
novlan1.github.io/docs/press-ui/
novlan1/press-ui
press-ui
/
common
/
vue3
/
adapter-server.js
21 lines
(15 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import
{
// #ifndef VUE3
Vue
,
// #endif
}
from
'./vue'
;
export
function
getIsServer
(
) {
let
result;
// #ifndef VUE3
result =
Vue
.
prototype
.
$isServer
;
// #endif
// #ifdef VUE3
result =
typeof
window
===
'undefined'
;
// #endif
return
result; }