Skip to content

Commit 406a87a

Browse files
committed
update(test): fix slide spec v-for key
1 parent f9eb198 commit 406a87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/specs/slide.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function createSlide (items, changeHandler) {
6767
const vm = createVue({
6868
template: `
6969
<cube-slide :interval="interval" @change="change" style="width:300px;height:100px;">
70-
<cube-slide-item v-for="item in items" key="item"><a>{{item}}</a></cube-slide-item>
70+
<cube-slide-item v-for="item in items" :key="item"><a>{{item}}</a></cube-slide-item>
7171
</cube-slide>
7272
`,
7373
data: {

0 commit comments

Comments
 (0)