@openli1115/lowcode-edit-pro-table 1.0.95 → 1.0.96

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.
@@ -121,7 +121,11 @@ function isValidPathInTree(dataSource, pathValues) {
121
121
  return true;
122
122
  }
123
123
 
124
- /** 回填仅有叶子 id(如 city=2977)时,递归反查完整路径 [provinceId, cityId] */
124
+ /**
125
+ * 回填仅有叶子 id(与范围内表接口 `data[0].low` / 扁平 `st_xxx.low` 一致)时,
126
+ * 在 dataSource 树上 DFS:沿 children 向下找到 value===叶子的节点,返回从根到叶的 id 数组,
127
+ * 例如 ['2025','2026'] —— 最后一项即 low,前面各项为各级父节点(由树结构决定,非接口另返)。
128
+ */
125
129
  function findPathByNodeValue(dataSource, targetValue, parentPath) {
126
130
  if (parentPath === void 0) {
127
131
  parentPath = [];
@@ -140,6 +144,8 @@ function findPathByNodeValue(dataSource, targetValue, parentPath) {
140
144
  }
141
145
  return [];
142
146
  }
147
+
148
+ /** 把表单/接口里的值规范成 Fusion 用的路径数组;单叶子字符串会经 findPathByNodeValue 拼成 ['父','…','叶'] */
143
149
  function normalizeCascaderPath(v, dataSource) {
144
150
  var tryExpandByLeaf = function tryExpandByLeaf(leaf, fallback) {
145
151
  if (fallback === void 0) {
@@ -126,7 +126,11 @@ function isValidPathInTree(dataSource, pathValues) {
126
126
  return true;
127
127
  }
128
128
 
129
- /** 回填仅有叶子 id(如 city=2977)时,递归反查完整路径 [provinceId, cityId] */
129
+ /**
130
+ * 回填仅有叶子 id(与范围内表接口 `data[0].low` / 扁平 `st_xxx.low` 一致)时,
131
+ * 在 dataSource 树上 DFS:沿 children 向下找到 value===叶子的节点,返回从根到叶的 id 数组,
132
+ * 例如 ['2025','2026'] —— 最后一项即 low,前面各项为各级父节点(由树结构决定,非接口另返)。
133
+ */
130
134
  function findPathByNodeValue(dataSource, targetValue, parentPath) {
131
135
  if (parentPath === void 0) {
132
136
  parentPath = [];
@@ -145,6 +149,8 @@ function findPathByNodeValue(dataSource, targetValue, parentPath) {
145
149
  }
146
150
  return [];
147
151
  }
152
+
153
+ /** 把表单/接口里的值规范成 Fusion 用的路径数组;单叶子字符串会经 findPathByNodeValue 拼成 ['父','…','叶'] */
148
154
  function normalizeCascaderPath(v, dataSource) {
149
155
  var tryExpandByLeaf = function tryExpandByLeaf(leaf, fallback) {
150
156
  if (fallback === void 0) {
@@ -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.95';
104
+ version = '1.0.96';
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.95';
109
+ version = '1.0.96';
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.95",
3
+ "version": "1.0.96",
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.95/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.96/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.95/build/index.html"
109
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.96/build/index.html"
110
110
  }