{{object.name}}
{{v}}
diff --git a/test/weex/cases/recycle-list/v-for.vdom.js b/test/weex/cases/recycle-list/v-for.vdom.js
index 0060e34c4b..bbae2d5318 100644
--- a/test/weex/cases/recycle-list/v-for.vdom.js
+++ b/test/weex/cases/recycle-list/v-for.vdom.js
@@ -6,12 +6,12 @@
{ type: 'A' },
{ type: 'A' }
],
- templateKey: 'type',
+ switch: 'type',
alias: 'item'
},
children: [{
type: 'cell-slot',
- attr: { append: 'tree', templateType: 'A' },
+ attr: { append: 'tree', case: 'A' },
children: [{
type: 'div',
attr: {
diff --git a/test/weex/cases/recycle-list/v-for.vue b/test/weex/cases/recycle-list/v-for.vue
index 713d5c0286..57a6890d94 100644
--- a/test/weex/cases/recycle-list/v-for.vue
+++ b/test/weex/cases/recycle-list/v-for.vue
@@ -1,6 +1,6 @@
-
-
+
+
{{panel.label}}
diff --git a/test/weex/cases/recycle-list/v-if.vdom.js b/test/weex/cases/recycle-list/v-if.vdom.js
index fc9405d80e..fe5339b0e7 100644
--- a/test/weex/cases/recycle-list/v-if.vdom.js
+++ b/test/weex/cases/recycle-list/v-if.vdom.js
@@ -6,12 +6,12 @@
{ type: 'A' },
{ type: 'A' }
],
- templateKey: 'type',
+ switch: 'type',
alias: 'item'
},
children: [{
type: 'cell-slot',
- attr: { append: 'tree', templateType: 'A' },
+ attr: { append: 'tree', case: 'A' },
children: [{
type: 'image',
attr: {
diff --git a/test/weex/cases/recycle-list/v-if.vue b/test/weex/cases/recycle-list/v-if.vue
index bec7cdac8e..ab2e04706d 100644
--- a/test/weex/cases/recycle-list/v-if.vue
+++ b/test/weex/cases/recycle-list/v-if.vue
@@ -1,6 +1,6 @@
-
-
+
+
Title
diff --git a/test/weex/cases/recycle-list/v-on-inline.vdom.js b/test/weex/cases/recycle-list/v-on-inline.vdom.js
index 436a12d80e..461fb993d8 100644
--- a/test/weex/cases/recycle-list/v-on-inline.vdom.js
+++ b/test/weex/cases/recycle-list/v-on-inline.vdom.js
@@ -6,12 +6,12 @@
{ type: 'A' },
{ type: 'A' }
],
- templateKey: 'type',
+ switch: 'type',
alias: 'item'
},
children: [{
type: 'cell-slot',
- attr: { append: 'tree', templateType: 'A' },
+ attr: { append: 'tree', case: 'A' },
children: [{
type: 'text',
event: ['click', {
diff --git a/test/weex/cases/recycle-list/v-on-inline.vue b/test/weex/cases/recycle-list/v-on-inline.vue
index bf7ae7018d..ae909b281a 100644
--- a/test/weex/cases/recycle-list/v-on-inline.vue
+++ b/test/weex/cases/recycle-list/v-on-inline.vue
@@ -1,6 +1,6 @@
-
-
+
+
Button
Tips
diff --git a/test/weex/cases/recycle-list/v-on.vdom.js b/test/weex/cases/recycle-list/v-on.vdom.js
index be347c34d8..3da8209638 100644
--- a/test/weex/cases/recycle-list/v-on.vdom.js
+++ b/test/weex/cases/recycle-list/v-on.vdom.js
@@ -6,12 +6,12 @@
{ type: 'A' },
{ type: 'A' }
],
- templateKey: 'type',
+ switch: 'type',
alias: 'item'
},
children: [{
type: 'cell-slot',
- attr: { append: 'tree', templateType: 'A' },
+ attr: { append: 'tree', case: 'A' },
children: [{
type: 'text',
event: ['click', 'longpress'],
diff --git a/test/weex/cases/recycle-list/v-on.vue b/test/weex/cases/recycle-list/v-on.vue
index de5fc51bfb..fb40f1522a 100644
--- a/test/weex/cases/recycle-list/v-on.vue
+++ b/test/weex/cases/recycle-list/v-on.vue
@@ -1,6 +1,6 @@
-
-
+
+
A
B
diff --git a/test/weex/compiler/append.spec.js b/test/weex/compiler/append.spec.js
index 60ceccd328..0492a6d001 100644
--- a/test/weex/compiler/append.spec.js
+++ b/test/weex/compiler/append.spec.js
@@ -26,9 +26,9 @@ describe('append props', () => {
})
it('add append="tree" on ', () => {
- const { render, staticRenderFns, errors } = compile(``)
+ const { render, staticRenderFns, errors } = compile(``)
expect(render + staticRenderFns).toMatch(strToRegExp(`appendAsTree:true`))
- expect(render + staticRenderFns).toMatch(strToRegExp(`attrs:{"append":"tree"}`))
+ expect(render + staticRenderFns).toMatch(strToRegExp(`attrs:{"listData":list,"alias":"item","append":"tree"}`))
expect(errors).toEqual([])
})