Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
37db4199
U
uni-app
项目概览
DCloud
/
uni-app
9 天 前同步成功
通知
817
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看板
提交
37db4199
编写于
12月 02, 2023
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(uts): 更新测试例
上级
ec4922cd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
packages/uni-app-uts/__tests__/android/transforms/transformTapToClick.spec.ts
.../__tests__/android/transforms/transformTapToClick.spec.ts
+1
-1
packages/uni-app-uts/__tests__/android/transforms/vSlot.spec.ts
...es/uni-app-uts/__tests__/android/transforms/vSlot.spec.ts
+8
-8
未找到文件。
packages/uni-app-uts/__tests__/android/transforms/transformTapToClick.spec.ts
浏览文件 @
37db4199
...
@@ -17,7 +17,7 @@ describe('compiler: transform tap to click', () => {
...
@@ -17,7 +17,7 @@ describe('compiler: transform tap to click', () => {
assert
(
assert
(
`<button @tap="click">hello</button>`
,
`<button @tap="click">hello</button>`
,
`createVNode(_component_button, utsMapOf({ onClick: _ctx.click }), utsMapOf({
`createVNode(_component_button, utsMapOf({ onClick: _ctx.click }), utsMapOf({
default: withCtx((): any[] => ["hello"]),
default: with
Slot
Ctx((): any[] => ["hello"]),
_: 1 /* STABLE */
_: 1 /* STABLE */
}), 8 /* PROPS */, ["onClick"])`
}), 8 /* PROPS */, ["onClick"])`
)
)
...
...
packages/uni-app-uts/__tests__/android/transforms/vSlot.spec.ts
浏览文件 @
37db4199
...
@@ -116,7 +116,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -116,7 +116,7 @@ const _component_Foo = resolveComponent("Foo")
return createElementVNode("view", null, [
return createElementVNode("view", null, [
createVNode(_component_Foo, utsMapOf({ onClick: _ctx.test }), utsMapOf({
createVNode(_component_Foo, utsMapOf({ onClick: _ctx.test }), utsMapOf({
default: withCtx((): any[] => ["test"]),
default: with
Slot
Ctx((): any[] => ["test"]),
_: 1 /* STABLE */
_: 1 /* STABLE */
}), 8 /* PROPS */, ["onClick"])
}), 8 /* PROPS */, ["onClick"])
])
])
...
@@ -152,7 +152,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -152,7 +152,7 @@ const _component_Foo = resolveComponent("Foo")
return createElementVNode("view", null, [
return createElementVNode("view", null, [
createVNode(_component_Foo, null, utsMapOf({
createVNode(_component_Foo, null, utsMapOf({
default: withCtx((props: Map<string, any | null>): any[] => [
default: with
ScopedSlot
Ctx((props: Map<string, any | null>): any[] => [
createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */)
createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */)
]),
]),
_: 1 /* STABLE */
_: 1 /* STABLE */
...
@@ -176,7 +176,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -176,7 +176,7 @@ const _component_Foo = resolveComponent("Foo")
return createElementVNode("view", null, [
return createElementVNode("view", null, [
createVNode(_component_Foo, null, utsMapOf({
createVNode(_component_Foo, null, utsMapOf({
default: withCtx((props: Map<string, any | null>): any[] => [
default: with
ScopedSlot
Ctx((props: Map<string, any | null>): any[] => [
createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */)
createElementVNode("text", null, "msg: " + toDisplayString(props.msg), 1 /* TEXT */)
]),
]),
_: 1 /* STABLE */
_: 1 /* STABLE */
...
@@ -203,14 +203,14 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -203,14 +203,14 @@ const _component_Foo = resolveComponent("Foo")
</template>
</template>
</Foo>`
,
</Foo>`
,
`createVNode(_component_Foo, null, utsMapOf({
`createVNode(_component_Foo, null, utsMapOf({
default: withCtx((slotProps: Map<string, any | null>): any[] => {
default: with
ScopedSlot
Ctx((slotProps: Map<string, any | null>): any[] => {
const msg = slotProps[\"msg\"]
const msg = slotProps[\"msg\"]
const age = slotProps[\"age\"]
const age = slotProps[\"age\"]
return [
return [
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(msg), 1 /* TEXT */),
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(msg), 1 /* TEXT */),
createElementVNode(\"text\", null, \"age: \" + toDisplayString(age), 1 /* TEXT */)
createElementVNode(\"text\", null, \"age: \" + toDisplayString(age), 1 /* TEXT */)
]}),
]}),
header: withCtx((slotProps: Map<string, any | null>): any[] => {
header: with
ScopedSlot
Ctx((slotProps: Map<string, any | null>): any[] => {
const msg = slotProps[\"msg\"]
const msg = slotProps[\"msg\"]
const age = slotProps[\"age\"]
const age = slotProps[\"age\"]
return [
return [
...
@@ -230,7 +230,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -230,7 +230,7 @@ const _component_Foo = resolveComponent("Foo")
</template>
</template>
</Foo>`
,
</Foo>`
,
`createVNode(_component_Foo, null, utsMapOf({
`createVNode(_component_Foo, null, utsMapOf({
default: withCtx((slotProps: Map<string, any | null>): any[] => [
default: with
ScopedSlot
Ctx((slotProps: Map<string, any | null>): any[] => [
createElementVNode(\"text\", null, \"default slot\")
createElementVNode(\"text\", null, \"default slot\")
]),
]),
_: 1 /* STABLE */
_: 1 /* STABLE */
...
@@ -245,7 +245,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -245,7 +245,7 @@ const _component_Foo = resolveComponent("Foo")
</template>
</template>
</Foo>`
,
</Foo>`
,
`createVNode(_component_Foo, null, utsMapOf({
`createVNode(_component_Foo, null, utsMapOf({
default: withCtx((slotProps: Map<string, any | null>): any[] => {
default: with
ScopedSlot
Ctx((slotProps: Map<string, any | null>): any[] => {
const myMsg = slotProps[\"msg\"]
const myMsg = slotProps[\"msg\"]
return [
return [
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(myMsg), 1 /* TEXT */)
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(myMsg), 1 /* TEXT */)
...
@@ -262,7 +262,7 @@ const _component_Foo = resolveComponent("Foo")
...
@@ -262,7 +262,7 @@ const _component_Foo = resolveComponent("Foo")
</template>
</template>
</Foo>`
,
</Foo>`
,
`createVNode(_component_Foo, null, utsMapOf({
`createVNode(_component_Foo, null, utsMapOf({
default: withCtx((slotProps: Map<string, any | null>): any[] => {
default: with
ScopedSlot
Ctx((slotProps: Map<string, any | null>): any[] => {
const msg = slotProps[\"msg\"] !== null ? slotProps[\"msg\"] : 'default msg'
const msg = slotProps[\"msg\"] !== null ? slotProps[\"msg\"] : 'default msg'
return [
return [
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(msg), 1 /* TEXT */)
createElementVNode(\"text\", null, \"msg: \" + toDisplayString(msg), 1 /* TEXT */)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录