Skip to content

Commit b62c156

Browse files
committed
feat: add some type export
1 parent ce767f2 commit b62c156

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

components/components.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export { default as Col } from './col';
4949
export type { CommentProps } from './comment';
5050
export { default as Comment } from './comment';
5151

52+
export type { ConfigProviderProps } from './config-provider';
5253
export { default as ConfigProvider } from './config-provider';
5354

5455
export type { DatePickerProps } from './date-picker';
@@ -80,6 +81,7 @@ export { default as Form, FormItem, FormItemRest } from './form';
8081

8182
export { default as Grid } from './grid';
8283

84+
export type { InputProps, TextAreaProps } from './input';
8385
export { default as Input, InputGroup, InputPassword, InputSearch, Textarea } from './input';
8486

8587
export type { ImageProps } from './image';
@@ -124,8 +126,10 @@ export { default as PageHeader } from './page-header';
124126
export type { PaginationProps } from './pagination';
125127
export { default as Pagination } from './pagination';
126128

129+
export type { PopconfirmProps } from './popconfirm';
127130
export { default as Popconfirm } from './popconfirm';
128131

132+
export type { PopoverProps } from './popover';
129133
export { default as Popover } from './popover';
130134

131135
export type { ProgressProps } from './progress';
@@ -155,6 +159,7 @@ export {
155159
SkeletonImage,
156160
} from './skeleton';
157161

162+
export type { SliderProps } from './slider';
158163
export { default as Slider } from './slider';
159164

160165
export type { SpaceProps } from './space';
@@ -163,6 +168,7 @@ export { default as Space } from './space';
163168
export type { SpinProps } from './spin';
164169
export { default as Spin } from './spin';
165170

171+
export type { StepProps, StepsProps } from './steps';
166172
export { default as Steps, Step } from './steps';
167173

168174
export type { SwitchProps } from './switch';

components/input/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Group from './Group';
44
import Search from './Search';
55
import TextArea from './TextArea';
66
import Password from './Password';
7-
7+
export type { InputProps, TextAreaProps } from './inputProps';
88
Input.Group = Group;
99
Input.Search = Search;
1010
Input.TextArea = TextArea;

components/slider/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CSSProperties, VNodeTypes, PropType } from 'vue';
1+
import type { CSSProperties, VNodeTypes, PropType, ExtractPropTypes } from 'vue';
22
import { computed, ref, defineComponent } from 'vue';
33
import VcSlider from '../vc-slider/src/Slider';
44
import VcRange from '../vc-slider/src/Range';
@@ -70,6 +70,7 @@ export const sliderProps = () => ({
7070
trackStyle: { type: [Object, Array] as PropType<CSSProperties[] | CSSProperties> },
7171
});
7272

73+
export type SliderProps = Partial<ExtractPropTypes<ReturnType<typeof sliderProps>>>;
7374
export type Visibles = { [index: number]: boolean };
7475

7576
const Slider = defineComponent({

0 commit comments

Comments
 (0)