Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
71672262
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
751
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看板
提交
71672262
编写于
2月 22, 2023
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: bump vite from 4.1.3 to 4.1.4
上级
5c224f41
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
531 addition
and
524 deletion
+531
-524
package.json
package.json
+1
-1
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
+9
-7
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
+9
-7
packages/uni-shared/dist/uni-shared.cjs.js
packages/uni-shared/dist/uni-shared.cjs.js
+1
-1
packages/uni-shared/dist/uni-shared.d.ts
packages/uni-shared/dist/uni-shared.d.ts
+2
-0
packages/uni-shared/dist/uni-shared.es.js
packages/uni-shared/dist/uni-shared.es.js
+1
-1
pnpm-lock.yaml
pnpm-lock.yaml
+507
-506
scripts/checkVersion.js
scripts/checkVersion.js
+1
-1
未找到文件。
package.json
浏览文件 @
71672262
...
...
@@ -87,7 +87,7 @@
"
terser
"
:
"
^5.4.0
"
,
"
ts-jest
"
:
"
^29.0.3
"
,
"
typescript
"
:
"
^4.9.5
"
,
"
vite
"
:
"
4.1.
3
"
,
"
vite
"
:
"
4.1.
4
"
,
"
vue
"
:
"
3.2.47
"
,
"
vue-router
"
:
"
^4.1.6
"
,
"
yorkie
"
:
"
^2.0.0
"
...
...
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
浏览文件 @
71672262
...
...
@@ -5453,13 +5453,15 @@ function baseCreateRenderer(options, createHydrationFns) {
setupRenderEffect
(
instance
,
initialVNode
,
container
,
anchor
,
parentSuspense
,
isSVG
,
optimized
);
// fixed by xxxxxx 对根节点设置ownerid
if
(
instance
.
$wxsModules
)
{
var
el
=
resolveOwnerEl
(
instance
);
if
(
el
)
{
el
.
setAttribute
(
ATTR_V_OWNER_ID
,
instance
.
uid
);
var
{
$renderjsModules
}
=
instance
.
type
;
$renderjsModules
&&
el
.
setAttribute
(
ATTR_V_RENDERJS
,
$renderjsModules
);
var
els
=
resolveOwnerEl
(
instance
,
true
);
if
(
els
.
length
)
{
els
.
forEach
(
el
=>
{
el
.
setAttribute
(
ATTR_V_OWNER_ID
,
instance
.
uid
);
var
{
$renderjsModules
}
=
instance
.
type
;
$renderjsModules
&&
el
.
setAttribute
(
ATTR_V_RENDERJS
,
$renderjsModules
);
});
}
}
{
...
...
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
浏览文件 @
71672262
...
...
@@ -4311,13 +4311,15 @@ function baseCreateRenderer(options, createHydrationFns) {
setupRenderEffect
(
instance
,
initialVNode
,
container
,
anchor
,
parentSuspense
,
isSVG
,
optimized
);
// fixed by xxxxxx 对根节点设置ownerid
if
(
instance
.
$wxsModules
)
{
var
el
=
resolveOwnerEl
(
instance
);
if
(
el
)
{
el
.
setAttribute
(
ATTR_V_OWNER_ID
,
instance
.
uid
);
var
{
$renderjsModules
}
=
instance
.
type
;
$renderjsModules
&&
el
.
setAttribute
(
ATTR_V_RENDERJS
,
$renderjsModules
);
var
els
=
resolveOwnerEl
(
instance
,
true
);
if
(
els
.
length
)
{
els
.
forEach
(
el
=>
{
el
.
setAttribute
(
ATTR_V_OWNER_ID
,
instance
.
uid
);
var
{
$renderjsModules
}
=
instance
.
type
;
$renderjsModules
&&
el
.
setAttribute
(
ATTR_V_RENDERJS
,
$renderjsModules
);
});
}
}
};
...
...
packages/uni-shared/dist/uni-shared.cjs.js
浏览文件 @
71672262
...
...
@@ -293,7 +293,7 @@ function resolveOwnerEl(instance, multi = false) {
const
elemVNodes
=
subTree
.
children
.
filter
((
vnode
)
=>
vnode
.
el
&&
isElement
(
vnode
.
el
));
if
(
elemVNodes
.
length
>
0
)
{
if
(
multi
)
{
return
elemVNodes
.
map
(
node
=>
node
.
el
);
return
elemVNodes
.
map
(
(
node
)
=>
node
.
el
);
}
return
elemVNodes
[
0
].
el
;
}
...
...
packages/uni-shared/dist/uni-shared.d.ts
浏览文件 @
71672262
...
...
@@ -619,6 +619,8 @@ export declare function resolveComponentInstance(instance?: ComponentInternalIns
export
declare
function
resolveOwnerEl
(
instance
:
ComponentInternalInstance
,
multi
:
true
):
RendererNode
[];
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
const
RESPONSIVE_MIN_WIDTH
=
768
;
...
...
packages/uni-shared/dist/uni-shared.es.js
浏览文件 @
71672262
...
...
@@ -291,7 +291,7 @@ function resolveOwnerEl(instance, multi = false) {
const
elemVNodes
=
subTree
.
children
.
filter
((
vnode
)
=>
vnode
.
el
&&
isElement
(
vnode
.
el
));
if
(
elemVNodes
.
length
>
0
)
{
if
(
multi
)
{
return
elemVNodes
.
map
(
node
=>
node
.
el
);
return
elemVNodes
.
map
(
(
node
)
=>
node
.
el
);
}
return
elemVNodes
[
0
].
el
;
}
...
...
pnpm-lock.yaml
浏览文件 @
71672262
此差异已折叠。
点击以展开。
scripts/checkVersion.js
浏览文件 @
71672262
...
...
@@ -25,7 +25,7 @@ const pkgs = {
next
:
'
9.1.9
'
,
},
vite
:
{
latest
:
'
4.1.
3
'
,
latest
:
'
4.1.
4
'
,
},
'
@vitejs/plugin-vue
'
:
{
latest
:
'
4.0.0
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录