@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: isString(tooltip) ? tooltip : tooltip.title,
427
- icon: isString(tooltip) ? /*#__PURE__*/_jsx(ReactSVG, {
425
+ _otherFormItemProps.tooltip = isString(tooltip) ? {
426
+ title: tooltip,
427
+ icon: /*#__PURE__*/_jsx(ReactSVG, {
428
428
  className: "pro-icon-tip",
429
429
  src: tipSvg
430
- }) : tooltip.icon
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: (0, _lodash.isString)(tooltip) ? tooltip : tooltip.title,
432
- icon: (0, _lodash.isString)(tooltip) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
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
- }) : tooltip.icon
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.19",
3
+ "version": "3.13.20-beta.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",