Skip to content

Commit

Permalink
refactor(types): sync components types (#248)
Browse files Browse the repository at this point in the history
* refactor(types): sync components types

* Update video.md

* Update video.md

* Update Video.d.ts

---------

Co-authored-by: ZakaryCode <[email protected]>
Co-authored-by: Zakary <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2024
1 parent 53bb27f commit fcf1174
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/apis/base/performance/preloadAssets.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sidebar_label: preloadAssets

| 参数 | 类型 | 必填 | 说明 |
| --- | --- | :---: | --- |
| data | `AssetsObjectType[]` || |
| data | `AssetsObject[]` || |
| complete | `(res: TaroGeneral.CallbackResult) => void` || 接口调用结束的回调函数(调用成功、失败都会执行) |
| fail | `(res: TaroGeneral.CallbackResult) => void` || 接口调用失败的回调函数 |
| success | `(res: TaroGeneral.CallbackResult) => void` || 接口调用成功的回调函数 |
2 changes: 1 addition & 1 deletion docs/components/viewContainer/swiper.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class App extends Component {
| SwiperProps.indicatorActiveColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| SwiperProps.autoplay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| SwiperProps.current | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| SwiperProps.currentItemId | (deprecated) | ✔️ | | ✔️ | ✔️ | ✔️ | | | |
| SwiperProps.currentItemId | (deprecated) | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | |
| SwiperProps.interval | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| SwiperProps.duration | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| SwiperProps.circular | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/Swiper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ interface SwiperProps extends StandardProps {
*/
current?: number
/** 当前所在滑块的 item-id ,不能与 current 被同时指定
* @default ""
* @supported swan, tt, qq, jd
* @supported swan, tt, qq, jd, h5, harmony_hybrid
* @weapp deprecated
* @default ""
*/
currentItemId?: string
/** 自动切换时间间隔
Expand Down
2 changes: 1 addition & 1 deletion packages/taro/types/api/base/performance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ declare module '../../index' {
src: string
}
interface Option {
data: AssetsObjectType[]
data: AssetsObject[]
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
complete?: (res: TaroGeneral.CallbackResult) => void
/** 接口调用失败的回调函数 */
Expand Down

0 comments on commit fcf1174

Please sign in to comment.