File tree 5 files changed +432
-348
lines changed
5 files changed +432
-348
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @ensembleui/react-runtime " : patch
3
+ ---
4
+
5
+ fix column header by adding minWidth
Original file line number Diff line number Diff line change 43
43
"@types/react" : " ^18.2.21" ,
44
44
"@types/react-dom" : " ^18.2.0" ,
45
45
"@types/react-resizable" : " 3.0.7" ,
46
- "antd" : " ^5.20 .0" ,
46
+ "antd" : " ^5.21 .0" ,
47
47
"chart.js" : " ^4.4.2" ,
48
48
"chartjs-plugin-datalabels" : " ^2.2.0" ,
49
49
"dayjs" : " ^1.11.12" ,
Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ export const DataGrid: React.FC<GridProps> = (props) => {
506
506
? { display : "none" }
507
507
: undefined ) ,
508
508
} }
509
+ tableLayout = "auto"
509
510
virtual = { values ?. virtual }
510
511
>
511
512
{ dataColumns . map ( ( col , colIndex ) => {
@@ -518,6 +519,7 @@ export const DataGrid: React.FC<GridProps> = (props) => {
518
519
} ) ) }
519
520
hidden = { col . visible === false }
520
521
key = { colIndex }
522
+ minWidth = { col . width ?? 100 }
521
523
onFilter = {
522
524
col . filter ?. onFilter
523
525
? ( value , record ) : boolean =>
Original file line number Diff line number Diff line change @@ -207,10 +207,10 @@ const MultiSelect: React.FC<MultiSelectProps> = (props) => {
207
207
// handle option change
208
208
const handleChange = (
209
209
value : MultiSelectOption [ ] ,
210
- option : MultiSelectOption | MultiSelectOption [ ] ,
210
+ option ? : MultiSelectOption | MultiSelectOption [ ] ,
211
211
) : void => {
212
212
setSelectedValues ( value ) ;
213
- if ( action ) onChangeCallback ( { value, option } ) ;
213
+ if ( action ) onChangeCallback ( { value, option : option ?? [ ] } ) ;
214
214
else onItemSelectCallback ( value ) ;
215
215
216
216
if ( newOption ) {
You can’t perform that action at this time.
0 commit comments