From 38c584d3ee8a1d3d4ea245fbb18978a7143ccde6 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Fri, 26 Apr 2024 18:00:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(reactivity):=20toRef=20toValue=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20=20web=20=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 -- pages/index/index.uvue | 6 ------ pages/reactivity/utilities/to-ref/to-ref.test.js | 7 ------- pages/reactivity/utilities/to-value/to-value.test.js | 7 ------- refactor_options-API-composition-API-correspondence.md | 2 +- 5 files changed, 1 insertion(+), 23 deletions(-) diff --git a/pages.json b/pages.json index c6b36af..29aa02d 100644 --- a/pages.json +++ b/pages.json @@ -557,7 +557,6 @@ "navigationBarTitleText": "toRef" } }, - // #ifdef APP { "path": "pages/reactivity/utilities/to-refs/to-refs", "style": { @@ -570,7 +569,6 @@ "navigationBarTitleText": "toValue" } }, - // #endif { "path": "pages/reactivity/advanced/shallow-ref/shallow-ref", "style": { diff --git a/pages/index/index.uvue b/pages/index/index.uvue index 54ddc7b..12a3490 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -557,17 +557,11 @@ export default { id: 'to-refs', name: 'toRefs', url: 'to-refs/to-refs', - // #ifdef WEB - enable: false - // #endif }, { id: 'to-value', name: 'toValue', url: 'to-value/to-value', - // #ifdef WEB - enable: false - // #endif }, { id: 'un-ref', diff --git a/pages/reactivity/utilities/to-ref/to-ref.test.js b/pages/reactivity/utilities/to-ref/to-ref.test.js index 773d0b9..e5e77f3 100644 --- a/pages/reactivity/utilities/to-ref/to-ref.test.js +++ b/pages/reactivity/utilities/to-ref/to-ref.test.js @@ -1,13 +1,6 @@ const PAGE_PATH = '/pages/reactivity/utilities/to-ref/to-ref' describe('toRef', () => { - if (process.env.uniTestPlatformInfo.startsWith('web')) { - // TODO: web 端暂不支持 - it('web', async () => { - expect(1).toBe(1) - }) - return - } let page = null beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) diff --git a/pages/reactivity/utilities/to-value/to-value.test.js b/pages/reactivity/utilities/to-value/to-value.test.js index c0f86d2..cd86cce 100644 --- a/pages/reactivity/utilities/to-value/to-value.test.js +++ b/pages/reactivity/utilities/to-value/to-value.test.js @@ -1,13 +1,6 @@ const PAGE_PATH = '/pages/reactivity/utilities/to-value/to-value' describe('toValue', () => { - if (process.env.uniTestPlatformInfo.startsWith('web')) { - // TODO: web 端暂不支持 - it('web', async () => { - expect(1).toBe(1) - }) - return - } let page = null beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) diff --git a/refactor_options-API-composition-API-correspondence.md b/refactor_options-API-composition-API-correspondence.md index d713544..85bf88c 100644 --- a/refactor_options-API-composition-API-correspondence.md +++ b/refactor_options-API-composition-API-correspondence.md @@ -160,7 +160,7 @@ function transform(fileInfo, api) { - [x] v-on - [x] v-bind - [x] v-model -- [ ] v-slot +- [x] v-slot - [x] v-pre - [x] v-once - [x] v-memo -- GitLab