Skip to content

Commit b616823

Browse files
committed
fix: Descriptions Item support v-for #2793
1 parent 8024469 commit b616823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/descriptions/index.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
getOptionProps,
1010
getComponent,
1111
isValidElement,
12+
getSlot,
1213
} from '../_util/props-util';
1314
import BaseMixin from '../_util/BaseMixin';
1415

@@ -213,7 +214,7 @@ const Descriptions = {
213214
const prefixCls = getPrefixCls('descriptions', customizePrefixCls);
214215

215216
const column = this.getColumn();
216-
const children = this.$slots.default && this.$slots.default();
217+
const children = getSlot(this);
217218
const cloneChildren = toArray(children)
218219
.map(child => {
219220
if (isValidElement(child)) {

0 commit comments

Comments
 (0)