UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

32 lines (31 loc) 1.22 kB
import { type ShareSheetProps, type ShareSheetEmits } from '../share-sheet/common'; import { type DefaultProps } from '../config'; import { type TransitionHookCallbacks } from '../popup/common'; import type { ShareSheetItemProps } from '../share-sheet-item/common'; export interface ShareSheetAgentProps extends ShareSheetProps, TransitionHookCallbacks { id?: string; onClose?: () => void; onCancel?: () => void; onSelect?: (item: ShareSheetItemProps) => void; } export declare const defaultShareSheetAgentProps: () => DefaultProps<ShareSheetAgentProps>; export interface ShareSheetAgentEmits extends ShareSheetEmits { } export declare const imperativeName = "shareSheet"; export interface ShareSheetImperative { show(newProps: Record<string, any>): void; hide(): void; } export type ShareSheetOptions = ShareSheetAgentProps; export interface ShareSheetSimpleShowFunction { (options: ShareSheetOptions): void; } export interface ShareSheetShowFunction { (options?: ShareSheetOptions): void; } export type ShareSheetFunction = ShareSheetSimpleShowFunction & { hide: (id?: string) => void; hideAll: () => void; }; declare const shareSheet: ShareSheetFunction; export { shareSheet };