fix: Descriptions Item support v-for #2793
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