Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed May 31, 2020
1 parent 481319b commit 2cf1c29
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Root component:
:data-key="'uid'"
:data-sources="items"
:data-component="itemComponent"
:extra-props="{ otherPropValue: otherDataAssginToItemComponent }"
/>
</div>
</template>
Expand All @@ -83,8 +82,7 @@ Root component:
data () {
return {
itemComponent: Item,
items: [{uid: 'unique_1', text: 'abc'}, {uid: 'unique_2', text: 'xyz'}, ...],
otherDataAssginToItemComponent: 'The Progressive JavaScript Framework'
items: [{uid: 'unique_1', text: 'abc'}, {uid: 'unique_2', text: 'xyz'}, ...]
}
},
components: { 'virtual-list': VirtualList }
Expand All @@ -95,7 +93,7 @@ Root component:
Item component:
```vue
<template>
<div>{{ index }} - {{ source.text }} - {{ otherPropValue }}</div>
<div>{{ index }} - {{ source.text }}</div>
</template>
<script>
Expand All @@ -110,8 +108,7 @@ Item component:
default () {
return {}
}
},
otherPropValue: String // here is: 'The Progressive JavaScript Framework'
}
}
}
</script>
Expand Down

0 comments on commit 2cf1c29

Please sign in to comment.