migration: vue3 RENDER_FUNCTION

This commit is contained in:
axolotle 2024-03-11 14:43:56 +01:00
parent 68d5c6baeb
commit 123577c9ee

View file

@ -1,6 +1,8 @@
<script> <script>
// Implementation of the feed pattern // Implementation of the feed pattern
// https://www.w3.org/WAI/ARIA/apg/patterns/feed/ // https://www.w3.org/WAI/ARIA/apg/patterns/feed/
import { h } from 'vue'
import { BCardGroup } from 'bootstrap-vue'
export default { export default {
compatConfig: { MODE: 3 }, compatConfig: { MODE: 3 },
@ -67,12 +69,13 @@ export default {
} }
}, },
render(h) { render() {
return h( return h(
'BCardGroup', BCardGroup,
{ {
attrs: { role: 'feed', 'aria-busy': this.busy.toString() }, deck: true,
props: { deck: true }, role: 'feed',
'aria-busy': this.busy.toString(),
ref: 'feed', ref: 'feed',
}, },
this.$slots.default().slice(0, this.range), this.$slots.default().slice(0, this.range),