@openli1115/lowcode-edit-pro-table 1.0.77 → 1.0.78

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.
@@ -219,6 +219,31 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
219
219
  var displayValue = useMemo(function () {
220
220
  return normalizeCascaderPath(value, cascaderOptions);
221
221
  }, [value, cascaderOptions]);
222
+ var incomingLeafId = useMemo(function () {
223
+ if (Array.isArray(value)) {
224
+ var cleaned = value.filter(function (x) {
225
+ return x != null && x !== '';
226
+ });
227
+ return cleaned.length > 0 ? toStr(cleaned[cleaned.length - 1]) : '';
228
+ }
229
+ if (typeof value === 'number' && !Number.isNaN(value)) return toStr(value);
230
+ if (typeof value === 'string' && value.trim()) {
231
+ try {
232
+ var parsed = JSON.parse(value);
233
+ if (Array.isArray(parsed) && parsed.length > 0) {
234
+ return toStr(parsed[parsed.length - 1]);
235
+ }
236
+ } catch (_unused2) {
237
+ return value;
238
+ }
239
+ return value;
240
+ }
241
+ return '';
242
+ }, [value]);
243
+ var packedPathFromLeaf = useMemo(function () {
244
+ if (!incomingLeafId) return [];
245
+ return findPathByNodeValue(cascaderOptions, incomingLeafId);
246
+ }, [cascaderOptions, incomingLeafId]);
222
247
 
223
248
  /**
224
249
  * 回显兼容:
@@ -236,6 +261,11 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
236
261
  useEffect(function () {
237
262
  var leaf = displayValue.length > 0 ? displayValue[displayValue.length - 1] : '';
238
263
  var resolvedPathFromLeaf = leaf ? findPathByNodeValue(cascaderOptions, toStr(leaf)) : [];
264
+ console.log('[ProCascaderSelect] echo-id-and-path', {
265
+ fieldPath: fieldPath,
266
+ incomingLeafId: incomingLeafId,
267
+ packedPathFromLeaf: packedPathFromLeaf
268
+ });
239
269
  console.log('[ProCascaderSelect] render-debug', {
240
270
  fieldPath: fieldPath,
241
271
  structureName: structureName,
@@ -224,6 +224,31 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
224
224
  var displayValue = useMemo(function () {
225
225
  return normalizeCascaderPath(value, cascaderOptions);
226
226
  }, [value, cascaderOptions]);
227
+ var incomingLeafId = useMemo(function () {
228
+ if (Array.isArray(value)) {
229
+ var cleaned = value.filter(function (x) {
230
+ return x != null && x !== '';
231
+ });
232
+ return cleaned.length > 0 ? toStr(cleaned[cleaned.length - 1]) : '';
233
+ }
234
+ if (typeof value === 'number' && !Number.isNaN(value)) return toStr(value);
235
+ if (typeof value === 'string' && value.trim()) {
236
+ try {
237
+ var parsed = JSON.parse(value);
238
+ if (Array.isArray(parsed) && parsed.length > 0) {
239
+ return toStr(parsed[parsed.length - 1]);
240
+ }
241
+ } catch (_unused2) {
242
+ return value;
243
+ }
244
+ return value;
245
+ }
246
+ return '';
247
+ }, [value]);
248
+ var packedPathFromLeaf = useMemo(function () {
249
+ if (!incomingLeafId) return [];
250
+ return findPathByNodeValue(cascaderOptions, incomingLeafId);
251
+ }, [cascaderOptions, incomingLeafId]);
227
252
 
228
253
  /**
229
254
  * 回显兼容:
@@ -241,6 +266,11 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
241
266
  useEffect(function () {
242
267
  var leaf = displayValue.length > 0 ? displayValue[displayValue.length - 1] : '';
243
268
  var resolvedPathFromLeaf = leaf ? findPathByNodeValue(cascaderOptions, toStr(leaf)) : [];
269
+ console.log('[ProCascaderSelect] echo-id-and-path', {
270
+ fieldPath: fieldPath,
271
+ incomingLeafId: incomingLeafId,
272
+ packedPathFromLeaf: packedPathFromLeaf
273
+ });
244
274
  console.log('[ProCascaderSelect] render-debug', {
245
275
  fieldPath: fieldPath,
246
276
  structureName: structureName,
@@ -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.77';
104
+ version = '1.0.78';
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.77';
109
+ version = '1.0.78';
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.77",
3
+ "version": "1.0.78",
4
4
  "description": "@openli1115/lowcode-edit-pro-table",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -101,10 +101,10 @@
101
101
  },
102
102
  "componentConfig": {
103
103
  "isComponentLibrary": true,
104
- "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.77/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.78/build/lowcode/assets-prod.json"
105
105
  },
106
106
  "lcMeta": {
107
107
  "type": "component"
108
108
  },
109
- "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.77/build/index.html"
109
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.78/build/index.html"
110
110
  }