sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
33 lines (32 loc) • 889 B
TypeScript
import { type StyleValue } from 'vue';
export interface ShareSheetProps {
rootStyle?: StyleValue;
rootClass?: string;
itemList?: ShareSheetItem[] | ShareSheetItem[][];
title?: string;
description?: string;
cancel?: string;
visible?: boolean;
overlayClosable?: boolean;
beforeClose?: (type: 'close' | 'cancel' | 'select') => boolean | Promise<any>;
duration?: number;
}
export declare const defaultShareSheetProps: {
overlayClosable: boolean;
duration: number;
};
export interface ShareSheetEmits {
(e: 'update:visible', visible: boolean): void;
(e: 'close'): void;
(e: 'cancel'): void;
(e: 'select', item: ShareSheetItem): void;
}
export interface ShareSheetItem {
name?: string;
description?: string;
color?: string;
background?: string;
icon?: string;
iconFamily?: string;
disabled?: boolean;
}