-
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
- Loading branch information
1 parent
4158e70
commit b3b3b01
Showing
5 changed files
with
70 additions
and
69 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