@douyinfe/semi-ui 2.10.2-alpha.0 → 2.10.3
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/cascader/index.tsx +4 -2
- package/dist/umd/semi-ui.js +4827 -3239
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/cascader/index.js +4 -2
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/modal/confirm.d.ts +5 -5
- package/lib/cjs/select/index.js +27 -24
- package/lib/cjs/table/Body/BaseRow.d.ts +1 -0
- package/lib/cjs/table/Body/BaseRow.js +22 -0
- package/lib/cjs/table/HeadTable.d.ts +2 -1
- package/lib/cjs/table/HeadTable.js +2 -1
- package/lib/cjs/table/Table.d.ts +1 -1
- package/lib/cjs/table/Table.js +2 -0
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/es/cascader/index.js +4 -2
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/modal/confirm.d.ts +5 -5
- package/lib/es/select/index.js +23 -21
- package/lib/es/table/Body/BaseRow.d.ts +1 -0
- package/lib/es/table/Body/BaseRow.js +22 -0
- package/lib/es/table/HeadTable.d.ts +2 -1
- package/lib/es/table/HeadTable.js +2 -1
- package/lib/es/table/Table.d.ts +1 -1
- package/lib/es/table/Table.js +2 -0
- package/lib/es/typography/title.d.ts +1 -1
- package/package.json +9 -9
- package/scrollList/_story/ScrollList/index.js +1 -1
- package/select/index.tsx +3 -1
- package/table/Body/BaseRow.tsx +15 -0
- package/table/HeadTable.tsx +3 -1
- package/table/Table.tsx +2 -0
- package/table/_story/v2/FixedOnHeaderRow/index.jsx +134 -0
- package/table/_story/v2/index.js +2 -1
- package/upload/_story/upload.stories.js +1 -0
package/cascader/index.tsx
CHANGED
|
@@ -412,13 +412,15 @@ class Cascader extends BaseComponent<CascaderProps, CascaderState> {
|
|
|
412
412
|
realValue as SimpleValueType[][] :
|
|
413
413
|
[realValue] as SimpleValueType[][];
|
|
414
414
|
} else {
|
|
415
|
-
|
|
415
|
+
if (realValue !== undefined) {
|
|
416
|
+
normallizedValue = [[realValue]];
|
|
417
|
+
}
|
|
416
418
|
}
|
|
417
419
|
// formatValuePath is used to save value of valuePath
|
|
418
420
|
const formatValuePath: (string | number)[][] = [];
|
|
419
421
|
normallizedValue.forEach((valueItem: SimpleValueType[]) => {
|
|
420
422
|
const formatItem: (string | number)[] = onChangeWithObject ?
|
|
421
|
-
(valueItem as CascaderData[]).map(i => i
|
|
423
|
+
(valueItem as CascaderData[]).map(i => i?.value) :
|
|
422
424
|
valueItem as (string | number)[];
|
|
423
425
|
formatValuePath.push(formatItem);
|
|
424
426
|
});
|