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
package/dist/es/input/input.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __assign } from '../_virtual/_tslib.js';
|
|
1
|
+
import { __rest, __assign } from '../_virtual/_tslib.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { memo, forwardRef, useContext } from 'react';
|
|
4
|
-
import { Input as Input$
|
|
4
|
+
import { Input as Input$2 } from 'antd';
|
|
5
5
|
import MemoTextArea from './TextArea.js';
|
|
6
6
|
import { FormContext } from '../form/form.js';
|
|
7
7
|
|
|
8
8
|
var Input = function (props, ref) {
|
|
9
|
-
var isEnterSearch = props.isEnterSearch;
|
|
9
|
+
var isEnterSearch = props.isEnterSearch, resetProps = __rest(props, ["isEnterSearch"]);
|
|
10
10
|
var onSearch = useContext(FormContext).onSearch;
|
|
11
|
-
return (jsx(Input$
|
|
11
|
+
return (jsx(Input$2, __assign({}, resetProps, { ref: ref, onPressEnter: isEnterSearch
|
|
12
12
|
? function (e) {
|
|
13
13
|
var _a;
|
|
14
14
|
(_a = props.onPressEnter) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
@@ -18,9 +18,10 @@ var Input = function (props, ref) {
|
|
|
18
18
|
};
|
|
19
19
|
var MemoInput = memo(forwardRef(Input));
|
|
20
20
|
MemoInput.displayName = "ZTXK_WEBUI_Input";
|
|
21
|
-
MemoInput.Group = Input$
|
|
22
|
-
MemoInput.Search = Input$
|
|
21
|
+
MemoInput.Group = Input$2.Group;
|
|
22
|
+
MemoInput.Search = Input$2.Search;
|
|
23
23
|
MemoInput.TextArea = MemoTextArea;
|
|
24
|
-
MemoInput.Password = Input$
|
|
24
|
+
MemoInput.Password = Input$2.Password;
|
|
25
|
+
var Input$1 = MemoInput;
|
|
25
26
|
|
|
26
|
-
export {
|
|
27
|
+
export { Input$1 as default };
|
|
@@ -4,7 +4,7 @@ import { memo, useCallback, useMemo, useState, useRef, useEffect } from 'react';
|
|
|
4
4
|
import { phoneValidate, validatePassword } from 'zmdms-utils';
|
|
5
5
|
import MemoForm from '../form/form.js';
|
|
6
6
|
import myMessage from '../message/index.js';
|
|
7
|
-
import
|
|
7
|
+
import Input from '../input/input.js';
|
|
8
8
|
import ButtonCom from '../button/button.js';
|
|
9
9
|
import ModalComponent from '../modal/modal.js';
|
|
10
10
|
|
|
@@ -72,7 +72,7 @@ var ForgetPassword = function (_a) {
|
|
|
72
72
|
width: "halfAll",
|
|
73
73
|
rules: [{ required: true, message: "请输入您的用户名" }],
|
|
74
74
|
render: function (itemProps) {
|
|
75
|
-
return jsx(
|
|
75
|
+
return jsx(Input, { placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u7528\u6237\u540D" });
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
{
|
|
@@ -87,7 +87,7 @@ var ForgetPassword = function (_a) {
|
|
|
87
87
|
},
|
|
88
88
|
],
|
|
89
89
|
render: function (itemProps) {
|
|
90
|
-
return jsx(
|
|
90
|
+
return jsx(Input, { placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u624B\u673A\u53F7" });
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -100,7 +100,7 @@ var ForgetPassword = function (_a) {
|
|
|
100
100
|
right: 0,
|
|
101
101
|
}, type: "primary", onClick: onSendCode }, { children: ["\u53D1\u9001\u9A8C\u8BC1\u7801", countDown < countDownMaxTime ? "(".concat(countDown, "s)") : ""] }))),
|
|
102
102
|
render: function (itemProps) {
|
|
103
|
-
return jsx(
|
|
103
|
+
return jsx(Input, { placeholder: "\u8BF7\u8F93\u5165\u77ED\u4FE1\u9A8C\u8BC1\u7801" });
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
{
|
|
@@ -132,7 +132,7 @@ var ForgetPassword = function (_a) {
|
|
|
132
132
|
color: "#794808",
|
|
133
133
|
} }, { children: "\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u7279\u6B8A\u5B57\u7B26\u4E14\u6700\u5C0F\u957F\u5EA6\u4E3A8\uFF0C\u4E14\u4E0D\u80FD\u51FA\u73B0\u8FDE\u7EED\u6570\u5B57\u6216\u5B57\u7B26\uFF0C\u4E0D\u80FD\u51FA\u73B0\u76F8\u540C\u5B57\u7B26\uFF0C\u4E14\u7981\u6B62\u4F7F\u7528\u7528\u6237\u8D26\u53F7\u4F5C\u4E3A\u5BC6\u7801" }))),
|
|
134
134
|
render: function (itemProps) {
|
|
135
|
-
return jsx(
|
|
135
|
+
return jsx(Input.Password, { placeholder: "\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801" });
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
138
|
{
|
|
@@ -154,7 +154,7 @@ var ForgetPassword = function (_a) {
|
|
|
154
154
|
},
|
|
155
155
|
],
|
|
156
156
|
render: function (itemProps) {
|
|
157
|
-
return jsx(
|
|
157
|
+
return jsx(Input.Password, { placeholder: "\u786E\u8BA4\u65B0\u5BC6\u7801" });
|
|
158
158
|
},
|
|
159
159
|
},
|
|
160
160
|
];
|
package/dist/es/login/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState, useEffect, useImperativeHandle } from 'react';
|
|
|
4
4
|
import { Form, Checkbox } from 'antd';
|
|
5
5
|
import { decrypt, encrypt } from './utils.js';
|
|
6
6
|
import ForgetPassword from './forget-password.js';
|
|
7
|
-
import
|
|
7
|
+
import Input from '../input/input.js';
|
|
8
8
|
import IconFont from '../icon/index.js';
|
|
9
9
|
import ButtonCom from '../button/button.js';
|
|
10
10
|
|
|
@@ -63,17 +63,17 @@ var Login = function (props) {
|
|
|
63
63
|
required: true,
|
|
64
64
|
message: "请输入您的账号",
|
|
65
65
|
},
|
|
66
|
-
] }, { children: jsx(
|
|
66
|
+
] }, { children: jsx(Input, { size: "large", autoComplete: "username", prefix: jsx(IconFont, { type: "icon-yonghu", style: { fontSize: "14px", color: "rgba(0,0,0,.65)" } }) }) })), jsx(Item, __assign({ label: "\u8BF7\u8F93\u5165\u60A8\u7684\u5BC6\u7801", name: "password", rules: [
|
|
67
67
|
{
|
|
68
68
|
required: true,
|
|
69
69
|
message: "请输入您的密码",
|
|
70
70
|
},
|
|
71
|
-
] }, { children: jsx(
|
|
71
|
+
] }, { children: jsx(Input.Password, { size: "large", autoComplete: "current-password", prefix: jsx(IconFont, { type: "icon-mima", style: { fontSize: "14px", color: "rgba(0,0,0,.65)" } }) }) })), suffixRender, captcha ? (jsx(Item, __assign({ label: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", name: "captcha", rules: [
|
|
72
72
|
{
|
|
73
73
|
required: true,
|
|
74
74
|
message: "请输入验证码",
|
|
75
75
|
},
|
|
76
|
-
] }, { children: jsx(
|
|
76
|
+
] }, { children: jsx(Input, { size: "large", addonAfter: jsx("img", { src: (captcha === null || captcha === void 0 ? void 0 : captcha.image) || "", alt: "\u9A8C\u8BC1\u7801", style: { height: "26px", cursor: "pointer" }, onClick: function () { return getCaptcha(); } }) }) }))) : null, jsx(Item, { children: jsx(ButtonCom, __assign({ htmlType: "submit", block: true, className: "form__item--button", loading: loading }, { children: "\u767B\u5F55" })) }), jsxs("div", __assign({ className: "form__item--remember" }, { children: [jsx(Item, __assign({ name: "remember", valuePropName: "checked" }, { children: jsx(Checkbox, { children: "\u8BB0\u4F4F\u5BC6\u7801" }) })), jsx("div", __assign({ className: "form__item--remember-forget", onClick: function () {
|
|
77
77
|
setOpen(true);
|
|
78
78
|
} }, { children: "\u5FD8\u8BB0\u5BC6\u7801" }))] })), jsx(ForgetPassword, { open: open, setOpen: setOpen, checkUserPhone: checkUserPhone, sendCode: sendCode, submitRequest: submitRequest })] })) })));
|
|
79
79
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _objectSpread2 from '../../../../@babel/runtime/helpers/esm/objectSpread2.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import DeleteOutlinedSvg from '../../../icons-svg/es/asn/DeleteOutlined.js';
|
|
4
|
+
import AntdIcon from '../components/AntdIcon.js';
|
|
5
|
+
|
|
6
|
+
var DeleteOutlined = function DeleteOutlined(props, ref) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
icon: DeleteOutlinedSvg
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
var RefIcon = /*#__PURE__*/React.forwardRef(DeleteOutlined);
|
|
13
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
14
|
+
RefIcon.displayName = 'DeleteOutlined';
|
|
15
|
+
}
|
|
16
|
+
var DeleteOutlined$1 = RefIcon;
|
|
17
|
+
|
|
18
|
+
export { DeleteOutlined$1 as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
var DeleteOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
|
|
3
|
+
var DeleteOutlinedSvg = DeleteOutlined;
|
|
4
|
+
|
|
5
|
+
export { DeleteOutlinedSvg as default };
|