UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

33 lines (32 loc) 1.31 kB
import { type ActionSheetProps, type ActionSheetEmits, type ActionSheetItemProps, type ActionSheetSlots } from '../action-sheet/common'; import { type DefaultProps } from '../config'; import { type TransitionHookCallbacks } from '../popup/common'; export interface ActionSheetAgentProps extends ActionSheetProps, TransitionHookCallbacks { id?: string; onClose?: () => void; onCancel?: () => void; onSelect?: (item: ActionSheetItemProps, index: number) => void; } export declare const defaultActionSheetAgentProps: () => DefaultProps<ActionSheetAgentProps>; export interface ActionSheetAgentSlots extends ActionSheetSlots { } export interface ActionSheetAgentEmits extends ActionSheetEmits { } export declare const imperativeName = "actionSheet"; export interface ActionSheetImperative { show(newProps: Record<string, any>): void; hide(): void; } export type ActionSheetOptions = ActionSheetAgentProps; export interface ActionSheetSimpleShowFunction { (options: ActionSheetOptions): void; } export interface ActionSheetShowFunction { (options?: ActionSheetOptions): void; } export type ActionSheetFunction = ActionSheetSimpleShowFunction & { hide: (id?: string) => void; hideAll: () => void; }; declare const actionSheet: ActionSheetFunction; export { actionSheet };