zmdms-webui 0.0.100 → 0.0.101

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.
@@ -138,6 +138,14 @@ interface ITableRefHandel {
138
138
  * 移除错误样式
139
139
  */
140
140
  clearErrorClass?: () => void;
141
+ /**
142
+ * 滚动
143
+ */
144
+ scrollTo?: (obj: {
145
+ row: number;
146
+ y: number;
147
+ vid: string;
148
+ }) => void;
141
149
  }
142
150
  interface ITableProps<RecordType> extends Omit<TableProps<RecordType>, "columns"> {
143
151
  /**
@@ -304,4 +312,4 @@ interface IOrder {
304
312
  order: "ascend" | "descend" | undefined;
305
313
  }
306
314
 
307
- export { IColumnGroupType, IColumnType, IColumnsType, IColumnsTypeProp, IEditableConfig, IFields, IOrder, ISummaryConfig, ITableProps, TableComponent, ValidateErrorObject };
315
+ export { IColumnGroupType, IColumnType, IColumnsType, IColumnsTypeProp, IEditableConfig, IFields, IOrder, ISummaryConfig, ITableProps, ITableRefHandel, TableComponent, ValidateErrorObject };
@@ -15,6 +15,14 @@ interface ITitleProps {
15
15
  isTopMargin?: boolean;
16
16
  /** 是否需要下边距 */
17
17
  isBottomMargin?: boolean;
18
+ /** 是否sticky 布局 */
19
+ isSticky?: boolean;
20
+ /** 是否需要左右边距 */
21
+ isSidePadding?: boolean;
22
+ /** 是否需要上内边距 */
23
+ isTopPadding?: boolean;
24
+ /** 是否需要下内边距 */
25
+ isBottomPadding?: boolean;
18
26
  }
19
27
  interface TitleComponent extends React__default.FC<ITitleProps> {
20
28
  displayName: string;
@@ -3,13 +3,17 @@ 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, titleStyle = props.titleStyle;
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;
7
7
  // 主容器类名
8
8
  var classes = classNames("ztxk-title", className, {
9
9
  "ztxk-title--bordered": bordered,
10
10
  "ztxk-title--background": showBg,
11
11
  "ztxk-title--marginTop": isTopMargin,
12
12
  "ztxk-title--marginBottom": isBottomMargin,
13
+ "ztxk-title--paddingTop": isTopPadding,
14
+ "ztxk-title--paddingBottom": isBottomPadding,
15
+ "ztxk-title--paddingSide": isSidePadding,
16
+ "ztxk-title--sticky": isSticky,
13
17
  });
14
18
  return (jsxs("div", __assign({ className: classes, style: { justifyContent: justifyContent } }, { children: [jsx("div", __assign({ className: "ztxk-title--title", style: titleStyle }, { children: title })), jsx("div", __assign({ className: "ztxk-title--extra" }, { children: children }))] })));
15
19
  };
@@ -38,7 +38,7 @@ export { default as Placeholder } from './es/placeholder/placeholder.js';
38
38
  export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Breadcrumb, Card, Carousel, Cascader, Checkbox, Col, Comment, ConfigProvider, Divider, Drawer, Dropdown, Empty, Grid, Image, Layout, List, Mentions, Menu, PageHeader, Popconfirm, Popover, Progress, Radio, Rate, Result, Row, Segmented, Skeleton, Slider, Space, Spin, Statistic, Steps, Switch, Timeline, Tooltip, Transfer, Typography, Upload, message, notification } from 'antd';
39
39
  export { IModalOpenOptions, IModalProps, IModalRef } from './es/modal/interface.js';
40
40
  export { IFooterDom, IFooterProps } from './es/footer/interface.js';
41
- export { IColumnsType, ITableProps, ValidateErrorObject } from './es/table/interface.js';
41
+ export { IColumnsType, ITableProps, ITableRefHandel, ValidateErrorObject } from './es/table/interface.js';
42
42
  export { IFormItemProps, IProFormProps } from './es/form/interface.js';
43
43
  export { IOperationBtn } from './es/operationbtn/interface.js';
44
44
  export { ISelectProps } from './es/select/interface.js';