Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_68066342
uni-app
提交
97d365a3
U
uni-app
项目概览
m0_68066342
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
97d365a3
编写于
3月 22, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: lint
上级
f8bfec19
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
src/core/helpers/hidpi.js
src/core/helpers/hidpi.js
+1
-1
src/core/runtime/mp/polyfill/state/proxy.js
src/core/runtime/mp/polyfill/state/proxy.js
+1
-1
src/platforms/app-plus/service/framework/plugins/lifecycle.js
...platforms/app-plus/service/framework/plugins/lifecycle.js
+2
-2
src/platforms/h5/service/index.js
src/platforms/h5/service/index.js
+1
-1
src/shared/color.js
src/shared/color.js
+5
-5
未找到文件。
src/core/helpers/hidpi.js
浏览文件 @
97d365a3
import
{
hasOwn
}
from
'
uni-shared
'
from
'
uni-shared
'
export
const
pixelRatio
=
(
function
()
{
const
canvas
=
document
.
createElement
(
'
canvas
'
)
...
...
src/core/runtime/mp/polyfill/state/proxy.js
浏览文件 @
97d365a3
import
{
noop
}
from
'
uni-shared
'
from
'
uni-shared
'
const
sharedPropertyDefinition
=
{
enumerable
:
true
,
...
...
src/platforms/app-plus/service/framework/plugins/lifecycle.js
浏览文件 @
97d365a3
...
...
@@ -14,7 +14,7 @@ import {
import
{
lifecycleMixin
}
from
'
uni-core/service/plugins/lifecycle
'
from
'
uni-core/service/plugins/lifecycle
'
import
{
VD_SYNC_VERSION
...
...
@@ -23,7 +23,7 @@ import {
import
{
ON_REACH_BOTTOM_DISTANCE
}
from
'
../../constants
'
from
'
../../constants
'
import
{
NAVBAR_HEIGHT
...
...
src/platforms/h5/service/index.js
浏览文件 @
97d365a3
...
...
@@ -9,7 +9,7 @@ import {
getApp
,
getCurrentPages
}
from
'
uni-core/service/plugins/app
'
from
'
uni-core/service/plugins/app
'
initOn
(
UniServiceJSBridge
.
on
,
{
getApp
,
...
...
src/shared/color.js
浏览文件 @
97d365a3
...
...
@@ -8,14 +8,14 @@
a: number;
}
*/
export
function
hexToRgba
(
hex
)
{
export
function
hexToRgba
(
hex
)
{
// 异常情况
if
(
!
hex
)
{
return
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
0
,
a
:
0
}
}
// 去掉 #
...
...
@@ -27,7 +27,7 @@ export function hexToRgba(hex) {
r
:
0
,
g
:
0
,
b
:
0
,
a
:
0
,
a
:
0
}
}
// 格式化 tmpHex,使其变成 rrggbb 或 rrggbbaa
...
...
@@ -36,9 +36,9 @@ export function hexToRgba(hex) {
tmpHex
=
tmpHex
.
replace
(
/
(\w{1})
/g
,
'
$1$1
'
)
}
// rgba
le
t
[
sr
,
sg
,
sb
,
sa
]
=
tmpHex
.
match
(
/
(\w{2})
/g
)
cons
t
[
sr
,
sg
,
sb
,
sa
]
=
tmpHex
.
match
(
/
(\w{2})
/g
)
// rgb
const
r
=
parseInt
(
sr
,
16
)
,
g
=
parseInt
(
sg
,
16
),
b
=
parseInt
(
sb
,
16
)
const
r
=
parseInt
(
sr
,
16
)
;
const
g
=
parseInt
(
sg
,
16
);
const
b
=
parseInt
(
sb
,
16
)
if
(
!
sa
)
{
return
{
r
,
g
,
b
,
a
:
1
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录