@tarojs/components 3.6.0-canary.4 → 3.6.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +20 -0
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +2 -0
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-components.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/react/component-lib/input.js +2 -2
- package/dist/react/component-lib/reactify-wc.js +13 -13
- package/dist/react/helper.js +1 -1
- package/dist/react/react-component-lib/createComponent.js +10 -10
- package/dist/react/react-component-lib/createOverlayComponent.js +18 -16
- package/dist/react/react-component-lib/utils/attachProps.js +1 -1
- package/dist/react/react-component-lib/utils/index.js +7 -6
- package/dist/taro-components/{p-1cd1c507.system.entry.js → p-6831f7b1.system.entry.js} +2 -2
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +1 -1
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -1
- package/dist/taro-components/{p-a2aab820.entry.js → p-d388c097.entry.js} +2 -2
- package/dist/taro-components/p-d388c097.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -1
- package/dist/types/components/swiper/swiper.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/vue2/component-lib/createComponent.js +1 -1
- package/dist/vue2/component-lib/createFormsComponent.js +2 -2
- package/dist/vue2/component-lib/index.js +1 -1
- package/dist/vue2/component-lib/mixins/listeners.js +1 -1
- package/dist/vue2/component-lib/mixins/refs.js +1 -1
- package/dist/vue2/component-lib/picker.js +1 -1
- package/dist/vue2/component-lib/scroll-view.js +1 -1
- package/dist/vue2/components.js +3 -2
- package/dist/vue2/index.js +2 -2
- package/dist/vue2/vue-component-lib/utils.js +2 -2
- package/dist/vue3/component-lib/createComponent.js +1 -1
- package/dist/vue3/component-lib/createFormsComponent.js +3 -3
- package/dist/vue3/components.js +1 -1
- package/dist/vue3/index.js +1 -1
- package/dist/vue3/vue-component-lib/utils.js +3 -3
- package/package.json +4 -4
- package/types/Ad.d.ts +1 -1
- package/types/Audio.d.ts +1 -1
- package/types/Button.d.ts +1 -1
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +102 -4
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Form.d.ts +1 -1
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +1 -1
- package/types/Input.d.ts +71 -8
- package/types/LivePlayer.d.ts +1 -1
- package/types/LivePusher.d.ts +1 -1
- package/types/Lottie.d.ts +0 -6
- package/types/Map.d.ts +1 -1
- package/types/MatchMedia.d.ts +1 -1
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +17 -17
- package/types/Navigator.d.ts +1 -1
- package/types/OpenData.d.ts +1 -1
- package/types/PageContainer.d.ts +28 -18
- package/types/PageMeta.d.ts +1 -1
- package/types/Picker.d.ts +1 -1
- package/types/PickerView.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +1 -1
- package/types/RootPortal.d.ts +11 -2
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +20 -10
- package/types/Slider.d.ts +1 -1
- package/types/Swiper.d.ts +13 -1
- package/types/SwiperItem.d.ts +3 -2
- package/types/Switch.d.ts +1 -1
- package/types/Text.d.ts +1 -1
- package/types/Textarea.d.ts +7 -1
- package/types/Video.d.ts +7 -1
- package/types/View.d.ts +1 -1
- package/types/WebView.d.ts +1 -1
- package/types/index.vue3.d.ts +268 -259
- package/dist/taro-components/p-1cd1c507.system.entry.js.map +0 -1
- package/dist/taro-components/p-a2aab820.entry.js.map +0 -1
package/types/index.vue3.d.ts
CHANGED
|
@@ -10,272 +10,281 @@
|
|
|
10
10
|
* }
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import * as CSS from 'csstype'
|
|
14
|
+
import { DefineComponent, VNodeRef } from 'vue'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
16
|
+
/** 开放能力 */
|
|
17
|
+
import { AdProps } from './Ad'
|
|
18
|
+
import { AdCustomProps } from './AdCustom'
|
|
19
|
+
/** 媒体组件 */
|
|
20
|
+
import { AudioProps } from './Audio'
|
|
21
|
+
/** 表单组件 */
|
|
22
|
+
import { ButtonProps } from './Button'
|
|
23
|
+
import { CameraProps } from './Camera'
|
|
24
|
+
/** 画布 */
|
|
25
|
+
import { CanvasProps } from './Canvas'
|
|
26
|
+
import { CheckboxProps } from './Checkbox'
|
|
27
|
+
import { CheckboxGroupProps } from './CheckboxGroup'
|
|
28
|
+
import { StandardProps } from './common'
|
|
29
|
+
/** 视图容器 */
|
|
30
|
+
import { CoverImageProps } from './CoverImage'
|
|
31
|
+
import { CoverViewProps } from './CoverView'
|
|
32
|
+
import { CustomWrapperProps } from './CustomWrapper'
|
|
33
|
+
import { EditorProps } from './Editor'
|
|
34
|
+
import { FormProps } from './Form'
|
|
35
|
+
/** 导航 */
|
|
36
|
+
import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
37
|
+
/** 基础内容 */
|
|
38
|
+
import { IconProps } from './Icon'
|
|
39
|
+
import { ImageProps } from './Image'
|
|
40
|
+
import { InputProps } from './Input'
|
|
41
|
+
import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
42
|
+
import { LabelProps } from './Label'
|
|
43
|
+
import { LivePlayerProps } from './LivePlayer'
|
|
44
|
+
import { LivePusherProps } from './LivePusher'
|
|
45
|
+
/** 地图 */
|
|
46
|
+
import { MapProps } from './Map'
|
|
47
|
+
import { MatchMediaProps } from './MatchMedia'
|
|
48
|
+
import { MovableAreaProps } from './MovableArea'
|
|
49
|
+
import { MovableViewProps } from './MovableView'
|
|
50
|
+
import { NavigationBarProps } from './NavigationBar'
|
|
51
|
+
import { NavigatorProps } from './Navigator'
|
|
52
|
+
import { OfficialAccountProps } from './OfficialAccount'
|
|
53
|
+
import { OpenDataProps } from './OpenData'
|
|
54
|
+
import { PageContainerProps } from './PageContainer'
|
|
55
|
+
/** 配置节点 */
|
|
56
|
+
import { PageMetaProps } from './PageMeta'
|
|
57
|
+
import { PickerDateProps, PickerMultiSelectorProps,PickerRegionProps, PickerSelectorProps, PickerTimeProps } from './Picker'
|
|
58
|
+
import { PickerViewProps } from './PickerView'
|
|
59
|
+
import { ProgressProps } from './Progress'
|
|
60
|
+
import { RadioProps } from './Radio'
|
|
61
|
+
import { RadioGroupProps } from './RadioGroup'
|
|
62
|
+
import { RichTextProps } from './RichText'
|
|
63
|
+
import { ScrollViewProps } from './ScrollView'
|
|
64
|
+
import { ShareElementProps } from './ShareElement'
|
|
65
|
+
import { SliderProps } from './Slider'
|
|
66
|
+
import { SlotProps } from './Slot'
|
|
67
|
+
import { SwiperProps } from './Swiper'
|
|
68
|
+
import { SwiperItemProps } from './SwiperItem'
|
|
69
|
+
import { SwitchProps } from './Switch'
|
|
70
|
+
import { TextProps } from './Text'
|
|
71
|
+
import { TextareaProps } from './Textarea'
|
|
72
|
+
import { VideoProps } from './Video'
|
|
73
|
+
import { ViewProps } from './View'
|
|
74
|
+
import { VoipRoomProps } from './VoipRoom'
|
|
75
|
+
import { WebViewProps } from './WebView'
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
/** 联合类型不能用omit(比如picker) */
|
|
78
|
+
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never
|
|
77
79
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
interface SlimProps {
|
|
81
|
+
class?: any
|
|
82
|
+
style?: CSS.Properties<string | number>
|
|
83
|
+
innerHTML?: string
|
|
84
|
+
}
|
|
80
85
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
+
/** 转换 react 的类型到 vue */
|
|
87
|
+
type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
|
|
88
|
+
type TransformReact2VueType<P extends StandardProps = Record<string, never>> = DistributiveOmit<P, RemoveReactAttribute> & SlimProps
|
|
89
|
+
export type VueComponentType<P = Record<string, never>> = DefineComponent<TransformReact2VueType<P>>
|
|
86
90
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export type VueComponentType<P = Record<string, never>> = DefineComponent<TransformReact2VueType<P>>
|
|
91
|
+
export * from './common'
|
|
92
|
+
export * from './event'
|
|
93
|
+
export * from './props'
|
|
91
94
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
/** 视图容器 */
|
|
96
|
+
export declare const Block: VueComponentType<StandardProps>
|
|
97
|
+
export declare const CoverImage: VueComponentType<CoverImageProps>
|
|
98
|
+
export declare const CoverView: VueComponentType<CoverViewProps>
|
|
99
|
+
export declare const MatchMedia: VueComponentType<MatchMediaProps>
|
|
100
|
+
export declare const MovableArea: VueComponentType<MovableAreaProps>
|
|
101
|
+
export declare const MovableView: VueComponentType<MovableViewProps>
|
|
102
|
+
export declare const PageContainer: VueComponentType<PageContainerProps>
|
|
103
|
+
export declare const RootPortal: VueComponentType
|
|
104
|
+
export declare const ScrollView: VueComponentType<ScrollViewProps>
|
|
105
|
+
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
106
|
+
export declare const Swiper: VueComponentType<SwiperProps>
|
|
107
|
+
export declare const SwiperItem: VueComponentType<SwiperItemProps>
|
|
108
|
+
export declare const View: VueComponentType<ViewProps>
|
|
109
|
+
/** 基础内容 */
|
|
110
|
+
export declare const Icon: VueComponentType<IconProps>
|
|
111
|
+
export declare const Progress: VueComponentType<ProgressProps>
|
|
112
|
+
export declare const RichText: VueComponentType<RichTextProps>
|
|
113
|
+
export declare const Text: VueComponentType<TextProps>
|
|
114
|
+
/** 表单组件 */
|
|
115
|
+
export declare const Button: VueComponentType<ButtonProps>
|
|
116
|
+
export declare const Checkbox: VueComponentType<CheckboxProps>
|
|
117
|
+
export declare const CheckboxGroup: VueComponentType<CheckboxGroupProps>
|
|
118
|
+
export declare const Editor: VueComponentType<EditorProps>
|
|
119
|
+
export declare const Form: VueComponentType<FormProps>
|
|
120
|
+
export declare const Input: VueComponentType<InputProps>
|
|
121
|
+
export declare const KeyboardAccessory: VueComponentType<KeyboardAccessoryProps>
|
|
122
|
+
export declare const Label: VueComponentType<LabelProps>
|
|
123
|
+
export declare const Picker: VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
124
|
+
export declare const PickerView: VueComponentType<PickerViewProps>
|
|
125
|
+
export declare const PickerViewColumn: VueComponentType
|
|
126
|
+
export declare const Radio: VueComponentType<RadioProps>
|
|
127
|
+
export declare const RadioGroup: VueComponentType<RadioGroupProps>
|
|
128
|
+
export declare const Slider: VueComponentType<SliderProps>
|
|
129
|
+
export declare const Switch: VueComponentType<SwitchProps>
|
|
130
|
+
export declare const Textarea: VueComponentType<TextareaProps>
|
|
131
|
+
/** 导航 */
|
|
132
|
+
export declare const FunctionalPageNavigator: VueComponentType<FunctionalPageNavigatorProps>
|
|
133
|
+
export declare const Navigator: VueComponentType<NavigatorProps>
|
|
134
|
+
export declare const NavigationBar: VueComponentType<NavigationBarProps>
|
|
135
|
+
/** 媒体组件 */
|
|
136
|
+
export declare const Audio: VueComponentType<AudioProps>
|
|
137
|
+
export declare const Camera: VueComponentType<CameraProps>
|
|
138
|
+
export declare const Image: VueComponentType<ImageProps>
|
|
139
|
+
export declare const LivePlayer: VueComponentType<LivePlayerProps>
|
|
140
|
+
export declare const LivePusher: VueComponentType<LivePusherProps>
|
|
141
|
+
export declare const Video: VueComponentType<VideoProps>
|
|
142
|
+
export declare const VoipRoom: VueComponentType<VoipRoomProps>
|
|
143
|
+
/** 地图 */
|
|
144
|
+
export declare const Map: VueComponentType<MapProps>
|
|
145
|
+
/** 画布 */
|
|
146
|
+
export declare const Canvas: VueComponentType<CanvasProps>
|
|
147
|
+
/** 开放能力 */
|
|
148
|
+
export declare const Ad: VueComponentType<AdProps>
|
|
149
|
+
export declare const AdCustom: VueComponentType<AdCustomProps>
|
|
150
|
+
export declare const OfficialAccount: VueComponentType<OfficialAccountProps>
|
|
151
|
+
export declare const OpenData: VueComponentType<OpenDataProps>
|
|
152
|
+
export declare const WebView: VueComponentType<WebViewProps>
|
|
153
|
+
/** 配置节点 */
|
|
154
|
+
export declare const PageMeta: VueComponentType<PageMetaProps>
|
|
95
155
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export declare const CoverImage: VueComponentType<CoverImageProps>
|
|
99
|
-
export declare const CoverView: VueComponentType<CoverViewProps>
|
|
100
|
-
export declare const MatchMedia: VueComponentType<MatchMediaProps>
|
|
101
|
-
export declare const MovableArea: VueComponentType<MovableAreaProps>
|
|
102
|
-
export declare const MovableView: VueComponentType<MovableViewProps>
|
|
103
|
-
export declare const PageContainer: VueComponentType<PageContainerProps>
|
|
104
|
-
export declare const RootPortal: VueComponentType
|
|
105
|
-
export declare const ScrollView: VueComponentType<ScrollViewProps>
|
|
106
|
-
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
107
|
-
export declare const Swiper: VueComponentType<SwiperProps>
|
|
108
|
-
export declare const SwiperItem: VueComponentType<SwiperItemProps>
|
|
109
|
-
export declare const View: VueComponentType<ViewProps>
|
|
110
|
-
/** 基础内容 */
|
|
111
|
-
export declare const Icon: VueComponentType<IconProps>
|
|
112
|
-
export declare const Progress: VueComponentType<ProgressProps>
|
|
113
|
-
export declare const RichText: VueComponentType<RichTextProps>
|
|
114
|
-
export declare const Text: VueComponentType<TextProps>
|
|
115
|
-
/** 表单组件 */
|
|
116
|
-
export declare const Button: VueComponentType<ButtonProps>
|
|
117
|
-
export declare const Checkbox: VueComponentType<CheckboxProps>
|
|
118
|
-
export declare const CheckboxGroup: VueComponentType<CheckboxGroupProps>
|
|
119
|
-
export declare const Editor: VueComponentType<EditorProps>
|
|
120
|
-
export declare const Form: VueComponentType<FormProps>
|
|
121
|
-
export declare const Input: VueComponentType<InputProps>
|
|
122
|
-
export declare const KeyboardAccessory: VueComponentType<KeyboardAccessoryProps>
|
|
123
|
-
export declare const Label: VueComponentType<LabelProps>
|
|
124
|
-
export declare const Picker: VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
125
|
-
export declare const PickerView: VueComponentType<PickerViewProps>
|
|
126
|
-
export declare const PickerViewColumn: VueComponentType
|
|
127
|
-
export declare const Radio: VueComponentType<RadioProps>
|
|
128
|
-
export declare const RadioGroup: VueComponentType<RadioGroupProps>
|
|
129
|
-
export declare const Slider: VueComponentType<SliderProps>
|
|
130
|
-
export declare const Switch: VueComponentType<SwitchProps>
|
|
131
|
-
export declare const Textarea: VueComponentType<TextareaProps>
|
|
132
|
-
/** 导航 */
|
|
133
|
-
export declare const FunctionalPageNavigator: VueComponentType<FunctionalPageNavigatorProps>
|
|
134
|
-
export declare const Navigator: VueComponentType<NavigatorProps>
|
|
135
|
-
export declare const NavigationBar: VueComponentType<NavigationBarProps>
|
|
136
|
-
/** 媒体组件 */
|
|
137
|
-
export declare const Audio: VueComponentType<AudioProps>
|
|
138
|
-
export declare const Camera: VueComponentType<CameraProps>
|
|
139
|
-
export declare const Image: VueComponentType<ImageProps>
|
|
140
|
-
export declare const LivePlayer: VueComponentType<LivePlayerProps>
|
|
141
|
-
export declare const LivePusher: VueComponentType<LivePusherProps>
|
|
142
|
-
export declare const Video: VueComponentType<VideoProps>
|
|
143
|
-
export declare const VoipRoom: VueComponentType<VoipRoomProps>
|
|
144
|
-
/** 地图 */
|
|
145
|
-
export declare const Map: VueComponentType<MapProps>
|
|
146
|
-
/** 画布 */
|
|
147
|
-
export declare const Canvas: VueComponentType<CanvasProps>
|
|
148
|
-
/** 开放能力 */
|
|
149
|
-
export declare const Ad: VueComponentType<AdProps>
|
|
150
|
-
export declare const AdCustom: VueComponentType<AdCustomProps>
|
|
151
|
-
export declare const OfficialAccount: VueComponentType<OfficialAccountProps>
|
|
152
|
-
export declare const OpenData: VueComponentType<OpenDataProps>
|
|
153
|
-
export declare const WebView: VueComponentType<WebViewProps>
|
|
154
|
-
/** 配置节点 */
|
|
155
|
-
export declare const PageMeta: VueComponentType<PageMetaProps>
|
|
156
|
+
export declare const CustomWrapper: VueComponentType<CustomWrapperProps>
|
|
157
|
+
export declare const Slot: VueComponentType<SlotProps>
|
|
156
158
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
type ReservedProps = {
|
|
160
|
+
key?: string | number | symbol
|
|
161
|
+
ref?: VNodeRef
|
|
162
|
+
ref_for?: boolean
|
|
163
|
+
ref_key?: string
|
|
164
|
+
}
|
|
159
165
|
|
|
160
|
-
|
|
161
|
-
namespace JSX {
|
|
162
|
-
interface IntrinsicElements {
|
|
163
|
-
/** 视图容器 */
|
|
164
|
-
block: TransformReact2VueType<StandardProps>
|
|
165
|
-
'taro-block-core': TransformReact2VueType<StandardProps>
|
|
166
|
-
'cover-image': TransformReact2VueType<CoverImageProps>
|
|
167
|
-
'taro-cover-image-core': TransformReact2VueType<CoverImageProps>
|
|
168
|
-
'cover-view': TransformReact2VueType<CoverViewProps>
|
|
169
|
-
'taro-cover-view-core': TransformReact2VueType<CoverViewProps>
|
|
170
|
-
'match-media': TransformReact2VueType<MatchMediaProps>
|
|
171
|
-
'taro-match-media-core': TransformReact2VueType<MatchMediaProps>
|
|
172
|
-
'movable-area': TransformReact2VueType<MovableAreaProps>
|
|
173
|
-
'taro-movable-area-core': TransformReact2VueType<MovableAreaProps>
|
|
174
|
-
'movable-view': TransformReact2VueType<MovableViewProps>
|
|
175
|
-
'taro-movable-view-core': TransformReact2VueType<MovableViewProps>
|
|
176
|
-
'page-container': TransformReact2VueType<PageContainerProps>
|
|
177
|
-
'taro-page-container-core': TransformReact2VueType<PageContainerProps>
|
|
178
|
-
'root-portal': TransformReact2VueType
|
|
179
|
-
'taro-root-portal-core': TransformReact2VueType
|
|
180
|
-
'scroll-view': TransformReact2VueType<ScrollViewProps>
|
|
181
|
-
'taro-scroll-view-core': TransformReact2VueType<ScrollViewProps>
|
|
182
|
-
'share-element': TransformReact2VueType<ShareElementProps>
|
|
183
|
-
'taro-share-element-core': TransformReact2VueType<ShareElementProps>
|
|
184
|
-
swiper: TransformReact2VueType<SwiperProps>
|
|
185
|
-
'taro-swiper-core': TransformReact2VueType<SwiperProps>
|
|
186
|
-
'swiper-item': TransformReact2VueType<SwiperItemProps>
|
|
187
|
-
'taro-swiper-item-core': TransformReact2VueType<SwiperItemProps>
|
|
188
|
-
view: TransformReact2VueType<ViewProps>
|
|
189
|
-
'taro-view-core': TransformReact2VueType<ViewProps>
|
|
190
|
-
/** 基础内容 */
|
|
191
|
-
icon: TransformReact2VueType<IconProps>
|
|
192
|
-
'taro-icon-core': TransformReact2VueType<IconProps>
|
|
193
|
-
progress: TransformReact2VueType<ProgressProps>
|
|
194
|
-
'taro-progress-core': TransformReact2VueType<ProgressProps>
|
|
195
|
-
'rich-text': TransformReact2VueType<RichTextProps>
|
|
196
|
-
'taro-rich-text-core': TransformReact2VueType<RichTextProps>
|
|
197
|
-
text: TransformReact2VueType<TextProps>
|
|
198
|
-
'taro-text-core': TransformReact2VueType<TextProps>
|
|
199
|
-
/** 表单组件 */
|
|
200
|
-
button: TransformReact2VueType<ButtonProps>
|
|
201
|
-
'taro-button-core': TransformReact2VueType<ButtonProps>
|
|
202
|
-
checkbox: TransformReact2VueType<CheckboxProps>
|
|
203
|
-
'taro-checkbox-core': TransformReact2VueType<CheckboxProps>
|
|
204
|
-
'checkbox-group': TransformReact2VueType<CheckboxGroupProps>
|
|
205
|
-
'taro-checkbox-group-core': TransformReact2VueType<CheckboxGroupProps>
|
|
206
|
-
editor: TransformReact2VueType<EditorProps>
|
|
207
|
-
'taro-editor-core': TransformReact2VueType<EditorProps>
|
|
208
|
-
form: TransformReact2VueType<FormProps>
|
|
209
|
-
'taro-form-core': TransformReact2VueType<FormProps>
|
|
210
|
-
input: TransformReact2VueType<InputProps>
|
|
211
|
-
'taro-input-core': TransformReact2VueType<InputProps>
|
|
212
|
-
'keyboard-accessory': TransformReact2VueType<KeyboardAccessoryProps>
|
|
213
|
-
'taro-keyboard-accessory-core': TransformReact2VueType<KeyboardAccessoryProps>
|
|
214
|
-
label: TransformReact2VueType<LabelProps>
|
|
215
|
-
'taro-label-core': TransformReact2VueType<LabelProps>
|
|
216
|
-
picker: TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
217
|
-
'taro-picker-core': TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
218
|
-
'picker-view': TransformReact2VueType<PickerViewProps>
|
|
219
|
-
'taro-picker-view-core': TransformReact2VueType<PickerViewProps>
|
|
220
|
-
'picker-view-column': TransformReact2VueType
|
|
221
|
-
'taro-picker-view-column-core': TransformReact2VueType
|
|
222
|
-
radio: TransformReact2VueType<RadioProps>
|
|
223
|
-
'taro-radio-core': TransformReact2VueType<RadioProps>
|
|
224
|
-
'radio-group': TransformReact2VueType<RadioGroupProps>
|
|
225
|
-
'taro-radio-group-core': TransformReact2VueType<RadioGroupProps>
|
|
226
|
-
slider: TransformReact2VueType<SliderProps>
|
|
227
|
-
'taro-slider-core': TransformReact2VueType<SliderProps>
|
|
228
|
-
switch: TransformReact2VueType<SwitchProps>
|
|
229
|
-
'taro-switch-core': TransformReact2VueType<SwitchProps>
|
|
230
|
-
textarea: TransformReact2VueType<TextareaProps>
|
|
231
|
-
'taro-textarea-core': TransformReact2VueType<TextareaProps>
|
|
232
|
-
/** 导航 */
|
|
233
|
-
'functional-page-navigator': TransformReact2VueType<FunctionalPageNavigatorProps>
|
|
234
|
-
'taro-functional-page-navigator-core': TransformReact2VueType<FunctionalPageNavigatorProps>
|
|
235
|
-
navigator: TransformReact2VueType<NavigatorProps>
|
|
236
|
-
'taro-navigator-core': TransformReact2VueType<NavigatorProps>
|
|
237
|
-
'navigation-bar': TransformReact2VueType<NavigationBarProps>
|
|
238
|
-
'taro-navigation-bar-core': TransformReact2VueType<NavigationBarProps>
|
|
239
|
-
/** 媒体组件 */
|
|
240
|
-
audio: TransformReact2VueType<AudioProps>
|
|
241
|
-
'taro-audio-core': TransformReact2VueType<AudioProps>
|
|
242
|
-
camera: TransformReact2VueType<CameraProps>
|
|
243
|
-
'taro-camera-core': TransformReact2VueType<CameraProps>
|
|
244
|
-
image: TransformReact2VueType<ImageProps>
|
|
245
|
-
'taro-image-core': TransformReact2VueType<ImageProps>
|
|
246
|
-
'live-player': TransformReact2VueType<LivePlayerProps>
|
|
247
|
-
'taro-live-player-core': TransformReact2VueType<LivePlayerProps>
|
|
248
|
-
'live-pusher': TransformReact2VueType<LivePusherProps>
|
|
249
|
-
'taro-live-pusher-core': TransformReact2VueType<LivePusherProps>
|
|
250
|
-
video: TransformReact2VueType<VideoProps>
|
|
251
|
-
'taro-video-core': TransformReact2VueType<VideoProps>
|
|
252
|
-
'voip-room': TransformReact2VueType<VoipRoomProps>
|
|
253
|
-
'taro-voip-room-core': TransformReact2VueType<VoipRoomProps>
|
|
254
|
-
/** 地图 */
|
|
255
|
-
map: TransformReact2VueType<MapProps>
|
|
256
|
-
'taro-map-core': TransformReact2VueType<MapProps>
|
|
257
|
-
/** 画布 */
|
|
258
|
-
canvas: TransformReact2VueType<CanvasProps>
|
|
259
|
-
'taro-canvas-core': TransformReact2VueType<CanvasProps>
|
|
260
|
-
/** 开放能力 */
|
|
261
|
-
ad: TransformReact2VueType<AdProps>
|
|
262
|
-
'taro-ad-core': TransformReact2VueType<AdProps>
|
|
263
|
-
'ad-custom': TransformReact2VueType<AdCustomProps>
|
|
264
|
-
'taro-ad-custom-core': TransformReact2VueType<AdCustomProps>
|
|
265
|
-
'official-account': TransformReact2VueType<OfficialAccountProps>
|
|
266
|
-
'taro-official-account-core': TransformReact2VueType<OfficialAccountProps>
|
|
267
|
-
'open-data': TransformReact2VueType<OpenDataProps>
|
|
268
|
-
'taro-open-data-core': TransformReact2VueType<OpenDataProps>
|
|
269
|
-
'web-view': TransformReact2VueType<WebViewProps>
|
|
270
|
-
'taro-web-view-core': TransformReact2VueType<WebViewProps>
|
|
271
|
-
/** 配置节点 */
|
|
272
|
-
'page-meta': TransformReact2VueType<PageMetaProps>
|
|
273
|
-
'taro-page-meta-core': TransformReact2VueType<PageMetaProps>
|
|
166
|
+
type ElementAttrs<T> = T & ReservedProps
|
|
274
167
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
168
|
+
declare global {
|
|
169
|
+
namespace JSX {
|
|
170
|
+
interface IntrinsicElements {
|
|
171
|
+
/** 视图容器 */
|
|
172
|
+
block: ElementAttrs<TransformReact2VueType<StandardProps>>
|
|
173
|
+
'taro-block-core': ElementAttrs<TransformReact2VueType<StandardProps>>
|
|
174
|
+
'cover-image': ElementAttrs<TransformReact2VueType<CoverImageProps>>
|
|
175
|
+
'taro-cover-image-core': ElementAttrs<TransformReact2VueType<CoverImageProps>>
|
|
176
|
+
'cover-view': ElementAttrs<TransformReact2VueType<CoverViewProps>>
|
|
177
|
+
'taro-cover-view-core': ElementAttrs<TransformReact2VueType<CoverViewProps>>
|
|
178
|
+
'match-media': ElementAttrs<TransformReact2VueType<MatchMediaProps>>
|
|
179
|
+
'taro-match-media-core': ElementAttrs<TransformReact2VueType<MatchMediaProps>>
|
|
180
|
+
'movable-area': ElementAttrs<TransformReact2VueType<MovableAreaProps>>
|
|
181
|
+
'taro-movable-area-core': ElementAttrs<TransformReact2VueType<MovableAreaProps>>
|
|
182
|
+
'movable-view': ElementAttrs<TransformReact2VueType<MovableViewProps>>
|
|
183
|
+
'taro-movable-view-core': ElementAttrs<TransformReact2VueType<MovableViewProps>>
|
|
184
|
+
'page-container': ElementAttrs<TransformReact2VueType<PageContainerProps>>
|
|
185
|
+
'taro-page-container-core': ElementAttrs<TransformReact2VueType<PageContainerProps>>
|
|
186
|
+
'root-portal': ElementAttrs<TransformReact2VueType>
|
|
187
|
+
'taro-root-portal-core': ElementAttrs<TransformReact2VueType>
|
|
188
|
+
'scroll-view': ElementAttrs<TransformReact2VueType<ScrollViewProps>>
|
|
189
|
+
'taro-scroll-view-core': ElementAttrs<TransformReact2VueType<ScrollViewProps>>
|
|
190
|
+
'share-element': ElementAttrs<TransformReact2VueType<ShareElementProps>>
|
|
191
|
+
'taro-share-element-core': ElementAttrs<TransformReact2VueType<ShareElementProps>>
|
|
192
|
+
swiper: ElementAttrs<TransformReact2VueType<SwiperProps>>
|
|
193
|
+
'taro-swiper-core': ElementAttrs<TransformReact2VueType<SwiperProps>>
|
|
194
|
+
'swiper-item': ElementAttrs<TransformReact2VueType<SwiperItemProps>>
|
|
195
|
+
'taro-swiper-item-core': ElementAttrs<TransformReact2VueType<SwiperItemProps>>
|
|
196
|
+
view: ElementAttrs<TransformReact2VueType<ViewProps>>
|
|
197
|
+
'taro-view-core': ElementAttrs<TransformReact2VueType<ViewProps>>
|
|
198
|
+
/** 基础内容 */
|
|
199
|
+
icon: ElementAttrs<TransformReact2VueType<IconProps>>
|
|
200
|
+
'taro-icon-core': ElementAttrs<TransformReact2VueType<IconProps>>
|
|
201
|
+
progress: ElementAttrs<TransformReact2VueType<ProgressProps>>
|
|
202
|
+
'taro-progress-core': ElementAttrs<TransformReact2VueType<ProgressProps>>
|
|
203
|
+
'rich-text': ElementAttrs<TransformReact2VueType<RichTextProps>>
|
|
204
|
+
'taro-rich-text-core': ElementAttrs<TransformReact2VueType<RichTextProps>>
|
|
205
|
+
text: ElementAttrs<TransformReact2VueType<TextProps>>
|
|
206
|
+
'taro-text-core': ElementAttrs<TransformReact2VueType<TextProps>>
|
|
207
|
+
/** 表单组件 */
|
|
208
|
+
button: ElementAttrs<TransformReact2VueType<ButtonProps>>
|
|
209
|
+
'taro-button-core': ElementAttrs<TransformReact2VueType<ButtonProps>>
|
|
210
|
+
checkbox: ElementAttrs<TransformReact2VueType<CheckboxProps>>
|
|
211
|
+
'taro-checkbox-core': ElementAttrs<TransformReact2VueType<CheckboxProps>>
|
|
212
|
+
'checkbox-group': ElementAttrs<TransformReact2VueType<CheckboxGroupProps>>
|
|
213
|
+
'taro-checkbox-group-core': ElementAttrs<TransformReact2VueType<CheckboxGroupProps>>
|
|
214
|
+
editor: ElementAttrs<TransformReact2VueType<EditorProps>>
|
|
215
|
+
'taro-editor-core': ElementAttrs<TransformReact2VueType<EditorProps>>
|
|
216
|
+
form: ElementAttrs<TransformReact2VueType<FormProps>>
|
|
217
|
+
'taro-form-core': ElementAttrs<TransformReact2VueType<FormProps>>
|
|
218
|
+
input: ElementAttrs<TransformReact2VueType<InputProps>>
|
|
219
|
+
'taro-input-core': ElementAttrs<TransformReact2VueType<InputProps>>
|
|
220
|
+
'keyboard-accessory': ElementAttrs<TransformReact2VueType<KeyboardAccessoryProps>>
|
|
221
|
+
'taro-keyboard-accessory-core': ElementAttrs<TransformReact2VueType<KeyboardAccessoryProps>>
|
|
222
|
+
label: ElementAttrs<TransformReact2VueType<LabelProps>>
|
|
223
|
+
'taro-label-core': ElementAttrs<TransformReact2VueType<LabelProps>>
|
|
224
|
+
picker: ElementAttrs<TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>>
|
|
225
|
+
'taro-picker-core': ElementAttrs<TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>>
|
|
226
|
+
'picker-view': ElementAttrs<TransformReact2VueType<PickerViewProps>>
|
|
227
|
+
'taro-picker-view-core': ElementAttrs<TransformReact2VueType<PickerViewProps>>
|
|
228
|
+
'picker-view-column': ElementAttrs<TransformReact2VueType>
|
|
229
|
+
'taro-picker-view-column-core': ElementAttrs<TransformReact2VueType>
|
|
230
|
+
radio: ElementAttrs<TransformReact2VueType<RadioProps>>
|
|
231
|
+
'taro-radio-core': ElementAttrs<TransformReact2VueType<RadioProps>>
|
|
232
|
+
'radio-group': ElementAttrs<TransformReact2VueType<RadioGroupProps>>
|
|
233
|
+
'taro-radio-group-core': ElementAttrs<TransformReact2VueType<RadioGroupProps>>
|
|
234
|
+
slider: ElementAttrs<TransformReact2VueType<SliderProps>>
|
|
235
|
+
'taro-slider-core': ElementAttrs<TransformReact2VueType<SliderProps>>
|
|
236
|
+
switch: ElementAttrs<TransformReact2VueType<SwitchProps>>
|
|
237
|
+
'taro-switch-core': ElementAttrs<TransformReact2VueType<SwitchProps>>
|
|
238
|
+
textarea: ElementAttrs<TransformReact2VueType<TextareaProps>>
|
|
239
|
+
'taro-textarea-core': ElementAttrs<TransformReact2VueType<TextareaProps>>
|
|
240
|
+
/** 导航 */
|
|
241
|
+
'functional-page-navigator': ElementAttrs<TransformReact2VueType<FunctionalPageNavigatorProps>>
|
|
242
|
+
'taro-functional-page-navigator-core': ElementAttrs<TransformReact2VueType<FunctionalPageNavigatorProps>>
|
|
243
|
+
navigator: ElementAttrs<TransformReact2VueType<NavigatorProps>>
|
|
244
|
+
'taro-navigator-core': ElementAttrs<TransformReact2VueType<NavigatorProps>>
|
|
245
|
+
'navigation-bar': ElementAttrs<TransformReact2VueType<NavigationBarProps>>
|
|
246
|
+
'taro-navigation-bar-core': ElementAttrs<TransformReact2VueType<NavigationBarProps>>
|
|
247
|
+
/** 媒体组件 */
|
|
248
|
+
audio: ElementAttrs<TransformReact2VueType<AudioProps>>
|
|
249
|
+
'taro-audio-core': ElementAttrs<TransformReact2VueType<AudioProps>>
|
|
250
|
+
camera: ElementAttrs<TransformReact2VueType<CameraProps>>
|
|
251
|
+
'taro-camera-core': ElementAttrs<TransformReact2VueType<CameraProps>>
|
|
252
|
+
image: ElementAttrs<TransformReact2VueType<ImageProps>>
|
|
253
|
+
'taro-image-core': ElementAttrs<TransformReact2VueType<ImageProps>>
|
|
254
|
+
'live-player': ElementAttrs<TransformReact2VueType<LivePlayerProps>>
|
|
255
|
+
'taro-live-player-core': ElementAttrs<TransformReact2VueType<LivePlayerProps>>
|
|
256
|
+
'live-pusher': ElementAttrs<TransformReact2VueType<LivePusherProps>>
|
|
257
|
+
'taro-live-pusher-core': ElementAttrs<TransformReact2VueType<LivePusherProps>>
|
|
258
|
+
video: ElementAttrs<TransformReact2VueType<VideoProps>>
|
|
259
|
+
'taro-video-core': ElementAttrs<TransformReact2VueType<VideoProps>>
|
|
260
|
+
'voip-room': ElementAttrs<TransformReact2VueType<VoipRoomProps>>
|
|
261
|
+
'taro-voip-room-core': ElementAttrs<TransformReact2VueType<VoipRoomProps>>
|
|
262
|
+
/** 地图 */
|
|
263
|
+
map: ElementAttrs<TransformReact2VueType<MapProps>>
|
|
264
|
+
'taro-map-core': ElementAttrs<TransformReact2VueType<MapProps>>
|
|
265
|
+
/** 画布 */
|
|
266
|
+
canvas: ElementAttrs<TransformReact2VueType<CanvasProps>>
|
|
267
|
+
'taro-canvas-core': ElementAttrs<TransformReact2VueType<CanvasProps>>
|
|
268
|
+
/** 开放能力 */
|
|
269
|
+
ad: ElementAttrs<TransformReact2VueType<AdProps>>
|
|
270
|
+
'taro-ad-core': ElementAttrs<TransformReact2VueType<AdProps>>
|
|
271
|
+
'ad-custom': ElementAttrs<TransformReact2VueType<AdCustomProps>>
|
|
272
|
+
'taro-ad-custom-core': ElementAttrs<TransformReact2VueType<AdCustomProps>>
|
|
273
|
+
'official-account': ElementAttrs<TransformReact2VueType<OfficialAccountProps>>
|
|
274
|
+
'taro-official-account-core': ElementAttrs<TransformReact2VueType<OfficialAccountProps>>
|
|
275
|
+
'open-data': ElementAttrs<TransformReact2VueType<OpenDataProps>>
|
|
276
|
+
'taro-open-data-core': ElementAttrs<TransformReact2VueType<OpenDataProps>>
|
|
277
|
+
'web-view': ElementAttrs<TransformReact2VueType<WebViewProps>>
|
|
278
|
+
'taro-web-view-core': ElementAttrs<TransformReact2VueType<WebViewProps>>
|
|
279
|
+
/** 配置节点 */
|
|
280
|
+
'page-meta': ElementAttrs<TransformReact2VueType<PageMetaProps>>
|
|
281
|
+
'taro-page-meta-core': ElementAttrs<TransformReact2VueType<PageMetaProps>>
|
|
282
|
+
|
|
283
|
+
'custom-wrapper': ElementAttrs<TransformReact2VueType<CustomWrapperProps>>
|
|
284
|
+
'taro-custom-wrapper-core': ElementAttrs<TransformReact2VueType<CustomWrapperProps>>
|
|
285
|
+
/** 为了不与vue3模板默认的slot冲突,增加 Record<string, any> */
|
|
286
|
+
'slot': ElementAttrs<TransformReact2VueType<SlotProps>> & Record<string, any>
|
|
287
|
+
'taro-slot-core': ElementAttrs<TransformReact2VueType<SlotProps>>
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|