forked from NervJS/taro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(types): sync components types
- Loading branch information
1 parent
6b09635
commit 435ff78
Showing
54 changed files
with
776 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentType } from 'react' | ||
import { StandardProps } from './common' | ||
interface ChannelLiveProps extends StandardProps { | ||
/** 视频 feedId | ||
* @supported weapp | ||
*/ | ||
feedId: string | ||
|
||
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。 | ||
* @supported weapp | ||
*/ | ||
finderUserName: string | ||
} | ||
|
||
/** | ||
* 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。 | ||
* @classification media | ||
* @supported weapp | ||
* @see https://developers.weixin.qq.com/miniprogram/dev/component/channel-live.html | ||
*/ | ||
declare const ChannelLive: ComponentType<ChannelLiveProps> | ||
export { ChannelLive, ChannelLiveProps } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { ComponentType } from 'react' | ||
import { StandardProps, CommonEventFunction } from './common' | ||
interface ChannelVideoProps extends StandardProps { | ||
/** 视频 feedId | ||
* @supported weapp | ||
*/ | ||
feedId: string | ||
|
||
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。 | ||
* @supported weapp | ||
*/ | ||
finderUserName: string | ||
|
||
/** 是否循环播放 | ||
* @supported weapp | ||
* @default false | ||
*/ | ||
loop?: boolean | ||
|
||
/** 是否静音播放 | ||
* @supported weapp | ||
* @default false | ||
*/ | ||
muted?: boolean | ||
|
||
/** 当视频大小与 video 容器大小不一致时,视频的表现形式 | ||
* @supported weapp | ||
* @default "contain" | ||
*/ | ||
objectFit?: 'fill' | 'contain' | 'cover' | ||
|
||
/** 是否自动播放 | ||
* @supported weapp | ||
* @default false | ||
*/ | ||
autoplay?: boolean | ||
|
||
/** 仅内嵌小程序非同主体视频号视频时使用,获取方式参考本指引。 | ||
* @supported weapp | ||
*/ | ||
feedToken?: string | ||
|
||
/** 视频播放出错时触发 | ||
* @supported weapp | ||
*/ | ||
onError?: CommonEventFunction | ||
} | ||
|
||
/** | ||
* 小程序内嵌视频号视频组件,支持在小程序中播放视频号视频,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序相同主体或关联主体。 | ||
* @classification media | ||
* @supported weapp | ||
* @see https://developers.weixin.qq.com/miniprogram/dev/component/channel-video.html | ||
*/ | ||
declare const ChannelVideo: ComponentType<ChannelVideoProps> | ||
export { ChannelVideo, ChannelVideoProps } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.