@openli1115/lowcode-edit-pro-table 1.0.75 → 1.0.76
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.c9c646ae.js → umi.14e1a898.js} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/ProCascaderSelect/index.js +8 -8
- package/lib/components/ProCascaderSelect/index.js +8 -8
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -183,6 +183,7 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
|
|
|
183
183
|
schemaOnChange = props.onChange,
|
|
184
184
|
defaultValue = props.defaultValue,
|
|
185
185
|
multiple = props.multiple;
|
|
186
|
+
var isMultiple = multiple === true || multiple === 'true';
|
|
186
187
|
var _resolveProScreenBind = resolveProScreenBinding({
|
|
187
188
|
screen_structure: screen_structure,
|
|
188
189
|
screen_structure_field: screen_structure_field,
|
|
@@ -213,19 +214,18 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
|
|
|
213
214
|
}, [value, cascaderOptions]);
|
|
214
215
|
|
|
215
216
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* 多选仍传 Fusion 所需的多个 value(与表单存值一致)。
|
|
217
|
+
* 回显兼容:
|
|
218
|
+
* - 多选:沿用路径数组
|
|
219
|
+
* - 单选:传叶子值(字符串);部分 Fusion 版本单选不接受数组 value,传数组会不显示
|
|
220
220
|
*/
|
|
221
221
|
var valueForFusion = useMemo(function () {
|
|
222
222
|
var path = displayValue;
|
|
223
|
-
if (
|
|
223
|
+
if (isMultiple) {
|
|
224
224
|
return path;
|
|
225
225
|
}
|
|
226
|
-
if (path.length === 0) return
|
|
227
|
-
return
|
|
228
|
-
}, [displayValue,
|
|
226
|
+
if (path.length === 0) return '';
|
|
227
|
+
return path[path.length - 1];
|
|
228
|
+
}, [displayValue, isMultiple]);
|
|
229
229
|
|
|
230
230
|
/** dataSource 未就绪或异步时,仍用自定义文案兜底 */
|
|
231
231
|
var schemaDisplayRender = props.displayRender;
|
|
@@ -188,6 +188,7 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
|
|
|
188
188
|
schemaOnChange = props.onChange,
|
|
189
189
|
defaultValue = props.defaultValue,
|
|
190
190
|
multiple = props.multiple;
|
|
191
|
+
var isMultiple = multiple === true || multiple === 'true';
|
|
191
192
|
var _resolveProScreenBind = (0, _utils.resolveProScreenBinding)({
|
|
192
193
|
screen_structure: screen_structure,
|
|
193
194
|
screen_structure_field: screen_structure_field,
|
|
@@ -218,19 +219,18 @@ var ProCascaderSelect = function ProCascaderSelect(props) {
|
|
|
218
219
|
}, [value, cascaderOptions]);
|
|
219
220
|
|
|
220
221
|
/**
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* 多选仍传 Fusion 所需的多个 value(与表单存值一致)。
|
|
222
|
+
* 回显兼容:
|
|
223
|
+
* - 多选:沿用路径数组
|
|
224
|
+
* - 单选:传叶子值(字符串);部分 Fusion 版本单选不接受数组 value,传数组会不显示
|
|
225
225
|
*/
|
|
226
226
|
var valueForFusion = useMemo(function () {
|
|
227
227
|
var path = displayValue;
|
|
228
|
-
if (
|
|
228
|
+
if (isMultiple) {
|
|
229
229
|
return path;
|
|
230
230
|
}
|
|
231
|
-
if (path.length === 0) return
|
|
232
|
-
return
|
|
233
|
-
}, [displayValue,
|
|
231
|
+
if (path.length === 0) return '';
|
|
232
|
+
return path[path.length - 1];
|
|
233
|
+
}, [displayValue, isMultiple]);
|
|
234
234
|
|
|
235
235
|
/** dataSource 未就绪或异步时,仍用自定义文案兜底 */
|
|
236
236
|
var schemaDisplayRender = props.displayRender;
|
package/lowcode_es/meta.js
CHANGED
|
@@ -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.
|
|
104
|
+
version = '1.0.76';
|
|
105
105
|
}
|
|
106
106
|
if (basicLibraryVersion === void 0) {
|
|
107
107
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -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.
|
|
109
|
+
version = '1.0.76';
|
|
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.
|
|
3
|
+
"version": "1.0.76",
|
|
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.
|
|
104
|
+
"materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.76/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.
|
|
109
|
+
"homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.76/build/index.html"
|
|
110
110
|
}
|