zmdms-webui 0.0.99 → 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.
package/dist/es/modal/modal.js
CHANGED
|
@@ -142,28 +142,12 @@ var Modal = function (_a, ref) {
|
|
|
142
142
|
return (jsx(Modal$1, __assign({ open: open, onCancel: close, className: classes, okText: "\u4FDD\u5B58", onOk: footer ? undefined : onOkHandle, width: "70%", title: title, keyboard: false, maskClosable: false, confirmLoading: loading, cancelButtonProps: { loading: loading }, footer: footer }, resetProps)));
|
|
143
143
|
};
|
|
144
144
|
var ModalComponent = forwardRef(Modal);
|
|
145
|
-
var ModalConfirm = function (modalProps) {
|
|
146
|
-
var onOk = modalProps.onOk, resetModalProps = __rest(modalProps, ["onOk"]);
|
|
147
|
-
var modalConfirm = Modal$1.confirm(__assign(__assign({}, resetModalProps), { onOk: onOk
|
|
148
|
-
? function () {
|
|
149
|
-
setCancelBtnProps(modalConfirm, { loading: true });
|
|
150
|
-
onOk()
|
|
151
|
-
.then(function () {
|
|
152
|
-
setCancelBtnProps(modalConfirm, { loading: false, open: false });
|
|
153
|
-
})
|
|
154
|
-
.catch(function (err) {
|
|
155
|
-
setCancelBtnProps(modalConfirm, { loading: false, open: true });
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
: undefined }));
|
|
159
|
-
return modalConfirm;
|
|
160
|
-
};
|
|
161
145
|
ModalComponent.displayName = "ZTXK_WEBUI_ModalComponent";
|
|
162
146
|
ModalComponent.info = Modal$1.info;
|
|
163
147
|
ModalComponent.success = Modal$1.success;
|
|
164
148
|
ModalComponent.error = Modal$1.error;
|
|
165
149
|
ModalComponent.warning = Modal$1.warning;
|
|
166
|
-
ModalComponent.confirm =
|
|
150
|
+
ModalComponent.confirm = Modal$1.confirm;
|
|
167
151
|
ModalComponent.destroyAll = Modal$1.destroyAll;
|
|
168
152
|
|
|
169
153
|
export { ModalComponent as default };
|
|
@@ -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;
|
package/dist/es/title/title.js
CHANGED
|
@@ -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
|
};
|
package/dist/index.build.d.ts
CHANGED
|
@@ -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';
|