mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
fix: add guard statement for component-demos
This commit is contained in:
parent
f9b2db565d
commit
9ceee1f56d
@ -2,7 +2,7 @@
|
||||
export default {
|
||||
name: 'ComponentDemos',
|
||||
render (h) {
|
||||
const defaultSlot = this.$slots.default
|
||||
const defaultSlot = this.$slots.default || []
|
||||
const leftColumn = defaultSlot.filter((value, index) => index % 2 === 0)
|
||||
const rightColumn = defaultSlot.filter((value, index) => index % 2 === 1)
|
||||
return h('n-row', {
|
||||
|
Loading…
Reference in New Issue
Block a user