@dcloudio/types
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "@dcloudio/types", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "uni-app types", | ||
@@ -5,0 +5,0 @@ "typings": "index.d.ts", |
@@ -168,2 +168,10 @@ declare namespace App { | ||
/** | ||
* 未处理的 Promise 拒绝事件监听函数 | ||
*/ | ||
onUnhandledRejection?(options: UniApp.OnUnhandledRejectionCallbackResult): void; | ||
/** | ||
* 监听系统主题变化 | ||
*/ | ||
onThemeChange?(options: UniApp.OnThemeChangeCallbackResult): void; | ||
/** | ||
* 监听 nvue 页面消息 | ||
@@ -170,0 +178,0 @@ * |
@@ -17,2 +17,17 @@ declare namespace Page { | ||
interface ShareTimelineContent { | ||
/** | ||
* 自定义标题。默认值:当前小程序名称 | ||
*/ | ||
title?: string; | ||
/** | ||
* 自定义页面路径中携带的参数 | ||
*/ | ||
path?: string; | ||
/** | ||
* 自定义图片路径,可以是本地文件或者网络图片。支持 PNG 及 JPG,显示图片长宽比是 1:1。 | ||
*/ | ||
imageUrl?: string; | ||
} | ||
interface PageScrollOption { | ||
@@ -38,3 +53,3 @@ /** | ||
/** | ||
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的url | ||
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url | ||
*/ | ||
@@ -44,2 +59,24 @@ webViewUrl?: string; | ||
interface AddToFavoritesOption { | ||
/** | ||
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url | ||
*/ | ||
webviewUrl: string | ||
} | ||
interface CustomFavoritesContent { | ||
/** | ||
* 自定义标题,默认值:页面标题或账号名称 | ||
*/ | ||
title?: string; | ||
/** | ||
* 自定义 query 字段 | ||
*/ | ||
path?: string; | ||
/** | ||
* 自定义图片,显示图片长宽比为 1:1 | ||
*/ | ||
imageUrl?: string; | ||
} | ||
interface TabItemTapOption { | ||
@@ -143,2 +180,14 @@ /** | ||
/** | ||
* 用户点击右上角转发到朋友圈 | ||
* | ||
* 监听右上角菜单“分享到朋友圈”按钮的行为,并自定义发享内容。 | ||
*/ | ||
onShareTimeline?(): ShareTimelineContent; | ||
/** | ||
* 用户点击右上角收藏 | ||
* | ||
* 监听用户点击右上角菜单“收藏”按钮的行为,并自定义收藏内容。 | ||
*/ | ||
onAddToFavorites?(options: AddToFavoritesOption): CustomFavoritesContent; | ||
/** | ||
* 页面滚动触发事件的处理函数 | ||
@@ -145,0 +194,0 @@ * |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1222663
29970