Browse Source

chore: Descriptions warning message upgrade (#20786)

* fix warning

* warning message upgrade

* snapshot

* update
pull/20812/head
Amumu 5 years ago
committed by 二货机器人
parent
commit
bb560537d9
  1. 2
      components/descriptions/__tests__/index.test.js
  2. 2
      components/descriptions/index.tsx

2
components/descriptions/__tests__/index.test.js

@ -89,7 +89,7 @@ describe('Descriptions', () => {
</Descriptions>,
);
expect(errorSpy).toHaveBeenCalledWith(
'Warning: [antd: Descriptions] Sum of column `span` in a line exceeds `column` of Descriptions.',
'Warning: [antd: Descriptions] Sum of column `span` in a line not match `column` of Descriptions.',
);
});

2
components/descriptions/index.tsx

@ -92,7 +92,7 @@ const generateChildrenRows = (
warning(
leftSpans === 0 && lastSpanSame,
'Descriptions',
'Sum of column `span` in a line exceeds `column` of Descriptions.',
'Sum of column `span` in a line not match `column` of Descriptions.',
);
}
});

Loading…
Cancel
Save