@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.
@@ -73,6 +73,7 @@
73
73
  .pro-enum-group-item-selected {
74
74
  color: var(--zaui-brand);
75
75
  border: 1px solid var(--zaui-brand);
76
+ background: #fff;
76
77
  &::after {
77
78
  background: transparent;
78
79
  }
@@ -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,
@@ -1,7 +1,7 @@
1
1
  import { FormInstance } from 'antd';
2
2
  import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
3
  interface Params {
4
- name?: NamePath;
4
+ name?: any;
5
5
  names?: NamePath[];
6
6
  namesStr?: NamePath;
7
7
  originalName?: NamePath;
@@ -87,7 +87,8 @@ export var useListChanged = function useListChanged(params) {
87
87
  value: value,
88
88
  originalValue: originalValue,
89
89
  form: form,
90
- equalWith: equalWith
90
+ equalWith: equalWith,
91
+ name: namesStr || name
91
92
  });
92
93
  return [changed, originalValue];
93
94
  };
@@ -73,6 +73,7 @@
73
73
  .pro-enum-group-item-selected {
74
74
  color: var(--zaui-brand);
75
75
  border: 1px solid var(--zaui-brand);
76
+ background: #fff;
76
77
  &::after {
77
78
  background: transparent;
78
79
  }
@@ -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,
@@ -1,7 +1,7 @@
1
1
  import { FormInstance } from 'antd';
2
2
  import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
3
  interface Params {
4
- name?: NamePath;
4
+ name?: any;
5
5
  names?: NamePath[];
6
6
  namesStr?: NamePath;
7
7
  originalName?: NamePath;
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.2-beta.4",
3
+ "version": "3.4.2-beta.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",