zmdms-webui 2.7.3 → 2.7.4
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/_virtual/localforage.js +3 -0
- package/dist/es/applayoutheader/setting/userInfoModal.js +6 -6
- package/dist/es/applayoutheader/setting/userPwdModal.js +4 -4
- package/dist/es/applayoutsider/menu/SearchInput.js +2 -2
- package/dist/es/button/button.js +1 -0
- package/dist/es/button/buttonDownload.js +1 -0
- package/dist/es/button/buttonPreview.js +1 -0
- package/dist/es/button/index.css +1 -1
- package/dist/es/chatroom/chat-room.js +2 -2
- package/dist/es/config/MyStorage.js +91 -0
- package/dist/es/config/ZtxkContext.d.ts +4 -0
- package/dist/es/config/ZtxkContext.js +4 -0
- package/dist/es/config/index.js +1 -0
- package/dist/es/electronsignatures/filecomponents/file-upload.js +1 -0
- package/dist/es/electronsignatures/index.js +1 -0
- package/dist/es/electronsignatures/qunjcomponents/code-modal.js +4 -4
- package/dist/es/enhanceselect/list-query.js +1 -0
- package/dist/es/enhanceselect/page-query.js +1 -0
- package/dist/es/form/common-search-list.js +58 -0
- package/dist/es/form/form.d.ts +1 -0
- package/dist/es/form/form.js +27 -10
- package/dist/es/form/hooks.js +3 -2
- package/dist/es/form/index.css +1 -1
- package/dist/es/form/interface.d.ts +4 -0
- package/dist/es/form/useCommonSearch.js +309 -0
- package/dist/es/formitem/formItem.d.ts +10 -1
- package/dist/es/formitem/formItem.js +19 -5
- package/dist/es/input/index.js +2 -2
- package/dist/es/input/input.js +9 -8
- package/dist/es/login/forget-password.js +6 -6
- package/dist/es/login/index.js +4 -4
- package/dist/es/node_modules/@ant-design/icons/es/icons/DeleteOutlined.js +18 -0
- package/dist/es/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.js +5 -0
- package/dist/es/node_modules/localforage/dist/localforage.js +2824 -0
- package/dist/es/sortable/sortable-item.d.ts +1 -0
- package/dist/es/sortable/sortable-item.js +9 -1
- package/dist/es/table/components/EnhanceBodyCell.js +4 -3
- package/dist/es/table/components/FilterDropdown.js +2 -2
- package/dist/es/table/hooks.js +2 -2
- package/dist/es/tree/tree.js +2 -2
- package/dist/es/uploadlist/uploadList.js +1 -0
- package/dist/es/zttransfer/SelectContainer.js +2 -2
- package/dist/index.dark.css +1 -1
- package/dist/index.default.css +1 -1
- package/dist/less/components/Button/style/index.less +5 -0
- package/dist/less/components/Form/style/index.less +45 -5
- package/package.json +3 -2
|
@@ -6,7 +6,7 @@ import { useDrop } from '../node_modules/react-dnd/dist/hooks/useDrop/useDrop.js
|
|
|
6
6
|
import { useDrag } from '../node_modules/react-dnd/dist/hooks/useDrag/useDrag.js';
|
|
7
7
|
|
|
8
8
|
var Sortable = function (_a) {
|
|
9
|
-
var type = _a.type, onMoveItem = _a.onMoveItem, index = _a.index, id = _a.id, children = _a.children, style = _a.style, className = _a.className;
|
|
9
|
+
var type = _a.type, onMoveItem = _a.onMoveItem, onMoveEnd = _a.onMoveEnd, index = _a.index, id = _a.id, children = _a.children, style = _a.style, className = _a.className;
|
|
10
10
|
var ref = useRef(null);
|
|
11
11
|
var classes = classNames("zt-sortable", className, {});
|
|
12
12
|
/**
|
|
@@ -59,6 +59,14 @@ var Sortable = function (_a) {
|
|
|
59
59
|
collect: function (monitor) { return ({
|
|
60
60
|
isDragging: monitor.isDragging(),
|
|
61
61
|
}); },
|
|
62
|
+
end: function (item, monitor) {
|
|
63
|
+
if (!monitor.didDrop()) {
|
|
64
|
+
console.log("鼠标在非可放置区域松开(未放置)");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
onMoveEnd === null || onMoveEnd === void 0 ? void 0 : onMoveEnd();
|
|
68
|
+
console.log("鼠标在可放置区域松开(放置成功)");
|
|
69
|
+
},
|
|
62
70
|
}), isDragging = _c[0].isDragging, drag = _c[1];
|
|
63
71
|
var opacity = isDragging ? 0 : 1;
|
|
64
72
|
drag(drop(ref));
|
|
@@ -8,7 +8,8 @@ import { useLatest } from 'ahooks';
|
|
|
8
8
|
import classNames from '../../node_modules/classnames/index.js';
|
|
9
9
|
import '../../config/ZtxkContext.js';
|
|
10
10
|
import useBaseContext from '../../config/useBaseContext.js';
|
|
11
|
-
import
|
|
11
|
+
import '../../config/MyStorage.js';
|
|
12
|
+
import Input from '../../input/input.js';
|
|
12
13
|
import InputNumber from '../../inputnumber/inputNumber.js';
|
|
13
14
|
import { Popover } from 'antd';
|
|
14
15
|
|
|
@@ -194,7 +195,7 @@ var EnhanceCell = function (props) {
|
|
|
194
195
|
: disabled;
|
|
195
196
|
// 输入框处理
|
|
196
197
|
if (type === "input") {
|
|
197
|
-
CurrentReactNode = (jsx(
|
|
198
|
+
CurrentReactNode = (jsx(Input, __assign({ value: val, onChange: function (e) {
|
|
198
199
|
var resultValue = e.target.value;
|
|
199
200
|
isIptNumberBooleanRef.current = false;
|
|
200
201
|
setVal(resultValue);
|
|
@@ -205,7 +206,7 @@ var EnhanceCell = function (props) {
|
|
|
205
206
|
}
|
|
206
207
|
// 文本域输入框处理
|
|
207
208
|
if (type === "textarea") {
|
|
208
|
-
CurrentReactNode = (jsx(
|
|
209
|
+
CurrentReactNode = (jsx(Input.TextArea, __assign({ value: val, onChange: function (e) {
|
|
209
210
|
var resultValue = e.target.value;
|
|
210
211
|
isIptNumberBooleanRef.current = false;
|
|
211
212
|
setVal(resultValue);
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo, useEffect, useState } from 'react';
|
|
4
4
|
import { useLatest } from 'ahooks';
|
|
5
5
|
import myMessage from '../../message/index.js';
|
|
6
|
-
import
|
|
6
|
+
import Input from '../../input/input.js';
|
|
7
7
|
import ButtonCom from '../../button/button.js';
|
|
8
8
|
import { Checkbox, Tooltip } from 'antd';
|
|
9
9
|
import QuestionCircleOutlined from '../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js';
|
|
@@ -70,7 +70,7 @@ var FilterDropdown = function (props) {
|
|
|
70
70
|
closeDropdown: true,
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
return (jsxs("div", __assign({ className: "ztxk-table--filter", onKeyDown: function (e) { return e.stopPropagation(); } }, { children: [jsx(
|
|
73
|
+
return (jsxs("div", __assign({ className: "ztxk-table--filter", onKeyDown: function (e) { return e.stopPropagation(); } }, { children: [jsx(Input, { placeholder: "\u591A\u4E2A\u6761\u4EF6\u901A\u8FC7\u9017\u53F7\u6216\u7A7A\u683C\u9694\u5F00", value: searchValue, onChange: onSearchValueChange, onPressEnter: onSearchValuePressEnter, ref: searchValueInputRef }), jsx(Checkbox.Group, __assign({ className: "ztxk-table--filter__checkbox-container", value: searchCheckboxValue, onChange: onSearchCheckboxValueChange }, { children: currentData.map(function (item) {
|
|
74
74
|
return (jsx(Checkbox, __assign({ value: item.value }, { children: item.value === "__null__" ? "空值" : item.value }), item.value));
|
|
75
75
|
}) })), jsxs("div", __assign({ className: "ztxk-table--filter__btn-container" }, { children: [jsxs(ButtonCom, __assign({ type: "primary", onClick: onSearchHand }, { children: ["\u641C\u7D22", jsx(Tooltip, __assign({ placement: "bottomLeft", title: "\u5BF9\u4E8E\u6570\u5B57\u5217\u53EF\u4EE5\u5C1D\u8BD5\u8F93\u5165\u4E00\u4E9B\u8868\u8FBE\u5F0F: $0 + 1 > 2\u3001 >= 10\u3001 $0 + 1 == 2" }, { children: jsx(QuestionCircleOutlined, {}) }))] })), jsx(ButtonCom, __assign({ onClick: onResetHand }, { children: "\u91CD\u7F6E" }))] }))] })));
|
|
76
76
|
};
|
package/dist/es/table/hooks.js
CHANGED
|
@@ -70,7 +70,7 @@ function useMoveRowChange(dataSourceRef, onTableChange, options) {
|
|
|
70
70
|
(_a = defaultOnRow === null || defaultOnRow === void 0 ? void 0 : defaultOnRow.onContextMenuCapture) === null || _a === void 0 ? void 0 : _a.call(defaultOnRow, e);
|
|
71
71
|
// 检查事件目标是否在 Modal 或其他浮层组件内
|
|
72
72
|
var target = e.target;
|
|
73
|
-
var isInModal = target.closest(
|
|
73
|
+
var isInModal = target.closest(".ant-modal-wrap, .ant-modal-root");
|
|
74
74
|
if (isInModal) {
|
|
75
75
|
return; // 如果在 Modal 内,不显示右键菜单
|
|
76
76
|
}
|
|
@@ -103,7 +103,7 @@ function useMoveRowChange(dataSourceRef, onTableChange, options) {
|
|
|
103
103
|
(_a = extra === null || extra === void 0 ? void 0 : extra.onContextMenuCapture) === null || _a === void 0 ? void 0 : _a.call(extra, e);
|
|
104
104
|
// 检查事件目标是否在 Modal 或其他浮层组件内
|
|
105
105
|
var target = e.target;
|
|
106
|
-
var isInModal = target.closest(
|
|
106
|
+
var isInModal = target.closest(".ant-modal-wrap, .ant-modal-root");
|
|
107
107
|
if (isInModal) {
|
|
108
108
|
return; // 如果在 Modal 内,不显示右键菜单
|
|
109
109
|
}
|
package/dist/es/tree/tree.js
CHANGED
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from '../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { memo, forwardRef, useRef, useImperativeHandle } from 'react';
|
|
4
4
|
import { Tree as Tree$1 } from 'antd';
|
|
5
|
-
import
|
|
5
|
+
import Input from '../input/input.js';
|
|
6
6
|
import classNames from '../node_modules/classnames/index.js';
|
|
7
7
|
import { useBasicInfo, useAllCheckData, useAllDataHandle, useSearchHandle, useLazySearchExpands } from './hooks.js';
|
|
8
8
|
|
|
@@ -59,7 +59,7 @@ var Tree = function (props, ref) {
|
|
|
59
59
|
},
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
|
-
return (jsxs("div", __assign({ className: classes, style: __assign({ height: cssTreeHeight }, style) }, { children: [searchType ? (jsx(
|
|
62
|
+
return (jsxs("div", __assign({ className: classes, style: __assign({ height: cssTreeHeight }, style) }, { children: [searchType ? (jsx(Input.Search, { value: searchValue, onChange: onChangeHandle, onSearch: onSearchHandle })) : null, (props.checkable || props.multiple) && checkedKeys && showCount ? (jsxs("div", { children: ["\u5DF2\u9009\u4E2D\uFF1A", checkedKeys
|
|
63
63
|
? Array.isArray(checkedKeys)
|
|
64
64
|
? checkedKeys.length
|
|
65
65
|
: (_a = checkedKeys.checked) === null || _a === void 0 ? void 0 : _a.length
|
|
@@ -13,6 +13,7 @@ import { MAX_PREVIEW_SIZE } from '../config/constant.js';
|
|
|
13
13
|
import { toPreviewFile } from './utils.js';
|
|
14
14
|
import '../config/ZtxkContext.js';
|
|
15
15
|
import useBaseContext from '../config/useBaseContext.js';
|
|
16
|
+
import '../config/MyStorage.js';
|
|
16
17
|
import LoadingOutlined from '../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
17
18
|
import ButtonCom from '../button/button.js';
|
|
18
19
|
import UploadOutlined from '../node_modules/@ant-design/icons/es/icons/UploadOutlined.js';
|
|
@@ -5,7 +5,7 @@ import SearchResult from './SearchResult.js';
|
|
|
5
5
|
import CheckedResult from './CheckedResult.js';
|
|
6
6
|
import { ZtTransferContext } from './context.js';
|
|
7
7
|
import ButtonCom from '../button/button.js';
|
|
8
|
-
import
|
|
8
|
+
import Input from '../input/input.js';
|
|
9
9
|
import { Spin } from 'antd';
|
|
10
10
|
|
|
11
11
|
var SelectContainer = function (props) {
|
|
@@ -22,7 +22,7 @@ var SelectContainer = function (props) {
|
|
|
22
22
|
});
|
|
23
23
|
onClearIndex && onClearIndex(index, item);
|
|
24
24
|
}, [onClearIndex, key]);
|
|
25
|
-
return (jsx("div", __assign({ className: "zt-transfer--container" }, { children: jsxs(Spin, __assign({ spinning: spinning }, { children: [title && (jsxs("div", __assign({ className: "title" }, { children: [jsxs("span", { children: [title, checkedLength ? " (".concat(checkedLength, ")") : null] }), allowClear && (jsx(ButtonCom, __assign({ type: "link", onClick: onClear }, { children: "\u6E05\u7A7A" })))] }))), jsxs("div", __assign({ className: "wrap" }, { children: [jsx(
|
|
25
|
+
return (jsx("div", __assign({ className: "zt-transfer--container" }, { children: jsxs(Spin, __assign({ spinning: spinning }, { children: [title && (jsxs("div", __assign({ className: "title" }, { children: [jsxs("span", { children: [title, checkedLength ? " (".concat(checkedLength, ")") : null] }), allowClear && (jsx(ButtonCom, __assign({ type: "link", onClick: onClear }, { children: "\u6E05\u7A7A" })))] }))), jsxs("div", __assign({ className: "wrap" }, { children: [jsx(Input.Search, { className: "search", placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22", onSearch: function (v) { return __awaiter(void 0, void 0, void 0, function () {
|
|
26
26
|
var data;
|
|
27
27
|
return __generator(this, function (_a) {
|
|
28
28
|
switch (_a.label) {
|