Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uvue
提交
62271135
H
hello-uvue
项目概览
DCloud
/
hello-uvue
通知
350
Star
2
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello-uvue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
62271135
编写于
1月 23, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 移除web端不支持的特性
上级
e384fe92
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
25 addition
and
1 deletion
+25
-1
pages.json
pages.json
+2
-0
pages/composition-api/basic/define-model/define-model.test.js
...s/composition-api/basic/define-model/define-model.test.js
+6
-0
pages/composition-api/basic/define-options/define-options.test.js
...mposition-api/basic/define-options/define-options.test.js
+6
-0
pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.uvue
...n-api/reactivity/watch-sync-effect/watch-sync-effect.uvue
+1
-1
pages/tab-bar/composition-api.uvue
pages/tab-bar/composition-api.uvue
+10
-0
未找到文件。
pages.json
浏览文件 @
62271135
...
@@ -399,6 +399,7 @@
...
@@ -399,6 +399,7 @@
"navigationBarTitleText"
:
"defineExpose"
"navigationBarTitleText"
:
"defineExpose"
}
}
},
},
//
#ifdef
APP
{
{
"path"
:
"pages/composition-api/basic/define-model/define-model"
,
"path"
:
"pages/composition-api/basic/define-model/define-model"
,
"style"
:
{
"style"
:
{
...
@@ -411,6 +412,7 @@
...
@@ -411,6 +412,7 @@
"navigationBarTitleText"
:
"defineOptions"
"navigationBarTitleText"
:
"defineOptions"
}
}
},
},
//
#endif
{
{
"path"
:
"pages/composition-api/basic/define-slots/define-slots"
,
"path"
:
"pages/composition-api/basic/define-slots/define-slots"
,
"style"
:
{
"style"
:
{
...
...
pages/composition-api/basic/define-model/define-model.test.js
浏览文件 @
62271135
const
PAGE_PATH
=
'
/pages/composition-api/basic/define-model/define-model
'
const
PAGE_PATH
=
'
/pages/composition-api/basic/define-model/define-model
'
describe
(
'
defineModel
'
,
()
=>
{
describe
(
'
defineModel
'
,
()
=>
{
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
web
'
))
{
// TODO: web 端暂不支持
it
(
'
web
'
,
async
()
=>
{
expect
(
1
).
toBe
(
1
)
})
}
let
page
=
null
let
page
=
null
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
...
...
pages/composition-api/basic/define-options/define-options.test.js
浏览文件 @
62271135
const
PAGE_PATH
=
'
/pages/composition-api/basic/define-options/define-options
'
const
PAGE_PATH
=
'
/pages/composition-api/basic/define-options/define-options
'
describe
(
'
defineOptions
'
,
()
=>
{
describe
(
'
defineOptions
'
,
()
=>
{
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
web
'
))
{
// TODO: web 端暂不支持
it
(
'
web
'
,
async
()
=>
{
expect
(
1
).
toBe
(
1
)
})
}
let
page
=
null
let
page
=
null
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
...
...
pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.uvue
浏览文件 @
62271135
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
watchCountRes.value = `count: ${count.value}, count ref text: ${countRef.value!.value}`
watchCountRes.value = `count: ${count.value}, count ref text: ${countRef.value!.value}`
// #endif
// #endif
// #ifdef WEB
// #ifdef WEB
watchCountRes.value = `count: ${count.value}, count ref text: ${countRef.value!.childNodes[0] as HTMLElement).innerText}`
watchCountRes.value = `count: ${count.value}, count ref text: ${
(
countRef.value!.childNodes[0] as HTMLElement).innerText}`
// #endif
// #endif
} else {
} else {
watchCountRes.value = `count: ${ count.value }, count ref text: `
watchCountRes.value = `count: ${ count.value }, count ref text: `
...
...
pages/tab-bar/composition-api.uvue
浏览文件 @
62271135
...
@@ -60,7 +60,12 @@
...
@@ -60,7 +60,12 @@
{
{
name: 'defineOptions',
name: 'defineOptions',
url: 'define-options',
url: 'define-options',
// #ifdef APP
enable: true,
enable: true,
// #endif
// #ifdef WEB
enable: false,
// #endif
},
},
{
{
name: 'defineSlots',
name: 'defineSlots',
...
@@ -70,7 +75,12 @@
...
@@ -70,7 +75,12 @@
{
{
name: 'defineModel',
name: 'defineModel',
url: 'define-model',
url: 'define-model',
// #ifdef APP
enable: true,
enable: true,
// #endif
// #ifdef WEB
enable: false,
// #endif
},
},
{
{
name: 'useSlots',
name: 'useSlots',
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录