/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { Type } from "./components/icon/icon"; import { Mode } from "./components/image/image"; import { Fields, Mode as Mode1 } from "./components/picker/picker"; import { Nodes } from "./components/rich-text/rich-text"; import { Conf } from "./components/tabbar/tabbar"; import { Danmu } from "./components/video/video-danmu"; export namespace Components { interface TaroAdCore { } interface TaroAdCustomCore { } interface TaroAudioCore { "autoplay": boolean; "controls": boolean; "loop": boolean; "muted": boolean; "nativeProps": {}; "src": string; } interface TaroBlockCore { } interface TaroButtonCore { "disabled": boolean; "formType": 'submit' | 'reset' | null; "hoverClass": string; "hoverStartTime": number; "hoverStayTime": number; "loading": boolean; "plain": boolean; "size": string; "type": string; } interface TaroCameraCore { } interface TaroCanvasCore { "canvasId": string; "nativeProps": {}; } interface TaroCheckboxCore { "checked": boolean; "color": string; "disabled": boolean; "id": string; "name": string; "nativeProps": {}; "value": string; } interface TaroCheckboxGroupCore { "name": any; } interface TaroCoverImageCore { "nativeProps": {}; "src": string; } interface TaroCoverViewCore { "animation": string; "hoverClass": string; "hoverStartTime": number; "hoverStayTime": number; } interface TaroCustomWrapperCore { } interface TaroEditorCore { } interface TaroFormCore { } interface TaroFunctionalPageNavigatorCore { } interface TaroIconCore { "color": string; "size": string | number; "type": Type; } interface TaroImageCore { "lazyLoad": boolean; "mode": Mode; "nativeProps": {}; "src": string; } interface TaroInputCore { "autoFocus": boolean; "confirmType": string; "disabled": boolean; "maxlength": number; "name": string; "nativeProps": {}; "password": boolean; "placeholder": string; "type": string; "value": string; } interface TaroKeyboardAccessoryCore { } interface TaroLabelCore { "for": string; } interface TaroLivePlayerCore { } interface TaroLivePusherCore { } interface TaroMapCore { } interface TaroMatchMediaCore { } interface TaroMovableAreaCore { } interface TaroMovableViewCore { } interface TaroNavigationBarCore { } interface TaroNavigatorCore { "delta": number; "hoverClass": string; "isHover": boolean; "openType": string; "url": string; } interface TaroOfficialAccountCore { } interface TaroOpenDataCore { } interface TaroPageContainerCore { } interface TaroPageMetaCore { } interface TaroPickerCore { "disabled": boolean; "end": string; "fields": Fields; "mode": Mode; "name": string; "range": any[]; "rangeKey": string; "start": string; "value": number | number[] | string; } interface TaroPickerGroup { "columnId": string; "height": number; "mode": 'time' | 'date'; "onColumnChange": (height: number, columnId: string) => void; "range": any[]; "rangeKey": string; "updateDay": (value: number, fields: number) => void; "updateHeight": (height: number, columnId: string, needRevise?: boolean) => void; } interface TaroPickerViewColumnCore { "col": string; "initialPosition": string; "paddingVertical": number; } interface TaroPickerViewCore { "indicatorClass": string; "indicatorStyle": string; "maskClass": string; "maskStyle": string; "value": number[]; } interface TaroProgressCore { "active": boolean; "activeColor": string; "backgroundColor": string; "borderRadius": number | string; "fontSize": number | string; "percent": number; "showInfo": boolean; "strokeWidth": number | string; } interface TaroPullToRefresh { "damping": number; "distanceToRefresh": number; "indicator": { activate: string; deactivate: string; release: string; finish: string; }; "prefixCls": string; } interface TaroRadioCore { "checked": boolean; "disabled": boolean; "id": string; "name": string; "nativeProps": {}; "value": string; } interface TaroRadioGroupCore { "name": any; } interface TaroRichTextCore { "nodes": Nodes; } interface TaroScrollViewCore { "lowerThreshold": number | string; "mpScrollIntoView": string; "mpScrollLeft": number | string; "mpScrollTop": number | string; "scrollWithAnimation": boolean; "scrollX": boolean; "scrollY": boolean; "upperThreshold": number | string; } interface TaroShareElementCore { } interface TaroSliderCore { "activeColor": string; "backgroundColor": string; "blockColor": string; "blockSize": number; "disabled": boolean; "max": number; "min": number; "name": string; "showValue": boolean; "step": number; "value": number | null; } interface TaroSlotCore { } interface TaroSwiperCore { /** * 是否自动切换 */ "autoplay": boolean; /** * 是否采用衔接滑动 */ "circular": boolean; /** * 当前所在滑块的 index */ "current": number; /** * 同时显示的滑块数量 */ "displayMultipleItems": number; /** * 滑动动画时长 */ "duration": number; /** * 给 previewImage API 使用,全屏显示 swiper */ "full": boolean; /** * 当前选中的指示点颜色 */ "indicatorActiveColor": string; /** * 指示点颜色 */ "indicatorColor": string; /** * 是否显示面板指示点 */ "indicatorDots": boolean; /** * 自动切换时间间隔 */ "interval": number; /** * 后边距,可用于露出后一项的一小部分,接受 px 值 */ "nextMargin": string; /** * 前边距,可用于露出前一项的一小部分,接受 px 值 */ "previousMargin": string; /** * 滑动方向是否为纵向 */ "vertical": boolean; } interface TaroSwiperItemCore { "itemId": string; } interface TaroSwitchCore { "checked": boolean; "color": string; "disabled": boolean; "name": string; "nativeProps": {}; "type": string; } interface TaroTabbar { "conf": Conf; } interface TaroTextCore { "selectable": boolean; } interface TaroTextareaCore { "autoFocus": boolean; "autoHeight": boolean; "disabled": boolean; "maxlength": number; "name": string; "nativeProps": {}; "placeholder": string; "value": string; } interface TaroVideoControl { "controls": boolean; "currentTime": number; "duration": number; "getIsDraggingProgressBall": () => Promise; "isPlaying": boolean; "pauseFunc": () => void; "playFunc": () => void; "seekFunc": (position: number) => void; "setCurrentTime": (time: number) => Promise; "setProgressBall": (percentage: number) => Promise; "showPlayBtn": boolean; "showProgress": boolean; "toggleVisibility": (nextVisible?: boolean | undefined) => Promise; } interface TaroVideoCore { /** * 是否自动播放 */ "autoplay": boolean; /** * 是否显示默认播放控件(播放/暂停按钮、播放进度、时间) */ "controls": boolean; /** * 是否显示弹幕按钮 */ "danmuBtn": boolean; /** * 弹幕列表 */ "danmuList": []; /** * 指定视频时长 */ "duration": number; /** * 是否展示弹幕 */ "enableDanmu": boolean; /** * 是否开启播放手势,即双击切换播放/暂停 */ "enablePlayGesture": boolean; /** * 是否开启控制进度的手势 */ "enableProgressGesture": boolean; /** * 退出全屏 */ "exitFullScreen": () => Promise; /** * 指定视频初始播放位置 */ "initialTime": number; /** * 是否循环播放 */ "loop": boolean; /** * 是否静音播放 */ "muted": boolean; "nativeProps": {}; /** * 当视频大小与 video 容器大小不一致时,视频的表现形式 */ "objectFit": 'contain' | 'fill' | 'cover'; /** * 暂停视频 */ "pause": () => Promise; /** * 播放视频 */ "play": () => Promise; /** * 视频封面的图片网络资源地址或云文件ID(2.3.0)。若 controls 属性值为 false 则设置 poster 无效 */ "poster": string; /** * 进入全屏。若有自定义内容需在全屏时展示,需将内容节点放置到 video 节点内。 */ "requestFullScreen": () => Promise; /** * 跳转到指定位置 */ "seek": (position: number) => Promise; /** * 是否显示视频中间的播放按钮 */ "showCenterPlayBtn": boolean; /** * 是否显示全屏按钮 */ "showFullscreenBtn": boolean; /** * 是否显示静音按钮 */ "showMuteBtn": boolean; /** * 是否显示视频底部控制栏的播放按钮 */ "showPlayBtn": boolean; /** * 若不设置,宽度大于 240 时才会显示 */ "showProgress": boolean; /** * 要播放视频的资源地址 */ "src": string; /** * 停止视频 */ "stop": () => Promise; /** * 在非全屏模式下,是否开启亮度与音量调节手势 */ "vslideGesture": boolean; /** * 在全屏模式下,是否开启亮度与音量调节手势 */ "vslideGestureInFullscreen": boolean; } interface TaroVideoDanmu { "enable": boolean; "sendDanmu": (danmuList?: Partial | Partial[]) => Promise; "tick": (currentTime: number) => Promise; } interface TaroViewCore { "animation": string; "hoverClass": string; "hoverStartTime": number; "hoverStayTime": number; } interface TaroVoipRoomCore { } interface TaroWebViewCore { "src": string; } } declare global { interface HTMLTaroAdCoreElement extends Components.TaroAdCore, HTMLStencilElement { } var HTMLTaroAdCoreElement: { prototype: HTMLTaroAdCoreElement; new (): HTMLTaroAdCoreElement; }; interface HTMLTaroAdCustomCoreElement extends Components.TaroAdCustomCore, HTMLStencilElement { } var HTMLTaroAdCustomCoreElement: { prototype: HTMLTaroAdCustomCoreElement; new (): HTMLTaroAdCustomCoreElement; }; interface HTMLTaroAudioCoreElement extends Components.TaroAudioCore, HTMLStencilElement { } var HTMLTaroAudioCoreElement: { prototype: HTMLTaroAudioCoreElement; new (): HTMLTaroAudioCoreElement; }; interface HTMLTaroBlockCoreElement extends Components.TaroBlockCore, HTMLStencilElement { } var HTMLTaroBlockCoreElement: { prototype: HTMLTaroBlockCoreElement; new (): HTMLTaroBlockCoreElement; }; interface HTMLTaroButtonCoreElement extends Components.TaroButtonCore, HTMLStencilElement { } var HTMLTaroButtonCoreElement: { prototype: HTMLTaroButtonCoreElement; new (): HTMLTaroButtonCoreElement; }; interface HTMLTaroCameraCoreElement extends Components.TaroCameraCore, HTMLStencilElement { } var HTMLTaroCameraCoreElement: { prototype: HTMLTaroCameraCoreElement; new (): HTMLTaroCameraCoreElement; }; interface HTMLTaroCanvasCoreElement extends Components.TaroCanvasCore, HTMLStencilElement { } var HTMLTaroCanvasCoreElement: { prototype: HTMLTaroCanvasCoreElement; new (): HTMLTaroCanvasCoreElement; }; interface HTMLTaroCheckboxCoreElement extends Components.TaroCheckboxCore, HTMLStencilElement { } var HTMLTaroCheckboxCoreElement: { prototype: HTMLTaroCheckboxCoreElement; new (): HTMLTaroCheckboxCoreElement; }; interface HTMLTaroCheckboxGroupCoreElement extends Components.TaroCheckboxGroupCore, HTMLStencilElement { } var HTMLTaroCheckboxGroupCoreElement: { prototype: HTMLTaroCheckboxGroupCoreElement; new (): HTMLTaroCheckboxGroupCoreElement; }; interface HTMLTaroCoverImageCoreElement extends Components.TaroCoverImageCore, HTMLStencilElement { } var HTMLTaroCoverImageCoreElement: { prototype: HTMLTaroCoverImageCoreElement; new (): HTMLTaroCoverImageCoreElement; }; interface HTMLTaroCoverViewCoreElement extends Components.TaroCoverViewCore, HTMLStencilElement { } var HTMLTaroCoverViewCoreElement: { prototype: HTMLTaroCoverViewCoreElement; new (): HTMLTaroCoverViewCoreElement; }; interface HTMLTaroCustomWrapperCoreElement extends Components.TaroCustomWrapperCore, HTMLStencilElement { } var HTMLTaroCustomWrapperCoreElement: { prototype: HTMLTaroCustomWrapperCoreElement; new (): HTMLTaroCustomWrapperCoreElement; }; interface HTMLTaroEditorCoreElement extends Components.TaroEditorCore, HTMLStencilElement { } var HTMLTaroEditorCoreElement: { prototype: HTMLTaroEditorCoreElement; new (): HTMLTaroEditorCoreElement; }; interface HTMLTaroFormCoreElement extends Components.TaroFormCore, HTMLStencilElement { } var HTMLTaroFormCoreElement: { prototype: HTMLTaroFormCoreElement; new (): HTMLTaroFormCoreElement; }; interface HTMLTaroFunctionalPageNavigatorCoreElement extends Components.TaroFunctionalPageNavigatorCore, HTMLStencilElement { } var HTMLTaroFunctionalPageNavigatorCoreElement: { prototype: HTMLTaroFunctionalPageNavigatorCoreElement; new (): HTMLTaroFunctionalPageNavigatorCoreElement; }; interface HTMLTaroIconCoreElement extends Components.TaroIconCore, HTMLStencilElement { } var HTMLTaroIconCoreElement: { prototype: HTMLTaroIconCoreElement; new (): HTMLTaroIconCoreElement; }; interface HTMLTaroImageCoreElement extends Components.TaroImageCore, HTMLStencilElement { } var HTMLTaroImageCoreElement: { prototype: HTMLTaroImageCoreElement; new (): HTMLTaroImageCoreElement; }; interface HTMLTaroInputCoreElement extends Components.TaroInputCore, HTMLStencilElement { } var HTMLTaroInputCoreElement: { prototype: HTMLTaroInputCoreElement; new (): HTMLTaroInputCoreElement; }; interface HTMLTaroKeyboardAccessoryCoreElement extends Components.TaroKeyboardAccessoryCore, HTMLStencilElement { } var HTMLTaroKeyboardAccessoryCoreElement: { prototype: HTMLTaroKeyboardAccessoryCoreElement; new (): HTMLTaroKeyboardAccessoryCoreElement; }; interface HTMLTaroLabelCoreElement extends Components.TaroLabelCore, HTMLStencilElement { } var HTMLTaroLabelCoreElement: { prototype: HTMLTaroLabelCoreElement; new (): HTMLTaroLabelCoreElement; }; interface HTMLTaroLivePlayerCoreElement extends Components.TaroLivePlayerCore, HTMLStencilElement { } var HTMLTaroLivePlayerCoreElement: { prototype: HTMLTaroLivePlayerCoreElement; new (): HTMLTaroLivePlayerCoreElement; }; interface HTMLTaroLivePusherCoreElement extends Components.TaroLivePusherCore, HTMLStencilElement { } var HTMLTaroLivePusherCoreElement: { prototype: HTMLTaroLivePusherCoreElement; new (): HTMLTaroLivePusherCoreElement; }; interface HTMLTaroMapCoreElement extends Components.TaroMapCore, HTMLStencilElement { } var HTMLTaroMapCoreElement: { prototype: HTMLTaroMapCoreElement; new (): HTMLTaroMapCoreElement; }; interface HTMLTaroMatchMediaCoreElement extends Components.TaroMatchMediaCore, HTMLStencilElement { } var HTMLTaroMatchMediaCoreElement: { prototype: HTMLTaroMatchMediaCoreElement; new (): HTMLTaroMatchMediaCoreElement; }; interface HTMLTaroMovableAreaCoreElement extends Components.TaroMovableAreaCore, HTMLStencilElement { } var HTMLTaroMovableAreaCoreElement: { prototype: HTMLTaroMovableAreaCoreElement; new (): HTMLTaroMovableAreaCoreElement; }; interface HTMLTaroMovableViewCoreElement extends Components.TaroMovableViewCore, HTMLStencilElement { } var HTMLTaroMovableViewCoreElement: { prototype: HTMLTaroMovableViewCoreElement; new (): HTMLTaroMovableViewCoreElement; }; interface HTMLTaroNavigationBarCoreElement extends Components.TaroNavigationBarCore, HTMLStencilElement { } var HTMLTaroNavigationBarCoreElement: { prototype: HTMLTaroNavigationBarCoreElement; new (): HTMLTaroNavigationBarCoreElement; }; interface HTMLTaroNavigatorCoreElement extends Components.TaroNavigatorCore, HTMLStencilElement { } var HTMLTaroNavigatorCoreElement: { prototype: HTMLTaroNavigatorCoreElement; new (): HTMLTaroNavigatorCoreElement; }; interface HTMLTaroOfficialAccountCoreElement extends Components.TaroOfficialAccountCore, HTMLStencilElement { } var HTMLTaroOfficialAccountCoreElement: { prototype: HTMLTaroOfficialAccountCoreElement; new (): HTMLTaroOfficialAccountCoreElement; }; interface HTMLTaroOpenDataCoreElement extends Components.TaroOpenDataCore, HTMLStencilElement { } var HTMLTaroOpenDataCoreElement: { prototype: HTMLTaroOpenDataCoreElement; new (): HTMLTaroOpenDataCoreElement; }; interface HTMLTaroPageContainerCoreElement extends Components.TaroPageContainerCore, HTMLStencilElement { } var HTMLTaroPageContainerCoreElement: { prototype: HTMLTaroPageContainerCoreElement; new (): HTMLTaroPageContainerCoreElement; }; interface HTMLTaroPageMetaCoreElement extends Components.TaroPageMetaCore, HTMLStencilElement { } var HTMLTaroPageMetaCoreElement: { prototype: HTMLTaroPageMetaCoreElement; new (): HTMLTaroPageMetaCoreElement; }; interface HTMLTaroPickerCoreElement extends Components.TaroPickerCore, HTMLStencilElement { } var HTMLTaroPickerCoreElement: { prototype: HTMLTaroPickerCoreElement; new (): HTMLTaroPickerCoreElement; }; interface HTMLTaroPickerGroupElement extends Components.TaroPickerGroup, HTMLStencilElement { } var HTMLTaroPickerGroupElement: { prototype: HTMLTaroPickerGroupElement; new (): HTMLTaroPickerGroupElement; }; interface HTMLTaroPickerViewColumnCoreElement extends Components.TaroPickerViewColumnCore, HTMLStencilElement { } var HTMLTaroPickerViewColumnCoreElement: { prototype: HTMLTaroPickerViewColumnCoreElement; new (): HTMLTaroPickerViewColumnCoreElement; }; interface HTMLTaroPickerViewCoreElement extends Components.TaroPickerViewCore, HTMLStencilElement { } var HTMLTaroPickerViewCoreElement: { prototype: HTMLTaroPickerViewCoreElement; new (): HTMLTaroPickerViewCoreElement; }; interface HTMLTaroProgressCoreElement extends Components.TaroProgressCore, HTMLStencilElement { } var HTMLTaroProgressCoreElement: { prototype: HTMLTaroProgressCoreElement; new (): HTMLTaroProgressCoreElement; }; interface HTMLTaroPullToRefreshElement extends Components.TaroPullToRefresh, HTMLStencilElement { } var HTMLTaroPullToRefreshElement: { prototype: HTMLTaroPullToRefreshElement; new (): HTMLTaroPullToRefreshElement; }; interface HTMLTaroRadioCoreElement extends Components.TaroRadioCore, HTMLStencilElement { } var HTMLTaroRadioCoreElement: { prototype: HTMLTaroRadioCoreElement; new (): HTMLTaroRadioCoreElement; }; interface HTMLTaroRadioGroupCoreElement extends Components.TaroRadioGroupCore, HTMLStencilElement { } var HTMLTaroRadioGroupCoreElement: { prototype: HTMLTaroRadioGroupCoreElement; new (): HTMLTaroRadioGroupCoreElement; }; interface HTMLTaroRichTextCoreElement extends Components.TaroRichTextCore, HTMLStencilElement { } var HTMLTaroRichTextCoreElement: { prototype: HTMLTaroRichTextCoreElement; new (): HTMLTaroRichTextCoreElement; }; interface HTMLTaroScrollViewCoreElement extends Components.TaroScrollViewCore, HTMLStencilElement { } var HTMLTaroScrollViewCoreElement: { prototype: HTMLTaroScrollViewCoreElement; new (): HTMLTaroScrollViewCoreElement; }; interface HTMLTaroShareElementCoreElement extends Components.TaroShareElementCore, HTMLStencilElement { } var HTMLTaroShareElementCoreElement: { prototype: HTMLTaroShareElementCoreElement; new (): HTMLTaroShareElementCoreElement; }; interface HTMLTaroSliderCoreElement extends Components.TaroSliderCore, HTMLStencilElement { } var HTMLTaroSliderCoreElement: { prototype: HTMLTaroSliderCoreElement; new (): HTMLTaroSliderCoreElement; }; interface HTMLTaroSlotCoreElement extends Components.TaroSlotCore, HTMLStencilElement { } var HTMLTaroSlotCoreElement: { prototype: HTMLTaroSlotCoreElement; new (): HTMLTaroSlotCoreElement; }; interface HTMLTaroSwiperCoreElement extends Components.TaroSwiperCore, HTMLStencilElement { } var HTMLTaroSwiperCoreElement: { prototype: HTMLTaroSwiperCoreElement; new (): HTMLTaroSwiperCoreElement; }; interface HTMLTaroSwiperItemCoreElement extends Components.TaroSwiperItemCore, HTMLStencilElement { } var HTMLTaroSwiperItemCoreElement: { prototype: HTMLTaroSwiperItemCoreElement; new (): HTMLTaroSwiperItemCoreElement; }; interface HTMLTaroSwitchCoreElement extends Components.TaroSwitchCore, HTMLStencilElement { } var HTMLTaroSwitchCoreElement: { prototype: HTMLTaroSwitchCoreElement; new (): HTMLTaroSwitchCoreElement; }; interface HTMLTaroTabbarElement extends Components.TaroTabbar, HTMLStencilElement { } var HTMLTaroTabbarElement: { prototype: HTMLTaroTabbarElement; new (): HTMLTaroTabbarElement; }; interface HTMLTaroTextCoreElement extends Components.TaroTextCore, HTMLStencilElement { } var HTMLTaroTextCoreElement: { prototype: HTMLTaroTextCoreElement; new (): HTMLTaroTextCoreElement; }; interface HTMLTaroTextareaCoreElement extends Components.TaroTextareaCore, HTMLStencilElement { } var HTMLTaroTextareaCoreElement: { prototype: HTMLTaroTextareaCoreElement; new (): HTMLTaroTextareaCoreElement; }; interface HTMLTaroVideoControlElement extends Components.TaroVideoControl, HTMLStencilElement { } var HTMLTaroVideoControlElement: { prototype: HTMLTaroVideoControlElement; new (): HTMLTaroVideoControlElement; }; interface HTMLTaroVideoCoreElement extends Components.TaroVideoCore, HTMLStencilElement { } var HTMLTaroVideoCoreElement: { prototype: HTMLTaroVideoCoreElement; new (): HTMLTaroVideoCoreElement; }; interface HTMLTaroVideoDanmuElement extends Components.TaroVideoDanmu, HTMLStencilElement { } var HTMLTaroVideoDanmuElement: { prototype: HTMLTaroVideoDanmuElement; new (): HTMLTaroVideoDanmuElement; }; interface HTMLTaroViewCoreElement extends Components.TaroViewCore, HTMLStencilElement { } var HTMLTaroViewCoreElement: { prototype: HTMLTaroViewCoreElement; new (): HTMLTaroViewCoreElement; }; interface HTMLTaroVoipRoomCoreElement extends Components.TaroVoipRoomCore, HTMLStencilElement { } var HTMLTaroVoipRoomCoreElement: { prototype: HTMLTaroVoipRoomCoreElement; new (): HTMLTaroVoipRoomCoreElement; }; interface HTMLTaroWebViewCoreElement extends Components.TaroWebViewCore, HTMLStencilElement { } var HTMLTaroWebViewCoreElement: { prototype: HTMLTaroWebViewCoreElement; new (): HTMLTaroWebViewCoreElement; }; interface HTMLElementTagNameMap { "taro-ad-core": HTMLTaroAdCoreElement; "taro-ad-custom-core": HTMLTaroAdCustomCoreElement; "taro-audio-core": HTMLTaroAudioCoreElement; "taro-block-core": HTMLTaroBlockCoreElement; "taro-button-core": HTMLTaroButtonCoreElement; "taro-camera-core": HTMLTaroCameraCoreElement; "taro-canvas-core": HTMLTaroCanvasCoreElement; "taro-checkbox-core": HTMLTaroCheckboxCoreElement; "taro-checkbox-group-core": HTMLTaroCheckboxGroupCoreElement; "taro-cover-image-core": HTMLTaroCoverImageCoreElement; "taro-cover-view-core": HTMLTaroCoverViewCoreElement; "taro-custom-wrapper-core": HTMLTaroCustomWrapperCoreElement; "taro-editor-core": HTMLTaroEditorCoreElement; "taro-form-core": HTMLTaroFormCoreElement; "taro-functional-page-navigator-core": HTMLTaroFunctionalPageNavigatorCoreElement; "taro-icon-core": HTMLTaroIconCoreElement; "taro-image-core": HTMLTaroImageCoreElement; "taro-input-core": HTMLTaroInputCoreElement; "taro-keyboard-accessory-core": HTMLTaroKeyboardAccessoryCoreElement; "taro-label-core": HTMLTaroLabelCoreElement; "taro-live-player-core": HTMLTaroLivePlayerCoreElement; "taro-live-pusher-core": HTMLTaroLivePusherCoreElement; "taro-map-core": HTMLTaroMapCoreElement; "taro-match-media-core": HTMLTaroMatchMediaCoreElement; "taro-movable-area-core": HTMLTaroMovableAreaCoreElement; "taro-movable-view-core": HTMLTaroMovableViewCoreElement; "taro-navigation-bar-core": HTMLTaroNavigationBarCoreElement; "taro-navigator-core": HTMLTaroNavigatorCoreElement; "taro-official-account-core": HTMLTaroOfficialAccountCoreElement; "taro-open-data-core": HTMLTaroOpenDataCoreElement; "taro-page-container-core": HTMLTaroPageContainerCoreElement; "taro-page-meta-core": HTMLTaroPageMetaCoreElement; "taro-picker-core": HTMLTaroPickerCoreElement; "taro-picker-group": HTMLTaroPickerGroupElement; "taro-picker-view-column-core": HTMLTaroPickerViewColumnCoreElement; "taro-picker-view-core": HTMLTaroPickerViewCoreElement; "taro-progress-core": HTMLTaroProgressCoreElement; "taro-pull-to-refresh": HTMLTaroPullToRefreshElement; "taro-radio-core": HTMLTaroRadioCoreElement; "taro-radio-group-core": HTMLTaroRadioGroupCoreElement; "taro-rich-text-core": HTMLTaroRichTextCoreElement; "taro-scroll-view-core": HTMLTaroScrollViewCoreElement; "taro-share-element-core": HTMLTaroShareElementCoreElement; "taro-slider-core": HTMLTaroSliderCoreElement; "taro-slot-core": HTMLTaroSlotCoreElement; "taro-swiper-core": HTMLTaroSwiperCoreElement; "taro-swiper-item-core": HTMLTaroSwiperItemCoreElement; "taro-switch-core": HTMLTaroSwitchCoreElement; "taro-tabbar": HTMLTaroTabbarElement; "taro-text-core": HTMLTaroTextCoreElement; "taro-textarea-core": HTMLTaroTextareaCoreElement; "taro-video-control": HTMLTaroVideoControlElement; "taro-video-core": HTMLTaroVideoCoreElement; "taro-video-danmu": HTMLTaroVideoDanmuElement; "taro-view-core": HTMLTaroViewCoreElement; "taro-voip-room-core": HTMLTaroVoipRoomCoreElement; "taro-web-view-core": HTMLTaroWebViewCoreElement; } } declare namespace LocalJSX { interface TaroAdCore { } interface TaroAdCustomCore { } interface TaroAudioCore { "autoplay"?: boolean; "controls"?: boolean; "loop"?: boolean; "muted"?: boolean; "nativeProps"?: {}; "onEnded"?: (event: CustomEvent) => void; "onError"?: (event: CustomEvent) => void; "onPause"?: (event: CustomEvent) => void; "onPlay"?: (event: CustomEvent) => void; "onTimeupdate"?: (event: CustomEvent) => void; "src"?: string; } interface TaroBlockCore { } interface TaroButtonCore { "disabled"?: boolean; "formType"?: 'submit' | 'reset' | null; "hoverClass"?: string; "hoverStartTime"?: number; "hoverStayTime"?: number; "loading"?: boolean; "onTarobuttonreset"?: (event: CustomEvent) => void; "onTarobuttonsubmit"?: (event: CustomEvent) => void; "plain"?: boolean; "size"?: string; "type"?: string; } interface TaroCameraCore { } interface TaroCanvasCore { "canvasId"?: string; "nativeProps"?: {}; "onLongtap"?: (event: CustomEvent) => void; } interface TaroCheckboxCore { "checked"?: boolean; "color"?: string; "disabled"?: boolean; "id"?: string; "name"?: string; "nativeProps"?: {}; "onCheckboxchange"?: (event: CustomEvent) => void; "value"?: string; } interface TaroCheckboxGroupCore { "name"?: any; "onChange"?: (event: CustomEvent) => void; } interface TaroCoverImageCore { "nativeProps"?: {}; "onError"?: (event: CustomEvent) => void; "onLoad"?: (event: CustomEvent) => void; "src"?: string; } interface TaroCoverViewCore { "animation"?: string; "hoverClass"?: string; "hoverStartTime"?: number; "hoverStayTime"?: number; "onLongpress"?: (event: CustomEvent) => void; } interface TaroCustomWrapperCore { } interface TaroEditorCore { } interface TaroFormCore { "onSubmit"?: (event: CustomEvent) => void; } interface TaroFunctionalPageNavigatorCore { } interface TaroIconCore { "color"?: string; "size"?: string | number; "type"?: Type; } interface TaroImageCore { "lazyLoad"?: boolean; "mode"?: Mode; "nativeProps"?: {}; "onError"?: (event: CustomEvent) => void; "onLoad"?: (event: CustomEvent) => void; "src"?: string; } interface TaroInputCore { "autoFocus"?: boolean; "confirmType"?: string; "disabled"?: boolean; "maxlength"?: number; "name"?: string; "nativeProps"?: {}; "onBlur"?: (event: CustomEvent) => void; "onChange"?: (event: CustomEvent) => void; "onConfirm"?: (event: CustomEvent) => void; "onFocus"?: (event: CustomEvent) => void; "onInput"?: (event: CustomEvent) => void; "onKeydown"?: (event: CustomEvent) => void; "onPaste"?: (event: CustomEvent) => void; "password"?: boolean; "placeholder"?: string; "type"?: string; "value"?: string; } interface TaroKeyboardAccessoryCore { } interface TaroLabelCore { "for"?: string; } interface TaroLivePlayerCore { } interface TaroLivePusherCore { } interface TaroMapCore { } interface TaroMatchMediaCore { } interface TaroMovableAreaCore { } interface TaroMovableViewCore { } interface TaroNavigationBarCore { } interface TaroNavigatorCore { "delta"?: number; "hoverClass"?: string; "isHover"?: boolean; "onComplete"?: (event: CustomEvent) => void; "onCuccess"?: (event: CustomEvent) => void; "onFail"?: (event: CustomEvent) => void; "openType"?: string; "url"?: string; } interface TaroOfficialAccountCore { } interface TaroOpenDataCore { } interface TaroPageContainerCore { } interface TaroPageMetaCore { } interface TaroPickerCore { "disabled"?: boolean; "end"?: string; "fields"?: Fields; "mode"?: Mode; "name"?: string; "onCancel"?: (event: CustomEvent) => void; "onChange"?: (event: CustomEvent) => void; "onColumnchange"?: (event: CustomEvent) => void; "range"?: any[]; "rangeKey"?: string; "start"?: string; "value"?: number | number[] | string; } interface TaroPickerGroup { "columnId"?: string; "height"?: number; "mode"?: 'time' | 'date'; "onColumnChange"?: (height: number, columnId: string) => void; "range"?: any[]; "rangeKey"?: string; "updateDay"?: (value: number, fields: number) => void; "updateHeight"?: (height: number, columnId: string, needRevise?: boolean) => void; } interface TaroPickerViewColumnCore { "col"?: string; "initialPosition"?: string; "onOnselect"?: (event: CustomEvent) => void; "onOnselectend"?: (event: CustomEvent) => void; "onOnselectstart"?: (event: CustomEvent) => void; "paddingVertical"?: number; } interface TaroPickerViewCore { "indicatorClass"?: string; "indicatorStyle"?: string; "maskClass"?: string; "maskStyle"?: string; "onChange"?: (event: CustomEvent) => void; "onPickend"?: (event: CustomEvent) => void; "onPickstart"?: (event: CustomEvent) => void; "value"?: number[]; } interface TaroProgressCore { "active"?: boolean; "activeColor"?: string; "backgroundColor"?: string; "borderRadius"?: number | string; "fontSize"?: number | string; "percent"?: number; "showInfo"?: boolean; "strokeWidth"?: number | string; } interface TaroPullToRefresh { "damping"?: number; "distanceToRefresh"?: number; "indicator"?: { activate: string; deactivate: string; release: string; finish: string; }; "onRefresh"?: (event: CustomEvent) => void; "prefixCls"?: string; } interface TaroRadioCore { "checked"?: boolean; "disabled"?: boolean; "id"?: string; "name"?: string; "nativeProps"?: {}; "onRadiochange"?: (event: CustomEvent) => void; "value"?: string; } interface TaroRadioGroupCore { "name"?: any; "onChange"?: (event: CustomEvent) => void; } interface TaroRichTextCore { "nodes"?: Nodes; } interface TaroScrollViewCore { "lowerThreshold"?: number | string; "mpScrollIntoView"?: string; "mpScrollLeft"?: number | string; "mpScrollTop"?: number | string; "onScroll"?: (event: CustomEvent) => void; "onScrolltolower"?: (event: CustomEvent) => void; "onScrolltoupper"?: (event: CustomEvent) => void; "scrollWithAnimation"?: boolean; "scrollX"?: boolean; "scrollY"?: boolean; "upperThreshold"?: number | string; } interface TaroShareElementCore { } interface TaroSliderCore { "activeColor"?: string; "backgroundColor"?: string; "blockColor"?: string; "blockSize"?: number; "disabled"?: boolean; "max"?: number; "min"?: number; "name"?: string; "onChange"?: (event: CustomEvent) => void; "onChanging"?: (event: CustomEvent) => void; "showValue"?: boolean; "step"?: number; "value"?: number | null; } interface TaroSlotCore { } interface TaroSwiperCore { /** * 是否自动切换 */ "autoplay"?: boolean; /** * 是否采用衔接滑动 */ "circular"?: boolean; /** * 当前所在滑块的 index */ "current"?: number; /** * 同时显示的滑块数量 */ "displayMultipleItems"?: number; /** * 滑动动画时长 */ "duration"?: number; /** * 给 previewImage API 使用,全屏显示 swiper */ "full"?: boolean; /** * 当前选中的指示点颜色 */ "indicatorActiveColor"?: string; /** * 指示点颜色 */ "indicatorColor"?: string; /** * 是否显示面板指示点 */ "indicatorDots"?: boolean; /** * 自动切换时间间隔 */ "interval"?: number; /** * 后边距,可用于露出后一项的一小部分,接受 px 值 */ "nextMargin"?: string; "onAnimationfinish"?: (event: CustomEvent) => void; "onChange"?: (event: CustomEvent) => void; /** * 前边距,可用于露出前一项的一小部分,接受 px 值 */ "previousMargin"?: string; /** * 滑动方向是否为纵向 */ "vertical"?: boolean; } interface TaroSwiperItemCore { "itemId"?: string; } interface TaroSwitchCore { "checked"?: boolean; "color"?: string; "disabled"?: boolean; "name"?: string; "nativeProps"?: {}; "onChange"?: (event: CustomEvent) => void; "type"?: string; } interface TaroTabbar { "conf"?: Conf; "onLongpress"?: (event: CustomEvent) => void; } interface TaroTextCore { "selectable"?: boolean; } interface TaroTextareaCore { "autoFocus"?: boolean; "autoHeight"?: boolean; "disabled"?: boolean; "maxlength"?: number; "name"?: string; "nativeProps"?: {}; "onBlur"?: (event: CustomEvent) => void; "onChange"?: (event: CustomEvent) => void; "onFocus"?: (event: CustomEvent) => void; "onInput"?: (event: CustomEvent) => void; "onLinechange"?: (event: CustomEvent) => void; "placeholder"?: string; "value"?: string; } interface TaroVideoControl { "controls"?: boolean; "currentTime"?: number; "duration"?: number; "isPlaying"?: boolean; "pauseFunc"?: () => void; "playFunc"?: () => void; "seekFunc"?: (position: number) => void; "showPlayBtn"?: boolean; "showProgress"?: boolean; } interface TaroVideoCore { /** * 是否自动播放 */ "autoplay"?: boolean; /** * 是否显示默认播放控件(播放/暂停按钮、播放进度、时间) */ "controls"?: boolean; /** * 是否显示弹幕按钮 */ "danmuBtn"?: boolean; /** * 弹幕列表 */ "danmuList"?: []; /** * 指定视频时长 */ "duration"?: number; /** * 是否展示弹幕 */ "enableDanmu"?: boolean; /** * 是否开启播放手势,即双击切换播放/暂停 */ "enablePlayGesture"?: boolean; /** * 是否开启控制进度的手势 */ "enableProgressGesture"?: boolean; /** * 指定视频初始播放位置 */ "initialTime"?: number; /** * 是否循环播放 */ "loop"?: boolean; /** * 是否静音播放 */ "muted"?: boolean; "nativeProps"?: {}; /** * 当视频大小与 video 容器大小不一致时,视频的表现形式 */ "objectFit"?: 'contain' | 'fill' | 'cover'; "onEnded"?: (event: CustomEvent) => void; "onError"?: (event: CustomEvent) => void; "onFullscreenchange"?: (event: CustomEvent) => void; "onLoadedmetadata"?: (event: CustomEvent) => void; "onPause"?: (event: CustomEvent) => void; "onPlay"?: (event: CustomEvent) => void; "onProgress"?: (event: CustomEvent) => void; "onTimeupdate"?: (event: CustomEvent) => void; /** * 视频封面的图片网络资源地址或云文件ID(2.3.0)。若 controls 属性值为 false 则设置 poster 无效 */ "poster"?: string; /** * 是否显示视频中间的播放按钮 */ "showCenterPlayBtn"?: boolean; /** * 是否显示全屏按钮 */ "showFullscreenBtn"?: boolean; /** * 是否显示静音按钮 */ "showMuteBtn"?: boolean; /** * 是否显示视频底部控制栏的播放按钮 */ "showPlayBtn"?: boolean; /** * 若不设置,宽度大于 240 时才会显示 */ "showProgress"?: boolean; /** * 要播放视频的资源地址 */ "src"?: string; /** * 在非全屏模式下,是否开启亮度与音量调节手势 */ "vslideGesture"?: boolean; /** * 在全屏模式下,是否开启亮度与音量调节手势 */ "vslideGestureInFullscreen"?: boolean; } interface TaroVideoDanmu { "enable"?: boolean; } interface TaroViewCore { "animation"?: string; "hoverClass"?: string; "hoverStartTime"?: number; "hoverStayTime"?: number; "onLongpress"?: (event: CustomEvent) => void; } interface TaroVoipRoomCore { } interface TaroWebViewCore { "onError"?: (event: CustomEvent) => void; "onLoad"?: (event: CustomEvent) => void; "src"?: string; } interface IntrinsicElements { "taro-ad-core": TaroAdCore; "taro-ad-custom-core": TaroAdCustomCore; "taro-audio-core": TaroAudioCore; "taro-block-core": TaroBlockCore; "taro-button-core": TaroButtonCore; "taro-camera-core": TaroCameraCore; "taro-canvas-core": TaroCanvasCore; "taro-checkbox-core": TaroCheckboxCore; "taro-checkbox-group-core": TaroCheckboxGroupCore; "taro-cover-image-core": TaroCoverImageCore; "taro-cover-view-core": TaroCoverViewCore; "taro-custom-wrapper-core": TaroCustomWrapperCore; "taro-editor-core": TaroEditorCore; "taro-form-core": TaroFormCore; "taro-functional-page-navigator-core": TaroFunctionalPageNavigatorCore; "taro-icon-core": TaroIconCore; "taro-image-core": TaroImageCore; "taro-input-core": TaroInputCore; "taro-keyboard-accessory-core": TaroKeyboardAccessoryCore; "taro-label-core": TaroLabelCore; "taro-live-player-core": TaroLivePlayerCore; "taro-live-pusher-core": TaroLivePusherCore; "taro-map-core": TaroMapCore; "taro-match-media-core": TaroMatchMediaCore; "taro-movable-area-core": TaroMovableAreaCore; "taro-movable-view-core": TaroMovableViewCore; "taro-navigation-bar-core": TaroNavigationBarCore; "taro-navigator-core": TaroNavigatorCore; "taro-official-account-core": TaroOfficialAccountCore; "taro-open-data-core": TaroOpenDataCore; "taro-page-container-core": TaroPageContainerCore; "taro-page-meta-core": TaroPageMetaCore; "taro-picker-core": TaroPickerCore; "taro-picker-group": TaroPickerGroup; "taro-picker-view-column-core": TaroPickerViewColumnCore; "taro-picker-view-core": TaroPickerViewCore; "taro-progress-core": TaroProgressCore; "taro-pull-to-refresh": TaroPullToRefresh; "taro-radio-core": TaroRadioCore; "taro-radio-group-core": TaroRadioGroupCore; "taro-rich-text-core": TaroRichTextCore; "taro-scroll-view-core": TaroScrollViewCore; "taro-share-element-core": TaroShareElementCore; "taro-slider-core": TaroSliderCore; "taro-slot-core": TaroSlotCore; "taro-swiper-core": TaroSwiperCore; "taro-swiper-item-core": TaroSwiperItemCore; "taro-switch-core": TaroSwitchCore; "taro-tabbar": TaroTabbar; "taro-text-core": TaroTextCore; "taro-textarea-core": TaroTextareaCore; "taro-video-control": TaroVideoControl; "taro-video-core": TaroVideoCore; "taro-video-danmu": TaroVideoDanmu; "taro-view-core": TaroViewCore; "taro-voip-room-core": TaroVoipRoomCore; "taro-web-view-core": TaroWebViewCore; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "taro-ad-core": LocalJSX.TaroAdCore & JSXBase.HTMLAttributes; "taro-ad-custom-core": LocalJSX.TaroAdCustomCore & JSXBase.HTMLAttributes; "taro-audio-core": LocalJSX.TaroAudioCore & JSXBase.HTMLAttributes; "taro-block-core": LocalJSX.TaroBlockCore & JSXBase.HTMLAttributes; "taro-button-core": LocalJSX.TaroButtonCore & JSXBase.HTMLAttributes; "taro-camera-core": LocalJSX.TaroCameraCore & JSXBase.HTMLAttributes; "taro-canvas-core": LocalJSX.TaroCanvasCore & JSXBase.HTMLAttributes; "taro-checkbox-core": LocalJSX.TaroCheckboxCore & JSXBase.HTMLAttributes; "taro-checkbox-group-core": LocalJSX.TaroCheckboxGroupCore & JSXBase.HTMLAttributes; "taro-cover-image-core": LocalJSX.TaroCoverImageCore & JSXBase.HTMLAttributes; "taro-cover-view-core": LocalJSX.TaroCoverViewCore & JSXBase.HTMLAttributes; "taro-custom-wrapper-core": LocalJSX.TaroCustomWrapperCore & JSXBase.HTMLAttributes; "taro-editor-core": LocalJSX.TaroEditorCore & JSXBase.HTMLAttributes; "taro-form-core": LocalJSX.TaroFormCore & JSXBase.HTMLAttributes; "taro-functional-page-navigator-core": LocalJSX.TaroFunctionalPageNavigatorCore & JSXBase.HTMLAttributes; "taro-icon-core": LocalJSX.TaroIconCore & JSXBase.HTMLAttributes; "taro-image-core": LocalJSX.TaroImageCore & JSXBase.HTMLAttributes; "taro-input-core": LocalJSX.TaroInputCore & JSXBase.HTMLAttributes; "taro-keyboard-accessory-core": LocalJSX.TaroKeyboardAccessoryCore & JSXBase.HTMLAttributes; "taro-label-core": LocalJSX.TaroLabelCore & JSXBase.HTMLAttributes; "taro-live-player-core": LocalJSX.TaroLivePlayerCore & JSXBase.HTMLAttributes; "taro-live-pusher-core": LocalJSX.TaroLivePusherCore & JSXBase.HTMLAttributes; "taro-map-core": LocalJSX.TaroMapCore & JSXBase.HTMLAttributes; "taro-match-media-core": LocalJSX.TaroMatchMediaCore & JSXBase.HTMLAttributes; "taro-movable-area-core": LocalJSX.TaroMovableAreaCore & JSXBase.HTMLAttributes; "taro-movable-view-core": LocalJSX.TaroMovableViewCore & JSXBase.HTMLAttributes; "taro-navigation-bar-core": LocalJSX.TaroNavigationBarCore & JSXBase.HTMLAttributes; "taro-navigator-core": LocalJSX.TaroNavigatorCore & JSXBase.HTMLAttributes; "taro-official-account-core": LocalJSX.TaroOfficialAccountCore & JSXBase.HTMLAttributes; "taro-open-data-core": LocalJSX.TaroOpenDataCore & JSXBase.HTMLAttributes; "taro-page-container-core": LocalJSX.TaroPageContainerCore & JSXBase.HTMLAttributes; "taro-page-meta-core": LocalJSX.TaroPageMetaCore & JSXBase.HTMLAttributes; "taro-picker-core": LocalJSX.TaroPickerCore & JSXBase.HTMLAttributes; "taro-picker-group": LocalJSX.TaroPickerGroup & JSXBase.HTMLAttributes; "taro-picker-view-column-core": LocalJSX.TaroPickerViewColumnCore & JSXBase.HTMLAttributes; "taro-picker-view-core": LocalJSX.TaroPickerViewCore & JSXBase.HTMLAttributes; "taro-progress-core": LocalJSX.TaroProgressCore & JSXBase.HTMLAttributes; "taro-pull-to-refresh": LocalJSX.TaroPullToRefresh & JSXBase.HTMLAttributes; "taro-radio-core": LocalJSX.TaroRadioCore & JSXBase.HTMLAttributes; "taro-radio-group-core": LocalJSX.TaroRadioGroupCore & JSXBase.HTMLAttributes; "taro-rich-text-core": LocalJSX.TaroRichTextCore & JSXBase.HTMLAttributes; "taro-scroll-view-core": LocalJSX.TaroScrollViewCore & JSXBase.HTMLAttributes; "taro-share-element-core": LocalJSX.TaroShareElementCore & JSXBase.HTMLAttributes; "taro-slider-core": LocalJSX.TaroSliderCore & JSXBase.HTMLAttributes; "taro-slot-core": LocalJSX.TaroSlotCore & JSXBase.HTMLAttributes; "taro-swiper-core": LocalJSX.TaroSwiperCore & JSXBase.HTMLAttributes; "taro-swiper-item-core": LocalJSX.TaroSwiperItemCore & JSXBase.HTMLAttributes; "taro-switch-core": LocalJSX.TaroSwitchCore & JSXBase.HTMLAttributes; "taro-tabbar": LocalJSX.TaroTabbar & JSXBase.HTMLAttributes; "taro-text-core": LocalJSX.TaroTextCore & JSXBase.HTMLAttributes; "taro-textarea-core": LocalJSX.TaroTextareaCore & JSXBase.HTMLAttributes; "taro-video-control": LocalJSX.TaroVideoControl & JSXBase.HTMLAttributes; "taro-video-core": LocalJSX.TaroVideoCore & JSXBase.HTMLAttributes; "taro-video-danmu": LocalJSX.TaroVideoDanmu & JSXBase.HTMLAttributes; "taro-view-core": LocalJSX.TaroViewCore & JSXBase.HTMLAttributes; "taro-voip-room-core": LocalJSX.TaroVoipRoomCore & JSXBase.HTMLAttributes; "taro-web-view-core": LocalJSX.TaroWebViewCore & JSXBase.HTMLAttributes; } } }