We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8024469 commit b616823Copy full SHA for b616823
components/descriptions/index.jsx
@@ -9,6 +9,7 @@ import {
9
getOptionProps,
10
getComponent,
11
isValidElement,
12
+ getSlot,
13
} from '../_util/props-util';
14
import BaseMixin from '../_util/BaseMixin';
15
@@ -213,7 +214,7 @@ const Descriptions = {
213
214
const prefixCls = getPrefixCls('descriptions', customizePrefixCls);
215
216
const column = this.getColumn();
- const children = this.$slots.default && this.$slots.default();
217
+ const children = getSlot(this);
218
const cloneChildren = toArray(children)
219
.map(child => {
220
if (isValidElement(child)) {
0 commit comments