提交 38c584d3 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat(reactivity): toRef toValue 支持 web 端

上级 58f95fd2
...@@ -557,7 +557,6 @@ ...@@ -557,7 +557,6 @@
"navigationBarTitleText": "toRef" "navigationBarTitleText": "toRef"
} }
}, },
// #ifdef APP
{ {
"path": "pages/reactivity/utilities/to-refs/to-refs", "path": "pages/reactivity/utilities/to-refs/to-refs",
"style": { "style": {
...@@ -570,7 +569,6 @@ ...@@ -570,7 +569,6 @@
"navigationBarTitleText": "toValue" "navigationBarTitleText": "toValue"
} }
}, },
// #endif
{ {
"path": "pages/reactivity/advanced/shallow-ref/shallow-ref", "path": "pages/reactivity/advanced/shallow-ref/shallow-ref",
"style": { "style": {
......
...@@ -557,17 +557,11 @@ export default { ...@@ -557,17 +557,11 @@ export default {
id: 'to-refs', id: 'to-refs',
name: 'toRefs', name: 'toRefs',
url: 'to-refs/to-refs', url: 'to-refs/to-refs',
// #ifdef WEB
enable: false
// #endif
}, },
{ {
id: 'to-value', id: 'to-value',
name: 'toValue', name: 'toValue',
url: 'to-value/to-value', url: 'to-value/to-value',
// #ifdef WEB
enable: false
// #endif
}, },
{ {
id: 'un-ref', id: 'un-ref',
......
const PAGE_PATH = '/pages/reactivity/utilities/to-ref/to-ref' const PAGE_PATH = '/pages/reactivity/utilities/to-ref/to-ref'
describe('toRef', () => { describe('toRef', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
// TODO: web 端暂不支持
it('web', async () => {
expect(1).toBe(1)
})
return
}
let page = null let page = null
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
......
const PAGE_PATH = '/pages/reactivity/utilities/to-value/to-value' const PAGE_PATH = '/pages/reactivity/utilities/to-value/to-value'
describe('toValue', () => { describe('toValue', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
// TODO: web 端暂不支持
it('web', async () => {
expect(1).toBe(1)
})
return
}
let page = null let page = null
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
......
...@@ -160,7 +160,7 @@ function transform(fileInfo, api) { ...@@ -160,7 +160,7 @@ function transform(fileInfo, api) {
- [x] v-on - [x] v-on
- [x] v-bind - [x] v-bind
- [x] v-model - [x] v-model
- [ ] v-slot - [x] v-slot
- [x] v-pre - [x] v-pre
- [x] v-once - [x] v-once
- [x] v-memo - [x] v-memo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册