@@ -18,9 +18,9 @@ import { AdCustomProps } from './AdCustom'
1818import { AudioProps } from './Audio'
1919import { ButtonProps } from './Button'
2020import { CameraProps } from './Camera'
21- import { CanvasProps } from './Canvas'
2221import { ChannelLiveProps } from './ChannelLive'
2322import { ChannelVideoProps } from './ChannelVideo'
23+ import { CanvasProps } from './Canvas'
2424import { CheckboxProps } from './Checkbox'
2525import { CheckboxGroupProps } from './CheckboxGroup'
2626import { StandardProps } from './common'
@@ -30,20 +30,17 @@ import { CustomWrapperProps } from './CustomWrapper'
3030import { EditorProps } from './Editor'
3131import { FormProps } from './Form'
3232import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
33- import { GridViewProps } from './GridView'
3433import { IconProps } from './Icon'
3534import { ImageProps } from './Image'
3635import { InputProps } from './Input'
3736import { KeyboardAccessoryProps } from './KeyboardAccessory'
3837import { LabelProps } from './Label'
39- import { ListViewProps } from './ListView'
4038import { LivePlayerProps } from './LivePlayer'
4139import { LivePusherProps } from './LivePusher'
4240import { MapProps } from './Map'
4341import { MatchMediaProps } from './MatchMedia'
4442import { MovableAreaProps } from './MovableArea'
4543import { MovableViewProps } from './MovableView'
46- import { NativeSlotProps } from './NativeSlot'
4744import { NavigationBarProps } from './NavigationBar'
4845import { NavigatorProps } from './Navigator'
4946import { OfficialAccountProps } from './OfficialAccount'
@@ -55,18 +52,14 @@ import {
5552 PickerRegionProps , PickerSelectorProps , PickerTimeProps
5653} from './Picker'
5754import { PickerViewProps } from './PickerView'
58- import { PickerViewColumnProps } from './PickerViewColumn'
5955import { ProgressProps } from './Progress'
6056import { RadioProps } from './Radio'
6157import { RadioGroupProps } from './RadioGroup'
6258import { RichTextProps } from './RichText'
63- import { RootPortalProps } from './RootPortal'
6459import { ScrollViewProps } from './ScrollView'
6560import { ShareElementProps } from './ShareElement'
6661import { SliderProps } from './Slider'
6762import { SlotProps } from './Slot'
68- import { StickyHeaderProps } from './StickyHeader'
69- import { StickySectionProps } from './StickySection'
7063import { SwiperProps } from './Swiper'
7164import { SwiperItemProps } from './SwiperItem'
7265import { SwitchProps } from './Switch'
@@ -76,18 +69,16 @@ import { VideoProps } from './Video'
7669import { ViewProps } from './View'
7770import { VoipRoomProps } from './VoipRoom'
7871import { WebViewProps } from './WebView'
79-
80- /** 因为react的事件是CamelCase而vue得是Camelcase, 所以需要转换 */
81- type OnCamelCaseToOnCamelcase < T extends string > = T extends `on${infer Rest } `
82- ? `on${Capitalize < Lowercase < Rest > > } `
83- : T ;
84-
85- type TransformCamelCase < T extends Record < string , any > > = {
86- [ key in keyof T as OnCamelCaseToOnCamelcase < key > ] : T [ key ]
87- }
72+ import { RootPortalProps } from './RootPortal'
73+ import { PickerViewColumnProps } from './PickerViewColumn'
74+ import { NativeSlotProps } from './NativeSlot'
75+ import { GridViewProps } from './GridView'
76+ import { ListViewProps } from './ListView'
77+ import { StickyHeaderProps } from './StickyHeader'
78+ import { StickySectionProps } from './StickySection'
8879
8980/** 联合类型不能用omit(比如picker) */
90- type DistributiveOmit < T , K extends keyof T > = T extends unknown ? TransformCamelCase < Omit < T , K > > : never
81+ type DistributiveOmit < T , K extends keyof T > = T extends unknown ? Omit < T , K > : never
9182
9283interface SlimProps {
9384 class ?: any
0 commit comments