@openli1115/lowcode-edit-pro-table 1.0.49 → 1.0.50

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.
@@ -6,7 +6,7 @@ var createContext = React.createContext,
6
6
  useMemo = React.useMemo,
7
7
  useRef = React.useRef,
8
8
  useState = React.useState;
9
- import { get, set } from 'lodash';
9
+ import { get, set, isEqual } from 'lodash';
10
10
 
11
11
  // formContext.ts
12
12
  var FormContext;
@@ -44,7 +44,7 @@ export var FormProvider = function FormProvider(_ref) {
44
44
 
45
45
  // 仅当 initialValues 引用变化时更新状态
46
46
  useEffect(function () {
47
- if (initialValues !== initialValuesRef.current) {
47
+ if (!isEqual(initialValues, initialValuesRef.current)) {
48
48
  console.log('[FormProvider] 🔄 useEffect triggered - initialValues:', initialValues);
49
49
  initialValuesRef.current = initialValues;
50
50
  setValues(function (prev) {
@@ -50,7 +50,7 @@ var FormProvider = exports.FormProvider = function FormProvider(_ref) {
50
50
 
51
51
  // 仅当 initialValues 引用变化时更新状态
52
52
  useEffect(function () {
53
- if (initialValues !== initialValuesRef.current) {
53
+ if (!(0, _lodash.isEqual)(initialValues, initialValuesRef.current)) {
54
54
  console.log('[FormProvider] 🔄 useEffect triggered - initialValues:', initialValues);
55
55
  initialValuesRef.current = initialValues;
56
56
  setValues(function (prev) {
@@ -101,7 +101,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
101
101
  packageName = '@openli1115/lowcode-edit-pro-table';
102
102
  }
103
103
  if (version === void 0) {
104
- version = '1.0.49';
104
+ version = '1.0.50';
105
105
  }
106
106
  if (basicLibraryVersion === void 0) {
107
107
  basicLibraryVersion = {
@@ -106,7 +106,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
106
106
  packageName = '@openli1115/lowcode-edit-pro-table';
107
107
  }
108
108
  if (version === void 0) {
109
- version = '1.0.49';
109
+ version = '1.0.50';
110
110
  }
111
111
  if (basicLibraryVersion === void 0) {
112
112
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openli1115/lowcode-edit-pro-table",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "@openli1115/lowcode-edit-pro-table",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -100,10 +100,10 @@
100
100
  },
101
101
  "componentConfig": {
102
102
  "isComponentLibrary": true,
103
- "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.49/build/lowcode/assets-prod.json"
103
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.50/build/lowcode/assets-prod.json"
104
104
  },
105
105
  "lcMeta": {
106
106
  "type": "component"
107
107
  },
108
- "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.49/build/index.html"
108
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.50/build/index.html"
109
109
  }