sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
30 lines (29 loc) • 823 B
TypeScript
import { type StyleValue } from 'vue';
export interface ActionSheetProps {
rootStyle?: StyleValue;
rootClass?: string;
description?: string;
itemList?: ActionSheetItem[];
cancel?: string;
visible?: boolean;
overlayClosable?: boolean;
beforeClose?: (type: 'close' | 'cancel' | 'select') => boolean | Promise<any>;
duration?: number;
}
export declare const defaultActionSheetProps: {
overlayClosable: boolean;
duration: number;
};
export interface ActionSheetEmits {
(e: 'update:visible', visible: boolean): void;
(e: 'close'): void;
(e: 'cancel'): void;
(e: 'select', item: ActionSheetItem, index: number): void;
}
export interface ActionSheetItem {
name?: string;
description?: string;
color?: string;
loading?: boolean;
disabled?: boolean;
}