zmdms-webui 0.0.113 → 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,10 +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, customPadding = props.customPadding, resetProps = __rest(props, ["className", "customBg", "customPadding"]);
12
- var classes = classNames("ztxk-collapse", className, {
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
+ 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
+ "ztxk-collapse--non-border": nonBorder,
16
+ "ztxk-collapse--item-margin": itemMargin,
15
17
  });
16
18
  return (jsx(Collapse$1, __assign({ expandIconPosition: "end", className: classes }, resetProps)));
17
19
  };
@@ -3,10 +3,16 @@ import { CollapsePanel } from './collapse.js';
3
3
  import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
4
4
 
5
5
  interface ICollapseProps extends CollapseProps {
6
- /** 背景 */
6
+ /** 头部背景 */
7
7
  customBg?: boolean;
8
+ /** 整体背景色 */
9
+ mainBg?: "transparent" | "white";
8
10
  /** 内边距 */
9
11
  customPadding?: boolean;
12
+ /** 不要边框 */
13
+ nonBorder?: boolean;
14
+ /** item添加边距 */
15
+ itemMargin?: boolean;
10
16
  }
11
17
  interface ICollapsePanelProps extends CollapsePanelProps {
12
18
  hiddenBordered?: boolean;
@@ -5,6 +5,7 @@ import { IFooterDom } from '../footer/interface.js';
5
5
  interface IProps {
6
6
  /** 加载状态 */
7
7
  loading?: boolean;
8
+ style?: React__default.CSSProperties;
8
9
  /** 容器类名 */
9
10
  className?: string;
10
11
  /** 是否开启Flex布局 */
@@ -22,6 +23,10 @@ interface IProps {
22
23
  leftContentOut?: boolean;
23
24
  /** 左边抽屉属性 */
24
25
  leftContentProps?: Partial<ILeftContentProps>;
26
+ /** 标题 */
27
+ title?: React__default.ReactNode;
28
+ /** 标题子元素 */
29
+ titleChildren?: React__default.ReactNode;
25
30
  }
26
31
  declare const ContainerButtonWrap: React__default.FC<{
27
32
  children?: React__default.ReactNode;
@@ -4,6 +4,7 @@ import { memo, useRef } from 'react';
4
4
  import classNames from '../node_modules/classnames/index.js';
5
5
  import { useTimer } from '../config/commonHooks.js';
6
6
  import LeftContentMemo from '../leftcontent/leftContent.js';
7
+ import TitleCom from '../title/title.js';
7
8
  import Footer from '../footer/footer.js';
8
9
  import { Spin } from 'antd';
9
10
 
@@ -14,13 +15,17 @@ var ContainerLoading = function (_a) {
14
15
  return (jsx(Spin, { spinning: loading, size: "large", tip: "".concat(countTimer), className: "ztxk-container__loading", style: { display: loading ? "flex" : "none" } }));
15
16
  };
16
17
  var Container = function (props) {
17
- var className = props.className, isFlex = props.isFlex, children = props.children, loading = props.loading, footerDom = props.footerDom, leftContent = props.leftContent, defaultLeftOpen = props.defaultLeftOpen, defaultLeftWidth = props.defaultLeftWidth, leftContentOut = props.leftContentOut, leftContentProps = props.leftContentProps;
18
+ var className = props.className, style = props.style, isFlex = props.isFlex, children = props.children, loading = props.loading, footerDom = props.footerDom, leftContent = props.leftContent, defaultLeftOpen = props.defaultLeftOpen, defaultLeftWidth = props.defaultLeftWidth, leftContentOut = props.leftContentOut, leftContentProps = props.leftContentProps, title = props.title, titleChildren = props.titleChildren;
18
19
  var containerRef = useRef(null);
19
20
  var leftContentContainerRef = useRef(null);
20
21
  var classes = classNames("ztxk-container__content", className, {
21
22
  "ztxk-container__content--flex": isFlex,
23
+ "ztxk-container__content--title": title,
22
24
  });
23
- return (jsxs("div", __assign({ className: "ztxk-container", ref: containerRef }, { children: [!leftContentOut && leftContent ? (jsxs(LeftContentMemo.Wrap, __assign({ containerRef: leftContentContainerRef }, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: leftContentContainerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth, isShow: true, showIcon: true }, leftContentProps, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: children }))] }))) : (jsxs(Fragment, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: containerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth, isShow: true, showIcon: true }, leftContentProps, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: children }))] })), jsx(Footer, { footerDom: footerDom })] })));
25
+ var titleContainerClasses = classNames("ztxk-container__content--main", {
26
+ "ztxk-container__content--main--flex": isFlex,
27
+ });
28
+ return (jsxs("div", __assign({ className: "ztxk-container", ref: containerRef, style: style }, { children: [!leftContentOut && leftContent ? (jsxs(LeftContentMemo.Wrap, __assign({ containerRef: leftContentContainerRef }, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: leftContentContainerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth, isShow: true, showIcon: true }, leftContentProps, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: title ? (jsxs(Fragment, { children: [jsx(TitleCom, __assign({ title: title, bordered: true, isSticky: true, whiteBg: true }, { children: titleChildren })), jsx("div", __assign({ className: titleContainerClasses }, { children: children }))] })) : (children) }))] }))) : (jsxs(Fragment, { children: [leftContent && (jsx(LeftContentMemo, __assign({ containerRef: containerRef, defaultLeftOpen: defaultLeftOpen, width: defaultLeftWidth, isShow: true, showIcon: true }, leftContentProps, { children: leftContent }))), jsx(ContainerLoading, { loading: loading }), jsx("div", __assign({ className: classes }, { children: title ? (jsxs(Fragment, { children: [jsx(TitleCom, __assign({ title: title, bordered: true, isSticky: true, whiteBg: true }, { children: titleChildren })), jsx("div", __assign({ className: titleContainerClasses }, { children: children }))] })) : (children) }))] })), jsx(Footer, { footerDom: footerDom })] })));
24
29
  };
25
30
  var ContainerButtonWrap = memo(function (_a) {
26
31
  var children = _a.children, isMarginTop = _a.isMarginTop, className = _a.className, style = _a.style;
@@ -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
  });
@@ -7,8 +7,12 @@ interface ITitleProps {
7
7
  className?: string;
8
8
  /** 是否展示边框 */
9
9
  bordered?: boolean;
10
+ /** 是否展示所有边框 */
11
+ allBordered?: boolean;
10
12
  /** 是否展示背景 */
11
13
  showBg?: boolean;
14
+ /** 背景颜色 */
15
+ whiteBg?: boolean;
12
16
  /** 是否左右布局 */
13
17
  justifyContent?: "space-between" | "flex-start";
14
18
  /** 是否需要上边距 */
@@ -3,11 +3,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import classNames from '../node_modules/classnames/index.js';
4
4
 
5
5
  var Title = function (props) {
6
- var title = props.title, className = props.className, bordered = props.bordered, showBg = props.showBg, _a = props.justifyContent, justifyContent = _a === void 0 ? "space-between" : _a, children = props.children, isTopMargin = props.isTopMargin, isBottomMargin = props.isBottomMargin, isTopPadding = props.isTopPadding, isBottomPadding = props.isBottomPadding, titleStyle = props.titleStyle, _b = props.isSidePadding, isSidePadding = _b === void 0 ? true : _b, isSticky = props.isSticky;
6
+ var title = props.title, className = props.className, bordered = props.bordered, allBordered = props.allBordered, showBg = props.showBg, whiteBg = props.whiteBg, _a = props.justifyContent, justifyContent = _a === void 0 ? "space-between" : _a, children = props.children, isTopMargin = props.isTopMargin, isBottomMargin = props.isBottomMargin, isTopPadding = props.isTopPadding, isBottomPadding = props.isBottomPadding, titleStyle = props.titleStyle, _b = props.isSidePadding, isSidePadding = _b === void 0 ? true : _b, isSticky = props.isSticky;
7
7
  // 主容器类名
8
8
  var classes = classNames("ztxk-title", className, {
9
9
  "ztxk-title--bordered": bordered,
10
+ "ztxk-title--all-bordered": allBordered,
10
11
  "ztxk-title--background": showBg,
12
+ "ztxk-title--bg-white": whiteBg,
11
13
  "ztxk-title--marginTop": isTopMargin,
12
14
  "ztxk-title--marginBottom": isBottomMargin,
13
15
  "ztxk-title--paddingTop": isTopPadding,