gtht-miniapp-sdk
Version:
gtht-miniapp-sdk 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
34 lines (33 loc) • 977 B
TypeScript
import { type StyleValue } from 'vue';
import { type TransitionHookEmits } from '../popup/common';
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 extends TransitionHookEmits {
(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;
}