diff --git a/pages/directive/v-for/v-for-composition.uvue b/pages/directive/v-for/v-for-composition.uvue
index 584564bd61cc4266b6df96dc18e488f203de7bd0..966a3aa3a0a1323c7be1f36003c10300a9fcdf11 100644
--- a/pages/directive/v-for/v-for-composition.uvue
+++ b/pages/directive/v-for/v-for-composition.uvue
@@ -6,6 +6,10 @@
v-for number
{{ item }}
+
+
+
+ {{ item }}
v-for object
@@ -144,5 +148,7 @@ const mapList = new Map([
const setList = new Set(['set value 1', 'set value 2', 'set value 3'])
-const utsJSONObject = reactive({ utsKey1: 'UTSJSONObject-value1', utsKey2: 'UTSJSONObject-value2', utsKey3: 'UTSJSONObject-value3' })
+const utsJSONObject = reactive({ utsKey1: 'UTSJSONObject-value1', utsKey2: 'UTSJSONObject-value2', utsKey3: 'UTSJSONObject-value3' })
+
+const utsNumber = JSON.parse("3") as number
diff --git a/pages/directive/v-for/v-for-options.uvue b/pages/directive/v-for/v-for-options.uvue
index 37b0446ce6a9017d1f1bca2f88f1201e2fabd921..8880d4211151e7c5dd24bb1d32a77b35c8cc630d 100644
--- a/pages/directive/v-for/v-for-options.uvue
+++ b/pages/directive/v-for/v-for-options.uvue
@@ -6,6 +6,10 @@
v-for number
{{ item }}
+
+
+
+ {{ item }}
v-for object
@@ -144,7 +148,8 @@ export default {
['map-key-3', 'map value 3'],
]),
setList: new Set(['set value 1', 'set value 2', 'set value 3']),
- utsJSONObject: { utsKey1: 'UTSJSONObject-value1', utsKey2: 'UTSJSONObject-value2', utsKey3: 'UTSJSONObject-value3' }
+ utsJSONObject: { utsKey1: 'UTSJSONObject-value1', utsKey2: 'UTSJSONObject-value2', utsKey3: 'UTSJSONObject-value3' },
+ utsNumber: JSON.parse("3") as number
}
}
}
diff --git a/pages/directive/v-for/v-for.test.js b/pages/directive/v-for/v-for.test.js
index 8672925146d9cbd65ed1a2770d8dc54cf8ec7571..213901fda51164c11806474829b7b20b81a4a01f 100644
--- a/pages/directive/v-for/v-for.test.js
+++ b/pages/directive/v-for/v-for.test.js
@@ -12,6 +12,14 @@ describe('v-for', () => {
expect(await num2.text()).toBe('2')
const num3 = await page.$('#number-3')
expect(await num3.text()).toBe('3')
+
+ // v-for uts-number
+ const utsNum1 = await page.$('#uts-number-1')
+ expect(await utsNum1.text()).toBe('1')
+ const utsNum2 = await page.$('#uts-number-2')
+ expect(await utsNum2.text()).toBe('2')
+ const utsNum3 = await page.$('#uts-number-3')
+ expect(await utsNum3.text()).toBe('3')
// v-for object
const value1 = await page.$('#value1')