/** * vue tsx @tarojs/components 类型提示文件 * 如何使用? * 请在醒目全局的类型文件中写入以下代码,覆盖默认的组件类型提示 * ```typescript * export declare module '@tarojs/components' { * export * from '@tarojs/components/types/index.vue3' * } * ``` */ import { TaroElement } from '@tarojs/runtime' import { StandardProps } from './common' import * as CSS from 'csstype' /** 视图容器 */ import { CoverImageProps } from './CoverImage' import { CoverViewProps } from './CoverView' import { MatchMediaProps } from './MatchMedia' import { MovableAreaProps } from './MovableArea' import { MovableViewProps } from './MovableView' import { PageContainerProps } from './PageContainer' import { ScrollViewProps } from './ScrollView' import { ShareElementProps } from './ShareElement' import { SwiperProps } from './Swiper' import { SwiperItemProps } from './SwiperItem' import { ViewProps } from './View' /** 基础内容 */ import { IconProps } from './Icon' import { ProgressProps } from './Progress' import { RichTextProps } from './RichText' import { TextProps } from './Text' /** 表单组件 */ import { ButtonProps } from './Button' import { CheckboxProps } from './Checkbox' import { CheckboxGroupProps } from './CheckboxGroup' import { EditorProps } from './Editor' import { FormProps } from './Form' import { InputProps } from './Input' import { KeyboardAccessoryProps } from './KeyboardAccessory' import { LabelProps } from './Label' import { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker' import { PickerViewProps } from './PickerView' import { RadioProps } from './Radio' import { RadioGroupProps } from './RadioGroup' import { SliderProps } from './Slider' import { SwitchProps } from './Switch' import { TextareaProps } from './Textarea' /** 导航 */ import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator' import { NavigatorProps } from './Navigator' import { NavigationBarProps } from './NavigationBar' /** 媒体组件 */ import { AudioProps } from './Audio' import { CameraProps } from './Camera' import { ImageProps } from './Image' import { LivePlayerProps } from './LivePlayer' import { LivePusherProps } from './LivePusher' import { VideoProps } from './Video' import { VoipRoomProps } from './VoipRoom' /** 地图 */ import { MapProps } from './Map' /** 画布 */ import { CanvasProps } from './Canvas' /** 开放能力 */ import { AdProps } from './Ad' import { AdCustomProps } from './AdCustom' import { OfficialAccountProps } from './OfficialAccount' import { OpenDataProps } from './OpenData' import { WebViewProps } from './WebView' /** 配置节点 */ import { PageMetaProps } from './PageMeta' import { CustomWrapperProps } from './CustomWrapper' import { SlotProps } from './Slot' // 联合类型不能用omit(比如picker) type DistributiveOmit = T extends unknown ? Omit : never; type SlimProps = { class?: any style?: CSS.Properties innerHTML?: string } /** 转换react的类型到vue */ type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML' export type TransformReact2VueType

> = DistributiveOmit & SlimProps export declare class VueComponentType

> extends TaroElement { $props: TransformReact2VueType

/** WebStorm 提示貌似找的是props */ props: this['$props'] } /** 视图容器 */ export declare class Block extends VueComponentType {} export declare class CoverImage extends VueComponentType {} export declare class CoverView extends VueComponentType {} export declare class MatchMedia extends VueComponentType {} export declare class MovableArea extends VueComponentType {} export declare class MovableView extends VueComponentType {} export declare class PageContainer extends VueComponentType {} export declare class ScrollView extends VueComponentType {} export declare class ShareElement extends VueComponentType {} export declare class Swiper extends VueComponentType {} export declare class SwiperItem extends VueComponentType {} export declare class View extends VueComponentType {} /** 基础内容 */ export declare class Icon extends VueComponentType {} export declare class Progress extends VueComponentType {} export declare class RichText extends VueComponentType {} export declare class Text extends VueComponentType {} /** 表单组件 */ export declare class Button extends VueComponentType {} export declare class Checkbox extends VueComponentType {} export declare class CheckboxGroup extends VueComponentType {} export declare class Editor extends VueComponentType {} export declare class Form extends VueComponentType {} export declare class Input extends VueComponentType {} export declare class KeyboardAccessory extends VueComponentType {} export declare class Label extends VueComponentType {} export declare class Picker extends VueComponentType {} export declare class PickerView extends VueComponentType {} export declare class PickerViewColumn extends VueComponentType {} export declare class Radio extends VueComponentType {} export declare class RadioGroup extends VueComponentType {} export declare class Slider extends VueComponentType {} export declare class Switch extends VueComponentType {} export declare class Textarea extends VueComponentType {} /** 导航 */ export declare class FunctionalPageNavigator extends VueComponentType {} export declare class Navigator extends VueComponentType {} export declare class NavigationBar extends VueComponentType {} /** 媒体组件 */ export declare class Audio extends VueComponentType {} export declare class Camera extends VueComponentType {} export declare class Image extends VueComponentType {} export declare class LivePlayer extends VueComponentType {} export declare class LivePusher extends VueComponentType {} export declare class Video extends VueComponentType {} export declare class VoipRoom extends VueComponentType {} /** 地图 */ export declare class Map extends VueComponentType {} /** 画布 */ export declare class Canvas extends VueComponentType {} /** 开放能力 */ export declare class Ad extends VueComponentType {} export declare class AdCustom extends VueComponentType {} export declare class OfficialAccount extends VueComponentType {} export declare class OpenData extends VueComponentType {} export declare class WebView extends VueComponentType {} /** 配置节点 */ export declare class PageMeta extends VueComponentType {} export declare class CustomWrapper extends VueComponentType {} export declare class Slot extends VueComponentType {} export * from './index'