@zat-design/sisyphus-react 3.4.2-beta.4 → 3.4.2-beta.6
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/es/ProEnum/style/index.less +1 -0
- package/es/ProForm/utils/useChanged.js +0 -7
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +2 -1
- package/lib/ProEnum/style/index.less +1 -0
- package/lib/ProForm/utils/useChanged.js +0 -7
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +2 -1
- package/package.json +1 -1
|
@@ -2,13 +2,6 @@ import "antd/es/form/style";
|
|
|
2
2
|
import _Form from "antd/es/form";
|
|
3
3
|
import { get } from 'lodash';
|
|
4
4
|
import { diffOriginal } from './diffOriginal';
|
|
5
|
-
function wait(ms) {
|
|
6
|
-
return new Promise(function (resolve) {
|
|
7
|
-
setTimeout(function () {
|
|
8
|
-
resolve();
|
|
9
|
-
}, ms);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
5
|
export var useChanged = function useChanged(_ref) {
|
|
13
6
|
var name = _ref.name,
|
|
14
7
|
names = _ref.names,
|
|
@@ -7,13 +7,6 @@ exports.useChanged = void 0;
|
|
|
7
7
|
var _antd = require("antd");
|
|
8
8
|
var _lodash = require("lodash");
|
|
9
9
|
var _diffOriginal = require("./diffOriginal");
|
|
10
|
-
function wait(ms) {
|
|
11
|
-
return new Promise(function (resolve) {
|
|
12
|
-
setTimeout(function () {
|
|
13
|
-
resolve();
|
|
14
|
-
}, ms);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
10
|
var useChanged = exports.useChanged = function useChanged(_ref) {
|
|
18
11
|
var name = _ref.name,
|
|
19
12
|
names = _ref.names,
|
|
@@ -92,7 +92,8 @@ var useListChanged = exports.useListChanged = function useListChanged(params) {
|
|
|
92
92
|
value: value,
|
|
93
93
|
originalValue: originalValue,
|
|
94
94
|
form: form,
|
|
95
|
-
equalWith: equalWith
|
|
95
|
+
equalWith: equalWith,
|
|
96
|
+
name: namesStr || name
|
|
96
97
|
});
|
|
97
98
|
return [changed, originalValue];
|
|
98
99
|
};
|