sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
37 lines (36 loc) • 1.3 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
import { type TransitionHookEmits } from '../popup/common';
import { type ShareSheetItemProps } from '../share-sheet-item';
import { type UseShareSheetReturn } from './context';
export interface ShareSheetProps {
rootStyle?: StyleValue;
rootClass?: string;
itemList?: ShareSheetItemProps[] | ShareSheetItemProps[][];
title?: string;
description?: string;
cancel?: string;
showCancel?: boolean;
visible?: boolean;
overlayClosable?: boolean;
beforeClose?: (type: 'close' | 'cancel' | 'select') => boolean | Promise<any>;
duration?: number;
internalDefault?: number;
internalTitle?: number;
internalDescription?: number;
internalCancel?: number;
internalContext?: UseShareSheetReturn;
}
export declare const defaultShareSheetProps: () => DefaultProps<ShareSheetProps>;
export interface ShareSheetEmits extends TransitionHookEmits {
(e: 'update:visible', visible: boolean): void;
(e: 'close'): void;
(e: 'cancel'): void;
(e: 'select', item: ShareSheetItemProps): void;
}
export interface ShareSheetSlots {
default?(props?: any): any;
title?(props?: any): any;
description?(props?: any): any;
cancel?(props?: any): any;
}