From a5934a168f8743b6d2e37f29e967d11bc86b92dc Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Fri, 22 Mar 2019 22:49:13 +0800 Subject: [PATCH] issues 166 Former-commit-id: 137314f37d68d3c6ed58b4b2955f68ce8a6d1935 [formerly 8cfa67c8ab01c87b4e5b772456d475e06c645409] [formerly 137314f37d68d3c6ed58b4b2955f68ce8a6d1935 [formerly 8cfa67c8ab01c87b4e5b772456d475e06c645409] [formerly 137314f37d68d3c6ed58b4b2955f68ce8a6d1935 [formerly 8cfa67c8ab01c87b4e5b772456d475e06c645409] [formerly 8cfa67c8ab01c87b4e5b772456d475e06c645409 [formerly 5bb65b3d7d45c9fcf2a63d33c27b86af02433102 [formerly d11e58526b50aaa8444f827d5ac0d57348f39740]]]]] Former-commit-id: 1ef587a14a2637fca192840f58a4e0ec0aebd5aa Former-commit-id: fde2f956cb1d8e69e58de5947cacd4e211c7dab7 Former-commit-id: 08f5b7aa122d428f82dd0a417a55776d132cf9f0 [formerly 9d6d110e627bb702dd2f7cd8f773e8ea83437efa] Former-commit-id: f4f5480fed5f2edebadf6dde7f5037020189a3f0 Former-commit-id: a3ab7fcf687cb843eb1be2c53428b21591dafee3 Former-commit-id: 49eae8bde1deff7214bd06fb700174b5a6e953af Former-commit-id: 33091b0e5a482f2a00e2904f48ceec63b1d65451 Former-commit-id: 2926d3ae8897197f239fc6a5787c024c73895904 --- src/components/d2-container/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/d2-container/index.js b/src/components/d2-container/index.js index e9e6ec23..8ab95811 100644 --- a/src/components/d2-container/index.js +++ b/src/components/d2-container/index.js @@ -38,11 +38,9 @@ export default { } }, render (h) { - const slots = [ - h('div', this.$slots.default) - ] - if (this.$slots.header) slots.push(h('div', { slot: 'header' }, [ this.$slots.header ])) - if (this.$slots.footer) slots.push(h('div', { 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'