Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yangkaifeng
uni-app
提交
19cc90b5
U
uni-app
项目概览
yangkaifeng
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
3
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,发现更多精彩内容 >>
提交
19cc90b5
编写于
4月 20, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: tree-shaking
上级
ba3de478
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
22 deletion
+29
-22
packages/uni-api/src/helpers/base64-arraybuffer.js
packages/uni-api/src/helpers/base64-arraybuffer.js
+7
-4
packages/uni-h5/dist/uni-h5.esm.js
packages/uni-h5/dist/uni-h5.esm.js
+14
-12
packages/uni-h5/src/framework/components/page/pageBody.tsx
packages/uni-h5/src/framework/components/page/pageBody.tsx
+3
-1
packages/uni-h5/src/service/api/base/getBaseSystemInfo.ts
packages/uni-h5/src/service/api/base/getBaseSystemInfo.ts
+5
-5
未找到文件。
packages/uni-api/src/helpers/base64-arraybuffer.js
浏览文件 @
19cc90b5
...
...
@@ -11,10 +11,13 @@
var
chars
=
'
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
'
// Use a lookup table to find the index.
var
lookup
=
new
Uint8Array
(
256
)
for
(
var
i
=
0
;
i
<
chars
.
length
;
i
++
)
{
lookup
[
chars
.
charCodeAt
(
i
)]
=
i
}
var
lookup
=
/*#__PURE__*/
(
function
()
{
const
lookup
=
new
Uint8Array
(
256
)
for
(
var
i
=
0
;
i
<
chars
.
length
;
i
++
)
{
lookup
[
chars
.
charCodeAt
(
i
)]
=
i
}
return
lookup
})()
export
function
encode
(
arraybuffer
)
{
var
bytes
=
new
Uint8Array
(
arraybuffer
),
...
...
packages/uni-h5/dist/uni-h5.esm.js
浏览文件 @
19cc90b5
...
...
@@ -3693,11 +3693,11 @@ function getRealPath(filePath) {
return
filePath
;
}
const
ua
=
navigator
.
userAgent
;
const
isAndroid
=
/android/i
.
test
(
ua
);
const
isIOS$1
=
/iphone|ipad|ipod/i
.
test
(
ua
);
const
isWindows
=
ua
.
match
(
/Windows NT
([\d
|
\d
.
\d]
*
)
/i
);
const
isMac
=
/Macintosh|Mac/i
.
test
(
ua
);
const
isLinux
=
/Linux|X11/i
.
test
(
ua
);
const
isAndroid
=
/
* @__PURE__ */
/
android/i
.
test
(
ua
);
const
isIOS$1
=
/
* @__PURE__ */
/
iphone|ipad|ipod/i
.
test
(
ua
);
const
isWindows
=
/* @__PURE__ */
ua
.
match
(
/Windows NT
([\d
|
\d
.
\d]
*
)
/i
);
const
isMac
=
/
* @__PURE__ */
/
Macintosh|Mac/i
.
test
(
ua
);
const
isLinux
=
/
* @__PURE__ */
/
Linux|X11/i
.
test
(
ua
);
const
isIPadOS
=
isMac
&&
navigator
.
maxTouchPoints
>
0
;
function
getScreenFix
()
{
return
/^Apple/
.
test
(
navigator
.
vendor
)
&&
typeof
window
.
orientation
===
"
number
"
;
...
...
@@ -3732,10 +3732,13 @@ function operateVideoPlayer(videoId, vm, type, data) {
},
pageId
);
}
var
chars
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
"
;
var
lookup
=
new
Uint8Array
(
256
);
for
(
var
i$1
=
0
;
i$1
<
chars
.
length
;
i$1
++
)
{
lookup
[
chars
.
charCodeAt
(
i$1
)]
=
i$1
;
}
var
lookup
=
/* @__PURE__ */
function
()
{
const
lookup2
=
new
Uint8Array
(
256
);
for
(
var
i2
=
0
;
i2
<
chars
.
length
;
i2
++
)
{
lookup2
[
chars
.
charCodeAt
(
i2
)]
=
i2
;
}
return
lookup2
;
}();
function
encode$1
(
arraybuffer
)
{
var
bytes
=
new
Uint8Array
(
arraybuffer
),
i2
,
len
=
bytes
.
length
,
base64
=
""
;
for
(
i2
=
0
;
i2
<
len
;
i2
+=
3
)
{
...
...
@@ -5765,10 +5768,9 @@ function normalizeDataset(el) {
return
el
.
dataset
;
}
function
normalizeTarget
(
el
)
{
const
{
id
:
id2
,
tagName
,
offsetTop
,
offsetLeft
}
=
el
;
const
{
id
:
id2
,
offsetTop
,
offsetLeft
}
=
el
;
return
{
id
:
id2
,
tagName
,
dataset
:
normalizeDataset
(
el
),
offsetTop
,
offsetLeft
...
...
@@ -13348,7 +13350,7 @@ var PageBody = defineComponent({
const
refreshRef
=
__UNI_FEATURE_PULL_DOWN_REFRESH__
&&
ref
(
null
);
const
pageRefresh
=
__UNI_FEATURE_PULL_DOWN_REFRESH__
&&
pageMeta
.
enablePullDownRefresh
?
usePageRefresh
(
refreshRef
)
:
null
;
return
()
=>
{
const
pageRefreshTsx
=
createPageRefreshTsx
(
refreshRef
,
pageMeta
);
const
pageRefreshTsx
=
__UNI_FEATURE_PULL_DOWN_REFRESH__
&&
createPageRefreshTsx
(
refreshRef
,
pageMeta
);
return
createVNode
(
Fragment
,
null
,
[
pageRefreshTsx
,
createVNode
(
"
uni-page-wrapper
"
,
pageRefresh
,
[
createVNode
(
"
uni-page-body
"
,
null
,
[
renderSlot
(
ctx
.
slots
,
"
default
"
)])],
16
)]);
};
}
...
...
packages/uni-h5/src/framework/components/page/pageBody.tsx
浏览文件 @
19cc90b5
...
...
@@ -21,7 +21,9 @@ export default defineComponent({
:
null
return
()
=>
{
const
pageRefreshTsx
=
createPageRefreshTsx
(
refreshRef
,
pageMeta
)
const
pageRefreshTsx
=
__UNI_FEATURE_PULL_DOWN_REFRESH__
&&
createPageRefreshTsx
(
refreshRef
,
pageMeta
)
return
(
<>
{
pageRefreshTsx
}
...
...
packages/uni-h5/src/service/api/base/getBaseSystemInfo.ts
浏览文件 @
19cc90b5
export
const
ua
=
navigator
.
userAgent
export
const
isAndroid
=
/android/i
.
test
(
ua
)
export
const
isAndroid
=
/
*#__PURE__*/
/
android/i
.
test
(
ua
)
export
const
isIOS
=
/iphone|ipad|ipod/i
.
test
(
ua
)
export
const
isIOS
=
/
*#__PURE__*/
/
iphone|ipad|ipod/i
.
test
(
ua
)
export
const
isWindows
=
ua
.
match
(
/Windows NT
([\d
|
\d
.
\d]
*
)
/i
)
export
const
isWindows
=
/*#__PURE__*/
ua
.
match
(
/Windows NT
([\d
|
\d
.
\d]
*
)
/i
)
export
const
isMac
=
/Macintosh|Mac/i
.
test
(
ua
)
export
const
isMac
=
/
*#__PURE__*/
/
Macintosh|Mac/i
.
test
(
ua
)
export
const
isLinux
=
/Linux|X11/i
.
test
(
ua
)
export
const
isLinux
=
/
*#__PURE__*/
/
Linux|X11/i
.
test
(
ua
)
export
const
isIPadOS
=
isMac
&&
navigator
.
maxTouchPoints
>
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录