From b2d88c7120ec50a7eeb9da8c962e3e9b41a5883b Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Sat, 27 Jan 2024 01:46:43 +0000 Subject: [PATCH 1/4] refactor(types): sync components types --- docs/components/media/video.md | 2 +- packages/taro-components/types/Video.d.ts | 2 +- packages/taro/types/api/swan/bookshelf.d.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/components/media/video.md b/docs/components/media/video.md index d52b65f7fe49..e4ac14f59412 100755 --- a/docs/components/media/video.md +++ b/docs/components/media/video.md @@ -242,7 +242,7 @@ export default class PageView extends Component { | VideoProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | -| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | | +| VideoProps.onFullscreenChange | | | | | | | ✔️ | ✔️ | | | VideoProps.onWaiting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | VideoProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onProgress | ✔️ | | | ✔️ | ✔️ | | ✔️ | | | diff --git a/packages/taro-components/types/Video.d.ts b/packages/taro-components/types/Video.d.ts index a6d4e77022fa..7cb6276134d9 100644 --- a/packages/taro-components/types/Video.d.ts +++ b/packages/taro-components/types/Video.d.ts @@ -315,7 +315,7 @@ interface VideoProps extends StandardProps { onTimeUpdate?: CommonEventFunction /** 当视频进入和退出全屏时触发 * - * @supported alipay, h5, rn, harmony_hybrid + * @supported h5, rn, harmony_hybrid */ onFullscreenChange?: CommonEventFunction /** 视频出现缓冲时触发 diff --git a/packages/taro/types/api/swan/bookshelf.d.ts b/packages/taro/types/api/swan/bookshelf.d.ts index 258ede2e6ce0..ae3e6343f5f4 100644 --- a/packages/taro/types/api/swan/bookshelf.d.ts +++ b/packages/taro/types/api/swan/bookshelf.d.ts @@ -43,7 +43,7 @@ declare module '../../index' { 1 } } - + namespace deleteBookshelf { interface Option { /** 要删除的内容分类 */ @@ -115,13 +115,13 @@ declare module '../../index' { 1 } } - + namespace updateBookshelfReadTime { interface Option { /** 添加的内容分类 */ category: keyof Category | string /** 要更新内容的 id;注释:contentId 为内容 id,内容的唯一标识,自定义,最长 22 字符(不能含有空格、中文字符) */ - contentIds: string[] + contentIds: string[] /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: (res: TaroGeneral.CallbackResult) => void /** 接口调用失败的回调函数 */ @@ -278,7 +278,7 @@ declare module '../../index' { * @see https://smartprogram.baidu.com/docs/develop/api/open/swan-queryBookshelf/ */ updateBookshelfReadTime(option: updateBookshelfReadTime.Option): void - + /** 跳转到宿主书架 * @supported swan * @swan (需宿主支持书架入口) @@ -304,4 +304,4 @@ declare module '../../index' { */ navigateToBookshelf(option: navigateToBookshelf.Option): void } -} \ No newline at end of file +} From cb8703f699059a7e27bc5fdfaf4d01721639b9a2 Mon Sep 17 00:00:00 2001 From: Zakary Date: Sat, 27 Jan 2024 17:26:06 +0800 Subject: [PATCH 2/4] Update Video.d.ts --- packages/taro-components/types/Video.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-components/types/Video.d.ts b/packages/taro-components/types/Video.d.ts index 7cb6276134d9..a6d4e77022fa 100644 --- a/packages/taro-components/types/Video.d.ts +++ b/packages/taro-components/types/Video.d.ts @@ -315,7 +315,7 @@ interface VideoProps extends StandardProps { onTimeUpdate?: CommonEventFunction /** 当视频进入和退出全屏时触发 * - * @supported h5, rn, harmony_hybrid + * @supported alipay, h5, rn, harmony_hybrid */ onFullscreenChange?: CommonEventFunction /** 视频出现缓冲时触发 From 02cb2e0c6610d3cd838747dde15c530b06b37191 Mon Sep 17 00:00:00 2001 From: Zakary Date: Sat, 27 Jan 2024 17:26:33 +0800 Subject: [PATCH 3/4] Update video.md --- docs/components/media/video.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/media/video.md b/docs/components/media/video.md index e4ac14f59412..2b5a6b766ddd 100755 --- a/docs/components/media/video.md +++ b/docs/components/media/video.md @@ -242,7 +242,7 @@ export default class PageView extends Component { | VideoProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | -| VideoProps.onFullscreenChange | | | | | | | ✔️ | ✔️ | | +| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | | | VideoProps.onWaiting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | VideoProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onProgress | ✔️ | | | ✔️ | ✔️ | | ✔️ | | | From b6d780b6052524500b50a21b57a81ee63c228fe8 Mon Sep 17 00:00:00 2001 From: Zakary Date: Sat, 27 Jan 2024 17:27:13 +0800 Subject: [PATCH 4/4] Update video.md --- docs/components/media/video.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/media/video.md b/docs/components/media/video.md index 2b5a6b766ddd..d52b65f7fe49 100755 --- a/docs/components/media/video.md +++ b/docs/components/media/video.md @@ -242,7 +242,7 @@ export default class PageView extends Component { | VideoProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | -| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | | +| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | | | VideoProps.onWaiting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | VideoProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | VideoProps.onProgress | ✔️ | | | ✔️ | ✔️ | | ✔️ | | |