Skip to content

Commit 2cf1c29

Browse files
committed
Update readme
1 parent 481319b commit 2cf1c29

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Root component:
6969
:data-key="'uid'"
7070
:data-sources="items"
7171
:data-component="itemComponent"
72-
:extra-props="{ otherPropValue: otherDataAssginToItemComponent }"
7372
/>
7473
</div>
7574
</template>
@@ -83,8 +82,7 @@ Root component:
8382
data () {
8483
return {
8584
itemComponent: Item,
86-
items: [{uid: 'unique_1', text: 'abc'}, {uid: 'unique_2', text: 'xyz'}, ...],
87-
otherDataAssginToItemComponent: 'The Progressive JavaScript Framework'
85+
items: [{uid: 'unique_1', text: 'abc'}, {uid: 'unique_2', text: 'xyz'}, ...]
8886
}
8987
},
9088
components: { 'virtual-list': VirtualList }
@@ -95,7 +93,7 @@ Root component:
9593
Item component:
9694
```vue
9795
<template>
98-
<div>{{ index }} - {{ source.text }} - {{ otherPropValue }}</div>
96+
<div>{{ index }} - {{ source.text }}</div>
9997
</template>
10098
10199
<script>
@@ -110,8 +108,7 @@ Item component:
110108
default () {
111109
return {}
112110
}
113-
},
114-
otherPropValue: String // here is: 'The Progressive JavaScript Framework'
111+
}
115112
}
116113
}
117114
</script>

0 commit comments

Comments
 (0)