ztxkui 2.1.3 → 2.1.7
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.
|
@@ -144,7 +144,9 @@ function EnhanceSelect(_a) {
|
|
|
144
144
|
getData(request, {
|
|
145
145
|
url: url,
|
|
146
146
|
method: method,
|
|
147
|
-
params: __assign(__assign({ size:
|
|
147
|
+
params: __assign(__assign({ size: Array.isArray(dataKeyValue) && dataKeyValue.length > 30
|
|
148
|
+
? dataKeyValue.length
|
|
149
|
+
: 30, page: 1 }, outParams), searchParams),
|
|
148
150
|
})
|
|
149
151
|
.then(function (resData) {
|
|
150
152
|
var _a, _b, _c;
|
|
@@ -173,7 +173,7 @@ var Upload = function (props) {
|
|
|
173
173
|
var fileAction = apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
|
|
174
174
|
return (React.createElement(React.Fragment, null,
|
|
175
175
|
showUploadBtn && (React.createElement("div", { className: "zt-upload" },
|
|
176
|
-
React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length || isDirect, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length },
|
|
176
|
+
React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length || isDirect, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length || restProps.disabled },
|
|
177
177
|
React.createElement(UploadOutlined, null),
|
|
178
178
|
fileBtnText || '添加附件',
|
|
179
179
|
maxCount === fileList.length &&
|
|
@@ -45,7 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import React, { useState, useCallback, useRef, useEffect } from 'react';
|
|
48
|
+
import React, { useState, useCallback, useRef, useEffect, useLayoutEffect, } from 'react';
|
|
49
49
|
import { Modal, Form, SearchContainer, Input, Container, Button, message, } from '../../../../index';
|
|
50
50
|
import { validate, commonMessage } from 'ztxkutils/dist/validate';
|
|
51
51
|
var SearchLeft = SearchContainer.SearchLeft, Item = SearchContainer.SearchItem;
|
|
@@ -58,6 +58,14 @@ var ForgetPassword = function (_a) {
|
|
|
58
58
|
var _c = useState(false), codeLoading = _c[0], setCodeLoading = _c[1];
|
|
59
59
|
var _d = useState(countDownMaxTime), countDown = _d[0], setCountDown = _d[1];
|
|
60
60
|
var setIntervalCount = useRef();
|
|
61
|
+
useLayoutEffect(function () {
|
|
62
|
+
form.setFieldsValue({
|
|
63
|
+
phone: undefined,
|
|
64
|
+
code: undefined,
|
|
65
|
+
newPassword: undefined,
|
|
66
|
+
newPassword1: undefined,
|
|
67
|
+
});
|
|
68
|
+
}, [form]);
|
|
61
69
|
// 开始倒计时
|
|
62
70
|
useEffect(function () {
|
|
63
71
|
// 倒计时
|
|
@@ -185,7 +193,7 @@ var ForgetPassword = function (_a) {
|
|
|
185
193
|
var footerDomFn = function () {
|
|
186
194
|
return (React.createElement(Button, { type: "primary", onClick: onSaveHandle, loading: loading }, "\u786E\u8BA4\u4FEE\u6539"));
|
|
187
195
|
};
|
|
188
|
-
return (React.createElement(Modal, { loading: loading, visible: visible, onCancel: onCancel, title: "\u5FD8\u8BB0\u5BC6\u7801", width: "80%", footer: footerDomFn() },
|
|
196
|
+
return (React.createElement(Modal, { loading: loading, visible: visible, onCancel: onCancel, title: "\u5FD8\u8BB0\u5BC6\u7801", width: "80%", footer: footerDomFn(), forceRender: true },
|
|
189
197
|
React.createElement(Container, null,
|
|
190
198
|
React.createElement(Form, { name: "forget-password-making", autoComplete: "off", form: form },
|
|
191
199
|
React.createElement(SearchContainer, { dark: true },
|
|
@@ -141,7 +141,7 @@ var Making = function (_a) {
|
|
|
141
141
|
] },
|
|
142
142
|
React.createElement(Input, { autoComplete: "new-password", type: "password" })),
|
|
143
143
|
React.createElement("div", null,
|
|
144
|
-
React.createElement("p", { style: { height: 32, lineHeight: '32px', color: 'red' } },
|
|
144
|
+
React.createElement("p", { style: { height: 32, lineHeight: '32px', color: 'red' } }, commonMessage.passwordMessage))),
|
|
145
145
|
React.createElement(Item, { name: "newPassword1", label: "\u786E\u8BA4\u65B0\u5BC6\u7801", rules: [
|
|
146
146
|
{ required: true, message: '请确认密码' },
|
|
147
147
|
function (_a) {
|