-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add slots typing for all components (#6603)
* feat(alert): add slots type (#6599) * feat(auto-complete): add slots type (#6599) * fix(auto-complete): slots type (#6599) * feat(auto-complete): export slots type (#6599) * feat(avatar): add slots type (#6599) * feat(avatar-group): add slots type (#6599), may not be particularly precise * feat(breadcrumb-item): add slots type (#6599) * feat(breadcrumb-item): export slots type (#6599) * feat(button): add slots type (#6599) * feat(calendar): add slots type (#6599) * feat(card): add slots type (#6599) * feat(carousel): add slots type (#6599) * feat(cascader): add slots type (#6599) * feat(collapse): add slots type (#6599) * feat(color-picker): add slots type (#6599) * feat(data-table): add slots type (#6599) * feat(date-picker): add slots type (#6599) * feat(descriptions): add slots type (#6599) * feat(dialog): add slots type (#6599) * feat(drawer-content): add slots type (#6599) * feat(dynamic-input): add slots type (#6599) * feat(dynamic-tags): add slots type (#6599) * feat(ellipsis): add slots type (#6599) * feat(empty): add slots type (#6599) * feat(float-button): add slots type (#6599) * feat(image): add slots type (#6599) * feat(input): add slots type (#6599) * feat(input-number): add slots type (#6599) * feat(list): add slots type (#6599) * feat(mention): add slots type (#6599) * feat(modal): add slots type (#6599) * feat(page-header): add slots type (#6599) * feat(pagination): add slots type (#6599) * feat(popconfirm): add slots type (#6599) * feat(popover): add slots type (#6599) * feat(popselect): add slots type (#6599) * feat(result): add slots type (#6599) * feat(select): add slots type (#6599) * feat(slider): add slots type (#6599) * feat(spin): add slots type (#6599) * feat(split): add slots type (#6599) * feat(statistic): add slots type (#6599) * feat(step): add slots type (#6599) * feat(switch): add slots type (#6599) * feat(tabs): add slots type (#6599) * feat(tag): add slots type (#6599) * feat(thing): add slots type (#6599) * feat(time-picker): add slots type (#6599) * feat(time-picker): export slots type (#6599) * feat(timeline): export slots type (#6599) * feat(tooltip): export slots type (#6599) * feat(tree): export slots type (#6599) * feat(tree-select): export slots type (#6599) * feat(upload-trigger): export slots type (#6599) --------- Co-authored-by: Naily <[email protected]>
- Loading branch information
1 parent
8bd232c
commit 5bf584d
Showing
113 changed files
with
705 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { alertProps, default as NAlert } from './src/Alert' | ||
export type { AlertProps } from './src/Alert' | ||
export type { AlertProps, AlertSlots } from './src/Alert' |
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
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,2 +1,6 @@ | ||
export { avatarGroupProps, default as NAvatarGroup } from './src/AvatarGroup' | ||
export type { AvatarGroupOption, AvatarGroupProps } from './src/AvatarGroup' | ||
export type { | ||
AvatarGroupAvatarSlotOptions, | ||
AvatarGroupRestSlotOptions | ||
} from './src/interface' |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface AvatarGroupAvatarSlotOptions { | ||
option: Record<string, any> | ||
} | ||
|
||
export interface AvatarGroupRestSlotOptions { | ||
options: Array<any> | ||
rest: number | ||
} |
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,2 +1,2 @@ | ||
export { avatarProps, default as NAvatar } from './src/Avatar' | ||
export type { AvatarProps } from './src/Avatar' | ||
export type { AvatarProps, AvatarSlots } from './src/Avatar' |
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
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
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,2 +1,2 @@ | ||
export { cardProps, default as NCard } from './src/Card' | ||
export type { CardProps, CardSegmented } from './src/Card' | ||
export type { CardProps, CardSegmented, CardSlots } from './src/Card' |
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,4 +1,8 @@ | ||
export { carouselProps, default as NCarousel } from './src/Carousel' | ||
export type { CarouselProps } from './src/Carousel' | ||
export type { CarouselProps, CarouselSlots } from './src/Carousel' | ||
export { default as NCarouselItem } from './src/CarouselItem' | ||
export type { CarouselInst } from './src/interface' | ||
export type { | ||
CarouselArrowSlotOptions, | ||
CarouselDotSlotOptions, | ||
CarouselInst | ||
} from './src/interface' |
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
Oops, something went wrong.