From 77e3d0408b2c32f99e4e9dd86bf59d33bc0eafcd Mon Sep 17 00:00:00 2001 From: hdx Date: Thu, 28 Mar 2024 16:24:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(v-bind):=20=E6=96=B0=E5=A2=9E=20array=20?= =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E5=B1=9E=E6=80=A7=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 +++++ .../v-bind/v-bind-array-deep.test.js | 13 +++++++++ pages/directive/v-bind/v-bind-array-deep.uvue | 27 +++++++++++++++++++ pages/tab-bar/options-api.uvue | 5 ++++ 4 files changed, 51 insertions(+) create mode 100644 pages/directive/v-bind/v-bind-array-deep.test.js create mode 100644 pages/directive/v-bind/v-bind-array-deep.uvue diff --git a/pages.json b/pages.json index d92b71f..237bfa7 100644 --- a/pages.json +++ b/pages.json @@ -59,6 +59,12 @@ "style": { "navigationBarTitleText": "v-bind-attribute" } + }, + { + "path": "pages/directive/v-bind/v-bind-array-deep", + "style": { + "navigationBarTitleText": "v-bind-array-deep" + } }, { "path": "pages/directive/v-for/v-for", diff --git a/pages/directive/v-bind/v-bind-array-deep.test.js b/pages/directive/v-bind/v-bind-array-deep.test.js new file mode 100644 index 0000000..88ad360 --- /dev/null +++ b/pages/directive/v-bind/v-bind-array-deep.test.js @@ -0,0 +1,13 @@ +const PAGE_PATH = '/pages/directive/v-bind/v-bind-array-deep' + +describe('v-bind-array-deep', () => { + let page + beforeAll(async () => { + page = await program.reLaunch(PAGE_PATH) + await page.waitFor(500) + }) + it('object-value', async () => { + const value = await page.$('.deep-value') + expect(await value.text()).toBe('3') + }) +}) \ No newline at end of file diff --git a/pages/directive/v-bind/v-bind-array-deep.uvue b/pages/directive/v-bind/v-bind-array-deep.uvue new file mode 100644 index 0000000..9ac50d0 --- /dev/null +++ b/pages/directive/v-bind/v-bind-array-deep.uvue @@ -0,0 +1,27 @@ + + + \ No newline at end of file diff --git a/pages/tab-bar/options-api.uvue b/pages/tab-bar/options-api.uvue index ae7e94a..f8c9ee7 100644 --- a/pages/tab-bar/options-api.uvue +++ b/pages/tab-bar/options-api.uvue @@ -161,6 +161,11 @@ name: 'v-bind-attribute', url: 'v-bind/v-bind-attribute', enable: false, + }, + { + name: 'v-bind-array-deep', + url: 'v-bind/v-bind-array-deep', + enable: true, }, { name: 'v-model', -- GitLab