feat: 更新 eslint 后,修复新检查出的错误
This commit is contained in:
@@ -38,9 +38,9 @@ export default {
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
const slots = [ this.$slots.default ]
|
||||
if (this.$slots.header) slots.push(h('template', { slot: 'header' }, [ this.$slots.header ]))
|
||||
if (this.$slots.footer) slots.push(h('template', { slot: 'footer' }, [ this.$slots.footer ]))
|
||||
const slots = [this.$slots.default]
|
||||
if (this.$slots.header) slots.push(h('template', { slot: 'header' }, [this.$slots.header]))
|
||||
if (this.$slots.footer) slots.push(h('template', { slot: 'footer' }, [this.$slots.footer]))
|
||||
return h('div', {
|
||||
ref: 'container',
|
||||
class: 'container-component'
|
||||
|
||||
Reference in New Issue
Block a user