-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(footer): set max-toolbar-items when mini table is used (#634)
Set max-toolbar-items on cosmoz-bottom-bar when mini table is used AB#17737
- Loading branch information
1 parent
4158e70
commit 51b9f58
Showing
5 changed files
with
82 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import { defaultPlacement } from '@neovici/cosmoz-dropdown'; | ||
const _defaultPlacement = ['top-right', ...defaultPlacement]; | ||
|
||
export const useFooter = ({ | ||
host, | ||
...rest | ||
}) => { | ||
export const useFooter = ({ host, ...rest }) => { | ||
const { | ||
csvFilename = 'omnitable.csv', | ||
xlsxFilename = 'omnitable.xlsx', | ||
xlsxSheetname = 'Omnitable', | ||
topPlacement = _defaultPlacement, | ||
} = host; | ||
csvFilename = 'omnitable.csv', | ||
xlsxFilename = 'omnitable.xlsx', | ||
xlsxSheetname = 'Omnitable', | ||
topPlacement = _defaultPlacement, | ||
maxToolbarItems, | ||
} = host; | ||
|
||
return { | ||
csvFilename, | ||
xlsxFilename, | ||
xlsxSheetname, | ||
topPlacement, | ||
maxToolbarItems, | ||
...rest, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters