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