mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix: Descriptions Item support v-for #2793
This commit is contained in:
parent
8024469b88
commit
b616823353
@ -9,6 +9,7 @@ import {
|
||||
getOptionProps,
|
||||
getComponent,
|
||||
isValidElement,
|
||||
getSlot,
|
||||
} from '../_util/props-util';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
|
||||
@ -213,7 +214,7 @@ const Descriptions = {
|
||||
const prefixCls = getPrefixCls('descriptions', customizePrefixCls);
|
||||
|
||||
const column = this.getColumn();
|
||||
const children = this.$slots.default && this.$slots.default();
|
||||
const children = getSlot(this);
|
||||
const cloneChildren = toArray(children)
|
||||
.map(child => {
|
||||
if (isValidElement(child)) {
|
||||
|
Loading…
Reference in New Issue
Block a user