mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 20:55:46 +08:00
fix: override types
This commit is contained in:
@@ -14,7 +14,8 @@ const defaultProps = {
|
||||
className: '',
|
||||
}
|
||||
|
||||
export type SpinnerProps = Props & typeof defaultProps & React.HTMLAttributes<any>
|
||||
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>
|
||||
export type SpinnerProps = Props & typeof defaultProps & NativeAttrs
|
||||
|
||||
const getSpans = (theme: ZeitUIThemes) => {
|
||||
return [...new Array(12)].map((_, index) => (
|
||||
|
||||
Reference in New Issue
Block a user