@doubao-dev/framework 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.ts +21 -1
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { ListSnapEvent } from '@lynx-js/types';
|
|
|
29
29
|
import { ListSnapInfo } from '@lynx-js/types';
|
|
30
30
|
import type { LoadEvent } from '@lynx-js/types';
|
|
31
31
|
import type { NodesRef } from '@lynx-js/types';
|
|
32
|
+
import type { OpenAppResult } from '@byted-doubao-apps/bridge-api';
|
|
32
33
|
import type { ReactElement } from '@byted-lynx/react';
|
|
33
34
|
import type { ReactElement as ReactElement_2 } from 'react';
|
|
34
35
|
import type { ReactNode } from 'react';
|
|
@@ -210,7 +211,11 @@ export declare interface ButtonProps {
|
|
|
210
211
|
/**
|
|
211
212
|
* 开放能力类型
|
|
212
213
|
*/
|
|
213
|
-
openType?: 'getPhoneNumber' | 'agreePrivacyAuthorization' | 'agreePrivacyAuthorization|getPhoneNumber' | 'openSetting';
|
|
214
|
+
openType?: 'getPhoneNumber' | 'agreePrivacyAuthorization' | 'agreePrivacyAuthorization|getPhoneNumber' | 'openSetting' | 'launchApp';
|
|
215
|
+
/**
|
|
216
|
+
* 跳转外部应用的 deeplink URL,只在 openType="launchApp" 时有效。
|
|
217
|
+
*/
|
|
218
|
+
launchAppUrl?: string;
|
|
214
219
|
/**
|
|
215
220
|
* 点击回调函数
|
|
216
221
|
* @eventProperty
|
|
@@ -251,6 +256,16 @@ export declare interface ButtonProps {
|
|
|
251
256
|
* @eventProperty
|
|
252
257
|
*/
|
|
253
258
|
onOpenSetting?: (event: OpenSettingEvent) => void;
|
|
259
|
+
/**
|
|
260
|
+
* 跳转外部应用回调,只在 openType="launchApp" 时有效。
|
|
261
|
+
*
|
|
262
|
+
* 仅在跳转成功时返回跳转结果。
|
|
263
|
+
*/
|
|
264
|
+
onLaunchApp?: (result: LaunchAppResult) => void;
|
|
265
|
+
/**
|
|
266
|
+
* 跳转外部应用失败回调,只在 openType="launchApp" 时有效。
|
|
267
|
+
*/
|
|
268
|
+
onLaunchAppError?: (error: unknown) => void;
|
|
254
269
|
}
|
|
255
270
|
|
|
256
271
|
declare type ButtonSize = 'default' | 'medium' | 'mini';
|
|
@@ -1009,6 +1024,11 @@ export declare type LatLng = {
|
|
|
1009
1024
|
longitude: number;
|
|
1010
1025
|
};
|
|
1011
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* Button 通过 `openType="launchApp"` 跳转外部应用后的回调结果。
|
|
1029
|
+
*/
|
|
1030
|
+
export declare type LaunchAppResult = OpenAppResult;
|
|
1031
|
+
|
|
1012
1032
|
export { ListAttachedCell }
|
|
1013
1033
|
|
|
1014
1034
|
export { ListItemInfo }
|