1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | import { TaroElement } from '@tarojs/runtime'
|
12 | import { StandardProps } from './common'
|
13 | import * as CSS from 'csstype'
|
14 |
|
15 | import { CoverImageProps } from './CoverImage'
|
16 | import { CoverViewProps } from './CoverView'
|
17 | import { MatchMediaProps } from './MatchMedia'
|
18 | import { MovableAreaProps } from './MovableArea'
|
19 | import { MovableViewProps } from './MovableView'
|
20 | import { PageContainerProps } from './PageContainer'
|
21 | import { ScrollViewProps } from './ScrollView'
|
22 | import { ShareElementProps } from './ShareElement'
|
23 | import { SwiperProps } from './Swiper'
|
24 | import { SwiperItemProps } from './SwiperItem'
|
25 | import { ViewProps } from './View'
|
26 |
|
27 | import { IconProps } from './Icon'
|
28 | import { ProgressProps } from './Progress'
|
29 | import { RichTextProps } from './RichText'
|
30 | import { TextProps } from './Text'
|
31 |
|
32 | import { ButtonProps } from './Button'
|
33 | import { CheckboxProps } from './Checkbox'
|
34 | import { CheckboxGroupProps } from './CheckboxGroup'
|
35 | import { EditorProps } from './Editor'
|
36 | import { FormProps } from './Form'
|
37 | import { InputProps } from './Input'
|
38 | import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
39 | import { LabelProps } from './Label'
|
40 | import { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker'
|
41 | import { PickerViewProps } from './PickerView'
|
42 | import { RadioProps } from './Radio'
|
43 | import { RadioGroupProps } from './RadioGroup'
|
44 | import { SliderProps } from './Slider'
|
45 | import { SwitchProps } from './Switch'
|
46 | import { TextareaProps } from './Textarea'
|
47 |
|
48 | import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
49 | import { NavigatorProps } from './Navigator'
|
50 | import { NavigationBarProps } from './NavigationBar'
|
51 |
|
52 | import { AudioProps } from './Audio'
|
53 | import { CameraProps } from './Camera'
|
54 | import { ImageProps } from './Image'
|
55 | import { LivePlayerProps } from './LivePlayer'
|
56 | import { LivePusherProps } from './LivePusher'
|
57 | import { VideoProps } from './Video'
|
58 | import { VoipRoomProps } from './VoipRoom'
|
59 |
|
60 | import { MapProps } from './Map'
|
61 |
|
62 | import { CanvasProps } from './Canvas'
|
63 |
|
64 | import { AdProps } from './Ad'
|
65 | import { AdCustomProps } from './AdCustom'
|
66 | import { OfficialAccountProps } from './OfficialAccount'
|
67 | import { OpenDataProps } from './OpenData'
|
68 | import { WebViewProps } from './WebView'
|
69 |
|
70 | import { PageMetaProps } from './PageMeta'
|
71 |
|
72 | import { CustomWrapperProps } from './CustomWrapper'
|
73 | import { SlotProps } from './Slot'
|
74 |
|
75 |
|
76 | type DistributiveOmit<T, K extends keyof T> = T extends unknown
|
77 | ? Omit<T, K>
|
78 | : never;
|
79 |
|
80 | type SlimProps = {
|
81 | class?: any
|
82 | style?: CSS.Properties<string | number>
|
83 | innerHTML?: string
|
84 | }
|
85 |
|
86 |
|
87 | type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
|
88 | export type TransformReact2VueType<P extends StandardProps = Record<string, never>> = DistributiveOmit<P, RemoveReactAttribute> & SlimProps
|
89 |
|
90 | export declare class VueComponentType<P = Record<string, never>> extends TaroElement {
|
91 | $props: TransformReact2VueType<P>
|
92 |
|
93 | props: this['$props']
|
94 | }
|
95 |
|
96 |
|
97 | export declare class Block extends VueComponentType {}
|
98 | export declare class CoverImage extends VueComponentType<CoverImageProps> {}
|
99 | export declare class CoverView extends VueComponentType<CoverViewProps> {}
|
100 | export declare class MatchMedia extends VueComponentType<MatchMediaProps> {}
|
101 | export declare class MovableArea extends VueComponentType<MovableAreaProps> {}
|
102 | export declare class MovableView extends VueComponentType<MovableViewProps> {}
|
103 | export declare class PageContainer extends VueComponentType<PageContainerProps> {}
|
104 | export declare class ScrollView extends VueComponentType<ScrollViewProps> {}
|
105 | export declare class ShareElement extends VueComponentType<ShareElementProps> {}
|
106 | export declare class Swiper extends VueComponentType<SwiperProps> {}
|
107 | export declare class SwiperItem extends VueComponentType<SwiperItemProps> {}
|
108 | export declare class View extends VueComponentType<ViewProps> {}
|
109 |
|
110 | export declare class Icon extends VueComponentType<IconProps> {}
|
111 | export declare class Progress extends VueComponentType<ProgressProps> {}
|
112 | export declare class RichText extends VueComponentType<RichTextProps> {}
|
113 | export declare class Text extends VueComponentType<TextProps> {}
|
114 |
|
115 | export declare class Button extends VueComponentType<ButtonProps> {}
|
116 | export declare class Checkbox extends VueComponentType<CheckboxProps> {}
|
117 | export declare class CheckboxGroup extends VueComponentType<CheckboxGroupProps> {}
|
118 | export declare class Editor extends VueComponentType<EditorProps> {}
|
119 | export declare class Form extends VueComponentType<FormProps> {}
|
120 | export declare class Input extends VueComponentType<InputProps> {}
|
121 | export declare class KeyboardAccessory extends VueComponentType<KeyboardAccessoryProps> {}
|
122 | export declare class Label extends VueComponentType<LabelProps> {}
|
123 | export declare class Picker extends VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps> {}
|
124 | export declare class PickerView extends VueComponentType<PickerViewProps> {}
|
125 | export declare class PickerViewColumn extends VueComponentType {}
|
126 | export declare class Radio extends VueComponentType<RadioProps> {}
|
127 | export declare class RadioGroup extends VueComponentType<RadioGroupProps> {}
|
128 | export declare class Slider extends VueComponentType<SliderProps> {}
|
129 | export declare class Switch extends VueComponentType<SwitchProps> {}
|
130 | export declare class Textarea extends VueComponentType<TextareaProps> {}
|
131 |
|
132 | export declare class FunctionalPageNavigator extends VueComponentType<FunctionalPageNavigatorProps> {}
|
133 | export declare class Navigator extends VueComponentType<NavigatorProps> {}
|
134 | export declare class NavigationBar extends VueComponentType<NavigationBarProps> {}
|
135 |
|
136 | export declare class Audio extends VueComponentType<AudioProps> {}
|
137 | export declare class Camera extends VueComponentType<CameraProps> {}
|
138 | export declare class Image extends VueComponentType<ImageProps> {}
|
139 | export declare class LivePlayer extends VueComponentType<LivePlayerProps> {}
|
140 | export declare class LivePusher extends VueComponentType<LivePusherProps> {}
|
141 | export declare class Video extends VueComponentType<VideoProps> {}
|
142 | export declare class VoipRoom extends VueComponentType<VoipRoomProps> {}
|
143 |
|
144 | export declare class Map extends VueComponentType<MapProps> {}
|
145 |
|
146 | export declare class Canvas extends VueComponentType<CanvasProps> {}
|
147 |
|
148 | export declare class Ad extends VueComponentType<AdProps> {}
|
149 | export declare class AdCustom extends VueComponentType<AdCustomProps> {}
|
150 | export declare class OfficialAccount extends VueComponentType<OfficialAccountProps> {}
|
151 | export declare class OpenData extends VueComponentType<OpenDataProps> {}
|
152 | export declare class WebView extends VueComponentType<WebViewProps> {}
|
153 |
|
154 | export declare class PageMeta extends VueComponentType<PageMetaProps> {}
|
155 |
|
156 | export declare class CustomWrapper extends VueComponentType<CustomWrapperProps> {}
|
157 | export declare class Slot extends VueComponentType<SlotProps> {}
|
158 |
|
159 | export * from './index'
|