Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzj-java
uni-app
提交
0101fb08
U
uni-app
项目概览
wzj-java
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0101fb08
编写于
10月 23, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: 3.0.2
上级
14f1284d
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
3580 addition
and
2948 deletion
+3580
-2948
packages/uni-h5-vue/dist/vue.runtime.esm.js
packages/uni-h5-vue/dist/vue.runtime.esm.js
+1560
-1331
packages/uni-h5-vue/lib/vue.runtime.esm.js
packages/uni-h5-vue/lib/vue.runtime.esm.js
+1560
-1331
packages/uni-h5/dist/uni-h5.esm.js
packages/uni-h5/dist/uni-h5.esm.js
+198
-12
packages/uni-mp-alipay/dist/uni.api.esm.js
packages/uni-mp-alipay/dist/uni.api.esm.js
+2
-15
packages/uni-mp-baidu/dist/uni.api.esm.js
packages/uni-mp-baidu/dist/uni.api.esm.js
+2
-15
packages/uni-mp-qq/dist/uni.api.esm.js
packages/uni-mp-qq/dist/uni.api.esm.js
+2
-15
packages/uni-mp-toutiao/dist/uni.api.esm.js
packages/uni-mp-toutiao/dist/uni.api.esm.js
+2
-15
packages/uni-mp-vue/dist/vue.runtime.esm.js
packages/uni-mp-vue/dist/vue.runtime.esm.js
+125
-92
packages/uni-mp-vue/lib/vue.runtime.esm.js
packages/uni-mp-vue/lib/vue.runtime.esm.js
+125
-92
packages/uni-mp-weixin/dist/uni.api.esm.js
packages/uni-mp-weixin/dist/uni.api.esm.js
+2
-15
packages/uni-quickapp-webview/dist/uni.api.esm.js
packages/uni-quickapp-webview/dist/uni.api.esm.js
+2
-15
未找到文件。
packages/uni-h5-vue/dist/vue.runtime.esm.js
浏览文件 @
0101fb08
此差异已折叠。
点击以展开。
packages/uni-h5-vue/lib/vue.runtime.esm.js
浏览文件 @
0101fb08
此差异已折叠。
点击以展开。
packages/uni-h5/dist/uni-h5.esm.js
浏览文件 @
0101fb08
...
...
@@ -1544,6 +1544,192 @@ const canIUse = /* @__PURE__ */ createApi({type: API_TYPE_SYNC, name: "canIUse"}
const
makePhoneCall
=
/* @__PURE__ */
createApi
({
type
:
API_TYPE_ASYNC
,
name
:
"
makePhoneCall
"
},
(
option
)
=>
{
window
.
location
.
href
=
`tel:
${
option
.
phoneNumber
}
`
;
},
MakePhoneCallProtocol
);
var
attrs$1
=
[
"
top
"
,
"
left
"
,
"
right
"
,
"
bottom
"
];
var
inited$1
;
var
elementComputedStyle$1
=
{};
var
support$1
;
function
getSupport$1
()
{
if
(
!
(
"
CSS
"
in
window
)
||
typeof
CSS
.
supports
!=
"
function
"
)
{
support$1
=
""
;
}
else
if
(
CSS
.
supports
(
"
top: env(safe-area-inset-top)
"
))
{
support$1
=
"
env
"
;
}
else
if
(
CSS
.
supports
(
"
top: constant(safe-area-inset-top)
"
))
{
support$1
=
"
constant
"
;
}
else
{
support$1
=
""
;
}
return
support$1
;
}
function
init$1
()
{
support$1
=
typeof
support$1
===
"
string
"
?
support$1
:
getSupport$1
();
if
(
!
support$1
)
{
attrs$1
.
forEach
(
function
(
attr
)
{
elementComputedStyle$1
[
attr
]
=
0
;
});
return
;
}
function
setStyle
(
el
,
style
)
{
var
elStyle
=
el
.
style
;
Object
.
keys
(
style
).
forEach
(
function
(
key
)
{
var
val
=
style
[
key
];
elStyle
[
key
]
=
val
;
});
}
var
cbs
=
[];
function
parentReady
(
callback
)
{
if
(
callback
)
{
cbs
.
push
(
callback
);
}
else
{
cbs
.
forEach
(
function
(
cb
)
{
cb
();
});
}
}
var
passiveEvents
=
false
;
try
{
var
opts
=
Object
.
defineProperty
({},
"
passive
"
,
{
get
:
function
()
{
passiveEvents
=
{
passive
:
true
};
}
});
window
.
addEventListener
(
"
test
"
,
null
,
opts
);
}
catch
(
e
)
{
}
function
addChild
(
parent
,
attr
)
{
var
a1
=
document
.
createElement
(
"
div
"
);
var
a2
=
document
.
createElement
(
"
div
"
);
var
a1Children
=
document
.
createElement
(
"
div
"
);
var
a2Children
=
document
.
createElement
(
"
div
"
);
var
W
=
100
;
var
MAX
=
1
e4
;
var
aStyle
=
{
position
:
"
absolute
"
,
width
:
W
+
"
px
"
,
height
:
"
200px
"
,
boxSizing
:
"
border-box
"
,
overflow
:
"
hidden
"
,
paddingBottom
:
support$1
+
"
(safe-area-inset-
"
+
attr
+
"
)
"
};
setStyle
(
a1
,
aStyle
);
setStyle
(
a2
,
aStyle
);
setStyle
(
a1Children
,
{
transition
:
"
0s
"
,
animation
:
"
none
"
,
width
:
"
400px
"
,
height
:
"
400px
"
});
setStyle
(
a2Children
,
{
transition
:
"
0s
"
,
animation
:
"
none
"
,
width
:
"
250%
"
,
height
:
"
250%
"
});
a1
.
appendChild
(
a1Children
);
a2
.
appendChild
(
a2Children
);
parent
.
appendChild
(
a1
);
parent
.
appendChild
(
a2
);
parentReady
(
function
()
{
a1
.
scrollTop
=
a2
.
scrollTop
=
MAX
;
var
a1LastScrollTop
=
a1
.
scrollTop
;
var
a2LastScrollTop
=
a2
.
scrollTop
;
function
onScroll
()
{
if
(
this
.
scrollTop
===
(
this
===
a1
?
a1LastScrollTop
:
a2LastScrollTop
))
{
return
;
}
a1
.
scrollTop
=
a2
.
scrollTop
=
MAX
;
a1LastScrollTop
=
a1
.
scrollTop
;
a2LastScrollTop
=
a2
.
scrollTop
;
attrChange$1
(
attr
);
}
a1
.
addEventListener
(
"
scroll
"
,
onScroll
,
passiveEvents
);
a2
.
addEventListener
(
"
scroll
"
,
onScroll
,
passiveEvents
);
});
var
computedStyle
=
getComputedStyle
(
a1
);
Object
.
defineProperty
(
elementComputedStyle$1
,
attr
,
{
configurable
:
true
,
get
:
function
()
{
return
parseFloat
(
computedStyle
.
paddingBottom
);
}
});
}
var
parentDiv
=
document
.
createElement
(
"
div
"
);
setStyle
(
parentDiv
,
{
position
:
"
absolute
"
,
left
:
"
0
"
,
top
:
"
0
"
,
width
:
"
0
"
,
height
:
"
0
"
,
zIndex
:
"
-1
"
,
overflow
:
"
hidden
"
,
visibility
:
"
hidden
"
});
attrs$1
.
forEach
(
function
(
key
)
{
addChild
(
parentDiv
,
key
);
});
document
.
body
.
appendChild
(
parentDiv
);
parentReady
();
inited$1
=
true
;
}
function
getAttr$1
(
attr
)
{
if
(
!
inited$1
)
{
init$1
();
}
return
elementComputedStyle$1
[
attr
];
}
var
changeAttrs$1
=
[];
function
attrChange$1
(
attr
)
{
if
(
!
changeAttrs$1
.
length
)
{
setTimeout
(
function
()
{
var
style
=
{};
changeAttrs$1
.
forEach
(
function
(
attr2
)
{
style
[
attr2
]
=
elementComputedStyle$1
[
attr2
];
});
changeAttrs$1
.
length
=
0
;
callbacks$1
.
forEach
(
function
(
callback
)
{
callback
(
style
);
});
},
0
);
}
changeAttrs$1
.
push
(
attr
);
}
var
callbacks$1
=
[];
function
onChange$1
(
callback
)
{
if
(
!
getSupport$1
())
{
return
;
}
if
(
!
inited$1
)
{
init$1
();
}
if
(
typeof
callback
===
"
function
"
)
{
callbacks$1
.
push
(
callback
);
}
}
function
offChange$1
(
callback
)
{
var
index2
=
callbacks$1
.
indexOf
(
callback
);
if
(
index2
>=
0
)
{
callbacks$1
.
splice
(
index2
,
1
);
}
}
var
safeAreaInsets$1
=
{
get
support
()
{
return
(
typeof
support$1
===
"
string
"
?
support$1
:
getSupport$1
()).
length
!=
0
;
},
get
top
()
{
return
getAttr$1
(
"
top
"
);
},
get
left
()
{
return
getAttr$1
(
"
left
"
);
},
get
right
()
{
return
getAttr$1
(
"
right
"
);
},
get
bottom
()
{
return
getAttr$1
(
"
bottom
"
);
},
onChange
:
onChange$1
,
offChange
:
offChange$1
};
var
out$1
=
safeAreaInsets$1
;
const
ua
=
navigator
.
userAgent
;
const
isAndroid
=
/android/i
.
test
(
ua
);
const
isIOS$1
=
/iphone|ipad|ipod/i
.
test
(
ua
);
...
...
@@ -1557,7 +1743,7 @@ const getSystemInfoSync = /* @__PURE__ */ createApi({type: API_TYPE_SYNC}, () =>
var
windowWidth
=
Math
.
min
(
window
.
innerWidth
,
document
.
documentElement
.
clientWidth
,
screenWidth
)
||
screenWidth
;
var
windowHeight
=
window
.
innerHeight
;
var
language
=
navigator
.
language
;
var
statusBarHeight
=
out
.
top
;
var
statusBarHeight
=
out
$1
.
top
;
var
osname
;
var
osversion
;
var
model
;
...
...
@@ -1616,12 +1802,12 @@ const getSystemInfoSync = /* @__PURE__ */ createApi({type: API_TYPE_SYNC}, () =>
var
system
=
`
${
osname
}
${
osversion
}
`
;
var
platform
=
osname
.
toLocaleLowerCase
();
var
safeArea
=
{
left
:
out
.
left
,
right
:
windowWidth
-
out
.
right
,
top
:
out
.
top
,
bottom
:
windowHeight
-
out
.
bottom
,
width
:
windowWidth
-
out
.
left
-
out
.
right
,
height
:
windowHeight
-
out
.
top
-
out
.
bottom
left
:
out
$1
.
left
,
right
:
windowWidth
-
out
$1
.
right
,
top
:
out
$1
.
top
,
bottom
:
windowHeight
-
out
$1
.
bottom
,
width
:
windowWidth
-
out
$1
.
left
-
out$1
.
right
,
height
:
windowHeight
-
out
$1
.
top
-
out$1
.
bottom
};
const
{
top
:
windowTop
,
bottom
:
windowBottom
}
=
getWindowOffset
();
windowHeight
-=
windowTop
;
...
...
@@ -1641,10 +1827,10 @@ const getSystemInfoSync = /* @__PURE__ */ createApi({type: API_TYPE_SYNC}, () =>
model
,
safeArea
,
safeAreaInsets
:
{
top
:
out
.
top
,
right
:
out
.
right
,
bottom
:
out
.
bottom
,
left
:
out
.
left
top
:
out
$1
.
top
,
right
:
out
$1
.
right
,
bottom
:
out
$1
.
bottom
,
left
:
out
$1
.
left
}
};
});
...
...
@@ -2763,7 +2949,7 @@ var script$8 = {
},
this
.
pullToRefresh
);
let
offset
=
uni
.
upx2px
(
refreshOptions
.
offset
);
if
(
titleNView
.
type
!==
"
none
"
&&
titleNView
.
type
!==
"
transparent
"
)
{
offset
+=
NAVBAR_HEIGHT
+
out
.
top
;
offset
+=
NAVBAR_HEIGHT
+
out
$1
.
top
;
}
refreshOptions
.
offset
=
offset
;
refreshOptions
.
height
=
uni
.
upx2px
(
refreshOptions
.
height
);
...
...
packages/uni-mp-alipay/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -450,19 +450,7 @@ function addSafeAreaInsets(fromRes, toRes) {
};
}
}
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
getProvider
=
initGetProvider
({
oauth
:
[
'
alipay
'
],
...
...
@@ -1050,8 +1038,7 @@ var protocols = /*#__PURE__*/Object.freeze({
saveImageToPhotosAlbum
:
saveImageToPhotosAlbum
,
saveVideoToPhotosAlbum
:
saveVideoToPhotosAlbum
,
chooseAddress
:
chooseAddress
,
redirectTo
:
redirectTo
,
createCanvasContext
:
createCanvasContext
redirectTo
:
redirectTo
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-mp-baidu/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -487,19 +487,7 @@ const getSystemInfo = {
returnValue
:
addSafeAreaInsets
};
const
getSystemInfoSync
=
getSystemInfo
;
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
getProvider
=
initGetProvider
({
oauth
:
[
'
baidu
'
],
...
...
@@ -617,8 +605,7 @@ var protocols = /*#__PURE__*/Object.freeze({
redirectTo
:
redirectTo
,
previewImage
:
previewImage
,
getSystemInfo
:
getSystemInfo
,
getSystemInfoSync
:
getSystemInfoSync
,
createCanvasContext
:
createCanvasContext
getSystemInfoSync
:
getSystemInfoSync
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-mp-qq/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -487,19 +487,7 @@ const getSystemInfo = {
returnValue
:
addSafeAreaInsets
};
const
getSystemInfoSync
=
getSystemInfo
;
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
getProvider
=
initGetProvider
({
oauth
:
[
'
qq
'
],
...
...
@@ -518,8 +506,7 @@ var protocols = /*#__PURE__*/Object.freeze({
redirectTo
:
redirectTo
,
previewImage
:
previewImage
,
getSystemInfo
:
getSystemInfo
,
getSystemInfoSync
:
getSystemInfoSync
,
createCanvasContext
:
createCanvasContext
getSystemInfoSync
:
getSystemInfoSync
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-mp-toutiao/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -472,19 +472,7 @@ const previewImage = {
};
}
};
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
getProvider
=
initGetProvider
({
oauth
:
[
'
toutiao
'
],
...
...
@@ -586,8 +574,7 @@ var protocols = /*#__PURE__*/Object.freeze({
requestPayment
:
requestPayment
,
getFileInfo
:
getFileInfo
,
redirectTo
:
redirectTo
,
previewImage
:
previewImage
,
createCanvasContext
:
createCanvasContext
previewImage
:
previewImage
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-mp-vue/dist/vue.runtime.esm.js
浏览文件 @
0101fb08
此差异已折叠。
点击以展开。
packages/uni-mp-vue/lib/vue.runtime.esm.js
浏览文件 @
0101fb08
此差异已折叠。
点击以展开。
packages/uni-mp-weixin/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -487,19 +487,7 @@ const getSystemInfo = {
returnValue
:
addSafeAreaInsets
};
const
getSystemInfoSync
=
getSystemInfo
;
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
getProvider
=
initGetProvider
({
oauth
:
[
'
weixin
'
],
...
...
@@ -518,8 +506,7 @@ var protocols = /*#__PURE__*/Object.freeze({
redirectTo
:
redirectTo
,
previewImage
:
previewImage
,
getSystemInfo
:
getSystemInfo
,
getSystemInfoSync
:
getSystemInfoSync
,
createCanvasContext
:
createCanvasContext
getSystemInfoSync
:
getSystemInfoSync
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
packages/uni-quickapp-webview/dist/uni.api.esm.js
浏览文件 @
0101fb08
...
...
@@ -487,19 +487,7 @@ const getSystemInfo = {
returnValue
:
addSafeAreaInsets
};
const
getSystemInfoSync
=
getSystemInfo
;
const
redirectTo
=
{};
const
createCanvasContext
=
{
returnValue
(
fromRes
,
toRes
)
{
const
measureText
=
fromRes
.
measureText
;
toRes
.
measureText
=
function
(
text
,
callback
)
{
const
textMetrics
=
measureText
.
call
(
this
,
text
);
if
(
typeof
callback
===
'
function
'
)
{
setTimeout
(()
=>
callback
(
textMetrics
),
0
);
}
return
textMetrics
;
};
}
};
const
redirectTo
=
{};
const
providers
=
{
oauth
:
[],
...
...
@@ -525,8 +513,7 @@ var protocols = /*#__PURE__*/Object.freeze({
redirectTo
:
redirectTo
,
previewImage
:
previewImage
,
getSystemInfo
:
getSystemInfo
,
getSystemInfoSync
:
getSystemInfoSync
,
createCanvasContext
:
createCanvasContext
getSystemInfoSync
:
getSystemInfoSync
});
var
index
=
initUni
(
shims
,
protocols
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录