Skip to content

Commit

Permalink
refactor(types): sync components types
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored May 4, 2024
1 parent b00546d commit 872b196
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/components/media/video.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | ✔️ | | | ✔️ | ✔️ | | ✔️ | | | ✔️ |
Expand Down
2 changes: 1 addition & 1 deletion docs/components/skyline/grid-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: GridBuilder
sidebar_label: GridBuilder
---

网格构造器,仅支持作为 `<scroll-view type="custom">` 模式的直接子节点,仅 Skyline 支持。
网格构造器,仅支持作为 <scroll-view type="custom"> 模式的直接子节点,仅 Skyline 支持。

支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform icon_platform--not-support" width="25px"/>

Expand Down
2 changes: 1 addition & 1 deletion docs/components/skyline/list-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ListBuilder
sidebar_label: ListBuilder
---

列表构造器,仅支持作为 `<scroll-view type="custom">` 模式的直接子节点,仅 Skyline 支持。
列表构造器,仅支持作为 <scroll-view type="custom"> 模式的直接子节点,仅 Skyline 支持。

支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform icon_platform--not-support" width="25px"/>

Expand Down
2 changes: 1 addition & 1 deletion docs/components/skyline/nested-scroll-body.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: NestedScrollBody
---

嵌套 scroll-view 场景中属于里层 scroll-view 的节点,
仅支持作为 `<scroll-view type="nested">` 模式的直接子节点。
仅支持作为 <scroll-view type="nested"> 模式的直接子节点。
不支持复数子节点,渲染时会取其第一个子节点来渲染。具体用法可参考 scroll-view

支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform icon_platform--not-support" width="25px"/>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/skyline/nested-scroll-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: NestedScrollHeader
---

嵌套 scroll-view 场景中属于外层 scroll-view 的节点,
仅支持作为 `<scroll-view type="nested">` 模式的直接子节点。
仅支持作为 <scroll-view type="nested"> 模式的直接子节点。
不支持复数子节点,渲染时会取其第一个子节点来渲染。具体用法可参考 scroll-view

支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform icon_platform--not-support" width="25px"/>
Expand Down
6 changes: 3 additions & 3 deletions docs/components/skyline/open-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ sidebar_label: OpenContainer
---

容器转场动画组件
点击 OpenContainer 组件,当使用 wx.navigateTo 跳转下一页面时,对其子节点和下一个页面进行过渡。
下个页面从 OpenContainer 所在位置大小渐显放大,同时 OpenContainer 内容渐隐,过渡效果包含背景色、圆角和阴影。
源页面 OpenContainer 为 closed 状态,转场动画后为 open 状态。
点击 <open-container> 组件,当使用 wx.navigateTo 跳转下一页面时,对其子节点和下一个页面进行过渡。
下个页面从 <open-container> 所在位置大小渐显放大,同时 <open-container> 内容渐隐,过渡效果包含背景色、圆角和阴影。
源页面 <open-container> 为 closed 状态,转场动画后为 open 状态。

支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform icon_platform--not-support" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform icon_platform--not-support" width="25px"/>

Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/GridBuilder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface GridBuilderProps extends StandardProps {
}

/**
* 网格构造器,仅支持作为 `<scroll-view type="custom">` 模式的直接子节点,仅 Skyline 支持。
* 网格构造器,仅支持作为 <scroll-view type="custom"> 模式的直接子节点,仅 Skyline 支持。
* @classification skyline
* @supported weapp
* @see https://developers.weixin.qq.com/miniprogram/dev/component/grid-builder.html
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/ListBuilder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface ListBuilderProps extends StandardProps {
}

/**
* 列表构造器,仅支持作为 `<scroll-view type="custom">` 模式的直接子节点,仅 Skyline 支持。
* 列表构造器,仅支持作为 <scroll-view type="custom"> 模式的直接子节点,仅 Skyline 支持。
* @classification skyline
* @supported weapp
* @see https://developers.weixin.qq.com/miniprogram/dev/component/list-builder.html
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/NestedScrollBody.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface NestedScrollBodyProps extends StandardProps {}

/**
* 嵌套 scroll-view 场景中属于里层 scroll-view 的节点,
* 仅支持作为 `<scroll-view type="nested">` 模式的直接子节点。
* 仅支持作为 <scroll-view type="nested"> 模式的直接子节点。
* 不支持复数子节点,渲染时会取其第一个子节点来渲染。具体用法可参考 scroll-view
* @classification skyline
* @supported weapp
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/NestedScrollHeader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface NestedScrollHeaderProps extends StandardProps {}

/**
* 嵌套 scroll-view 场景中属于外层 scroll-view 的节点,
* 仅支持作为 `<scroll-view type="nested">` 模式的直接子节点。
* 仅支持作为 <scroll-view type="nested"> 模式的直接子节点。
* 不支持复数子节点,渲染时会取其第一个子节点来渲染。具体用法可参考 scroll-view
* @classification skyline
* @supported weapp
Expand Down
6 changes: 3 additions & 3 deletions packages/taro-components/types/OpenContainer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ interface OpenContainerProps extends StandardProps {

/**
* 容器转场动画组件
* 点击 OpenContainer 组件,当使用 wx.navigateTo 跳转下一页面时,对其子节点和下一个页面进行过渡。
* 下个页面从 OpenContainer 所在位置大小渐显放大,同时 OpenContainer 内容渐隐,过渡效果包含背景色、圆角和阴影。
* 源页面 OpenContainer 为 closed 状态,转场动画后为 open 状态。
* 点击 <open-container> 组件,当使用 wx.navigateTo 跳转下一页面时,对其子节点和下一个页面进行过渡。
* 下个页面从 <open-container> 所在位置大小渐显放大,同时 <open-container> 内容渐隐,过渡效果包含背景色、圆角和阴影。
* 源页面 <open-container> 为 closed 状态,转场动画后为 open 状态。
* @classification skyline
* @supported weapp
* @see https://developers.weixin.qq.com/miniprogram/dev/component/open-container.html
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Video.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ interface VideoProps extends StandardProps {
onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
/** 当视频进入和退出全屏时触发
*
* @supported alipay, h5, rn, harmony_hybrid
* @supported h5, rn, harmony_hybrid
*/
onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
/** 视频出现缓冲时触发
Expand Down

0 comments on commit 872b196

Please sign in to comment.