@zat-design/sisyphus-react 3.13.19 → 3.13.20-beta.1
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.
@@ -422,13 +422,18 @@ var Render = props => {
|
|
422
422
|
|
423
423
|
// 表单提示
|
424
424
|
if (tooltip) {
|
425
|
-
_otherFormItemProps.tooltip = {
|
426
|
-
title:
|
427
|
-
icon:
|
425
|
+
_otherFormItemProps.tooltip = isString(tooltip) ? {
|
426
|
+
title: tooltip,
|
427
|
+
icon: /*#__PURE__*/_jsx(ReactSVG, {
|
428
428
|
className: "pro-icon-tip",
|
429
429
|
src: tipSvg
|
430
|
-
})
|
431
|
-
}
|
430
|
+
})
|
431
|
+
} : _objectSpread({
|
432
|
+
icon: /*#__PURE__*/_jsx(ReactSVG, {
|
433
|
+
className: "pro-icon-tip",
|
434
|
+
src: tipSvg
|
435
|
+
})
|
436
|
+
}, tooltip);
|
432
437
|
}
|
433
438
|
|
434
439
|
// 需要过滤掉的form_item的key
|
@@ -427,13 +427,18 @@ var Render = props => {
|
|
427
427
|
|
428
428
|
// 表单提示
|
429
429
|
if (tooltip) {
|
430
|
-
_otherFormItemProps.tooltip = {
|
431
|
-
title:
|
432
|
-
icon:
|
430
|
+
_otherFormItemProps.tooltip = (0, _lodash.isString)(tooltip) ? {
|
431
|
+
title: tooltip,
|
432
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
433
433
|
className: "pro-icon-tip",
|
434
434
|
src: _tip.default
|
435
|
-
})
|
436
|
-
}
|
435
|
+
})
|
436
|
+
} : (0, _objectSpread2.default)({
|
437
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
438
|
+
className: "pro-icon-tip",
|
439
|
+
src: _tip.default
|
440
|
+
})
|
441
|
+
}, tooltip);
|
437
442
|
}
|
438
443
|
|
439
444
|
// 需要过滤掉的form_item的key
|