@faasjs/ant-design 0.0.3-beta.89 → 0.0.3-beta.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -336,7 +336,7 @@ function Description(props) {
|
|
|
336
336
|
react$1.useEffect(() => {
|
|
337
337
|
setComputedProps({
|
|
338
338
|
...props,
|
|
339
|
-
title: lodashEs.isFunction(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
339
|
+
title: lodashEs.isFunction(props.renderTitle) && props.dataSource ? props.renderTitle(props.dataSource) : props.title,
|
|
340
340
|
items: props.items.filter((item) => item && (!item.if || item.if(props.dataSource))).map((item) => ({
|
|
341
341
|
...item,
|
|
342
342
|
key: item.id,
|
package/dist/index.mjs
CHANGED
|
@@ -333,7 +333,7 @@ function Description(props) {
|
|
|
333
333
|
useEffect(() => {
|
|
334
334
|
setComputedProps({
|
|
335
335
|
...props,
|
|
336
|
-
title: isFunction(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
336
|
+
title: isFunction(props.renderTitle) && props.dataSource ? props.renderTitle(props.dataSource) : props.title,
|
|
337
337
|
items: props.items.filter((item) => item && (!item.if || item.if(props.dataSource))).map((item) => ({
|
|
338
338
|
...item,
|
|
339
339
|
key: item.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.90",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@faasjs/react": "^0.0.3-beta.
|
|
25
|
+
"@faasjs/react": "^0.0.3-beta.90",
|
|
26
26
|
"@ant-design/icons": "*",
|
|
27
27
|
"lodash-es": "*",
|
|
28
28
|
"dayjs": "*"
|