Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
d2ce5553
U
uni-app
项目概览
DCloud
/
uni-app
7 天 前同步成功
通知
816
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d2ce5553
编写于
1月 13, 2024
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
e1a0204f
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
3025 addition
and
9 deletion
+3025
-9
packages/uni-app-plus/dist/style.css
packages/uni-app-plus/dist/style.css
+1
-1
packages/uni-cli-shared/src/logs/format.ts
packages/uni-cli-shared/src/logs/format.ts
+6
-0
packages/uni-cloud/lib/uni.plugin.js
packages/uni-cloud/lib/uni.plugin.js
+1
-1
packages/uni-h5/dist-x/uni-h5.cjs.js
packages/uni-h5/dist-x/uni-h5.cjs.js
+2
-2
packages/uni-h5/dist-x/uni-h5.es.js
packages/uni-h5/dist-x/uni-h5.es.js
+2
-2
packages/uni-shared/dist/uni-shared.d.ts
packages/uni-shared/dist/uni-shared.d.ts
+2
-2
packages/uni-uts-v1/lib/javascript/dist/index.js
packages/uni-uts-v1/lib/javascript/dist/index.js
+3011
-1
未找到文件。
packages/uni-app-plus/dist/style.css
浏览文件 @
d2ce5553
此差异已折叠。
点击以展开。
packages/uni-cli-shared/src/logs/format.ts
浏览文件 @
d2ce5553
...
@@ -45,6 +45,9 @@ const initWarnFormattersOnce = once(() => {
...
@@ -45,6 +45,9 @@ const initWarnFormattersOnce = once(() => {
})
})
export
function
formatErrMsg
(
msg
:
string
,
options
?:
LogErrorOptions
)
{
export
function
formatErrMsg
(
msg
:
string
,
options
?:
LogErrorOptions
)
{
if
(
options
&&
isInHBuilderX
())
{
options
.
timestamp
=
false
}
initErrFormattersOnce
()
initErrFormattersOnce
()
const
formatter
=
errFormatters
.
find
(({
test
})
=>
test
(
msg
,
options
))
const
formatter
=
errFormatters
.
find
(({
test
})
=>
test
(
msg
,
options
))
if
(
formatter
)
{
if
(
formatter
)
{
...
@@ -98,6 +101,9 @@ export function formatInfoMsg(
...
@@ -98,6 +101,9 @@ export function formatInfoMsg(
}
}
export
function
formatWarnMsg
(
msg
:
string
,
options
?:
LogOptions
)
{
export
function
formatWarnMsg
(
msg
:
string
,
options
?:
LogOptions
)
{
if
(
options
&&
isInHBuilderX
())
{
options
.
timestamp
=
false
}
initWarnFormattersOnce
()
initWarnFormattersOnce
()
const
formatter
=
warnFormatters
.
find
(({
test
})
=>
test
(
msg
,
options
))
const
formatter
=
warnFormatters
.
find
(({
test
})
=>
test
(
msg
,
options
))
if
(
formatter
)
{
if
(
formatter
)
{
...
...
packages/uni-cloud/lib/uni.plugin.js
浏览文件 @
d2ce5553
...
@@ -62,7 +62,7 @@ function uniCloudPlugin() {
...
@@ -62,7 +62,7 @@ function uniCloudPlugin() {
}
}
const
initUniCloudWarningOnce
=
(
0
,
uni_shared_1
.
once
)(()
=>
{
const
initUniCloudWarningOnce
=
(
0
,
uni_shared_1
.
once
)(()
=>
{
uniCloudSpaces
.
length
&&
uniCloudSpaces
.
length
&&
console
.
warn
(
'
当前项目使用了uniCloud,为避免云函数调用跨域问题,建议在HBuilderX内置浏览器里调试
,如使用外部浏览器需处理跨域
,详见:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinh5
'
);
console
.
warn
(
'
当前项目使用了uniCloud,为避免云函数调用跨域问题,建议在HBuilderX内置浏览器里调试
。如使用外部浏览器需处理跨域,请将访问页面对应的IP或域名配置在要访问的云函数所在的服务空间的跨域配置内
,详见:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinh5
'
);
});
});
function
checkProjectUniCloudDir
()
{
function
checkProjectUniCloudDir
()
{
return
!!
(
0
,
fast_glob_1
.
sync
)([
'
uniCloud-aliyun
'
,
'
uniCloud-tcb
'
,
'
uniCloud-alipay
'
],
{
return
!!
(
0
,
fast_glob_1
.
sync
)([
'
uniCloud-aliyun
'
,
'
uniCloud-tcb
'
,
'
uniCloud-alipay
'
],
{
...
...
packages/uni-h5/dist-x/uni-h5.cjs.js
浏览文件 @
d2ce5553
...
@@ -855,8 +855,8 @@ function normalizeCustomEvent(name, domEvt, el, detail) {
...
@@ -855,8 +855,8 @@ function normalizeCustomEvent(name, domEvt, el, detail) {
};
};
}
}
function
transformRpx
(
value
)
{
function
transformRpx
(
value
)
{
if
(
/
-
?\d
+
[
ur
]
px/gi
.
test
(
value
))
{
if
(
/
(
-
?(?:\d
+
\.)?\d
+
)
[
ur
]
px/gi
.
test
(
value
))
{
return
value
.
replace
(
/
(
-
?\d
+
)[
ur
]
px/gi
,
(
text
,
num
)
=>
{
return
value
.
replace
(
/
(
-
?
(?:\d
+
\.)?
\d
+
)[
ur
]
px/gi
,
(
text
,
num
)
=>
{
return
`
${
uni
.
upx2px
(
parseFloat
(
num
))}
px`
;
return
`
${
uni
.
upx2px
(
parseFloat
(
num
))}
px`
;
});
});
}
}
...
...
packages/uni-h5/dist-x/uni-h5.es.js
浏览文件 @
d2ce5553
...
@@ -2123,8 +2123,8 @@ function normalizeCustomEvent(name, domEvt, el, detail) {
...
@@ -2123,8 +2123,8 @@ function normalizeCustomEvent(name, domEvt, el, detail) {
};
};
}
}
function transformRpx(value) {
function transformRpx(value) {
if (/
-?\d+
[ur]px/gi.test(value)) {
if (/
(-?(?:\d+\.)?\d+)
[ur]px/gi.test(value)) {
return value.replace(/(-?\d+)[ur]px/gi, (text2, num) => {
return value.replace(/(-?
(?:\d+\.)?
\d+)[ur]px/gi, (text2, num) => {
return `${uni.upx2px(parseFloat(num))}px`;
return `${uni.upx2px(parseFloat(num))}px`;
});
});
}
}
...
...
packages/uni-shared/dist/uni-shared.d.ts
浏览文件 @
d2ce5553
...
@@ -257,7 +257,7 @@ Partial<UniNodeJSON | UniNodeJSONMinify>?
...
@@ -257,7 +257,7 @@ Partial<UniNodeJSON | UniNodeJSONMinify>?
export
declare
const
invokeArrayFns
:
(
fns
:
Function
[],
arg
?:
any
)
=>
any
;
export
declare
const
invokeArrayFns
:
(
fns
:
Function
[],
arg
?:
any
)
=>
any
;
export
declare
const
invokeCreateErrorHandler
:
(
app
:
App
,
createErrorHandler
:
(
app
:
App
)
=>
App
[
'
config
'
][
'
errorHandler
'
])
=>
((
err
:
unknown
,
instance
:
ComponentPublicInstance_2
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase_2
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
>
,
{}
>
|
null
,
info
:
string
)
=>
void
)
|
undefined
;
export
declare
const
invokeCreateErrorHandler
:
(
app
:
App
,
createErrorHandler
:
(
app
:
App
)
=>
App
[
'
config
'
][
'
errorHandler
'
])
=>
((
err
:
unknown
,
instance
:
ComponentPublicInstance_2
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase_2
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
,
{}
>
,
{}
,
{}
>
|
null
,
info
:
string
)
=>
void
)
|
undefined
;
export
declare
function
invokeCreateVueAppHook
(
app
:
App
):
void
;
export
declare
function
invokeCreateVueAppHook
(
app
:
App
):
void
;
...
@@ -627,7 +627,7 @@ export declare function resolveOwnerEl(instance: ComponentInternalInstance, mult
...
@@ -627,7 +627,7 @@ export declare function resolveOwnerEl(instance: ComponentInternalInstance, mult
export
declare
function
resolveOwnerEl
(
instance
:
ComponentInternalInstance
):
RendererNode
|
null
;
export
declare
function
resolveOwnerEl
(
instance
:
ComponentInternalInstance
):
RendererNode
|
null
;
export
declare
function
resolveOwnerVm
(
vm
:
ComponentInternalInstance
):
ComponentPublicInstance
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
>
,
{}
>
|
undefined
;
export
declare
function
resolveOwnerVm
(
vm
:
ComponentInternalInstance
):
ComponentPublicInstance
<
{},
{},
{},
{},
{},
{},
{},
{},
false
,
ComponentOptionsBase
<
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
any
,
{},
{},
string
,
{}
>
,
{}
,
{}
>
|
undefined
;
export
declare
const
RESPONSIVE_MIN_WIDTH
=
768
;
export
declare
const
RESPONSIVE_MIN_WIDTH
=
768
;
...
...
packages/uni-uts-v1/lib/javascript/dist/index.js
浏览文件 @
d2ce5553
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录