zmdms-webui 0.0.114 → 0.0.115

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.
@@ -8,11 +8,12 @@ import classNames from '../node_modules/classnames/index.js';
8
8
  * 显示差异内容
9
9
  */
10
10
  var Collapse = function (props) {
11
- var className = props.className, _a = props.customBg, customBg = _a === void 0 ? true : _a, _b = props.mainBg, mainBg = _b === void 0 ? "transparent" : _b, customPadding = props.customPadding, _c = props.nonBorder, nonBorder = _c === void 0 ? true : _c, resetProps = __rest(props, ["className", "customBg", "mainBg", "customPadding", "nonBorder"]);
11
+ var className = props.className, _a = props.customBg, customBg = _a === void 0 ? true : _a, _b = props.mainBg, mainBg = _b === void 0 ? "transparent" : _b, customPadding = props.customPadding, _c = props.nonBorder, nonBorder = _c === void 0 ? true : _c, itemMargin = props.itemMargin, resetProps = __rest(props, ["className", "customBg", "mainBg", "customPadding", "nonBorder", "itemMargin"]);
12
12
  var classes = classNames("ztxk-collapse", "ztxk-collapse--main-bg_".concat(mainBg), className, {
13
13
  "ztxk-collapse--custom-background": customBg,
14
14
  "ztxk-collapse--custom-padding": customPadding,
15
15
  "ztxk-collapse--non-border": nonBorder,
16
+ "ztxk-collapse--item-margin": itemMargin,
16
17
  });
17
18
  return (jsx(Collapse$1, __assign({ expandIconPosition: "end", className: classes }, resetProps)));
18
19
  };
@@ -11,6 +11,8 @@ interface ICollapseProps extends CollapseProps {
11
11
  customPadding?: boolean;
12
12
  /** 不要边框 */
13
13
  nonBorder?: boolean;
14
+ /** item添加边距 */
15
+ itemMargin?: boolean;
14
16
  }
15
17
  interface ICollapsePanelProps extends CollapsePanelProps {
16
18
  hiddenBordered?: boolean;
@@ -4,7 +4,7 @@ import classNames from '../node_modules/classnames/index.js';
4
4
  import { Col } from 'antd';
5
5
 
6
6
  var Item = function (_a) {
7
- var children = _a.children, className = _a.className, title = _a.title, _b = _a.colon, colon = _b === void 0 ? true : _b, span = _a.span, titleSpan = _a.titleSpan, titleStyle = _a.titleStyle, isContentMerge = _a.isContentMerge, titleProps = _a.titleProps, textProps = _a.textProps, showDiff = _a.showDiff, _c = _a.isEllipsis, isEllipsis = _c === void 0 ? true : _c, isBlod = _a.isBlod, isFlex = _a.isFlex, isRequired = _a.isRequired, titleVerticalCenter = _a.titleVerticalCenter;
7
+ var children = _a.children, className = _a.className, title = _a.title, _b = _a.colon, colon = _b === void 0 ? true : _b, _c = _a.span, span = _c === void 0 ? 6 : _c, titleSpan = _a.titleSpan, titleStyle = _a.titleStyle, isContentMerge = _a.isContentMerge, titleProps = _a.titleProps, textProps = _a.textProps, showDiff = _a.showDiff, _d = _a.isEllipsis, isEllipsis = _d === void 0 ? true : _d, isBlod = _a.isBlod, isFlex = _a.isFlex, isRequired = _a.isRequired, titleVerticalCenter = _a.titleVerticalCenter;
8
8
  var classes = classNames("ztxk-grid-item", className, {
9
9
  "ztxk-grid-item--flex": isFlex,
10
10
  });