UNPKG

tdesign-mobile-vue

Version:
22 lines (21 loc) 1.06 kB
import { CSSProperties, ComponentInternalInstance, Ref } from 'vue'; import { SwipeInitData } from './swipe-cell'; import { SwipeActionItem } from './type'; import { TNode } from '../common'; export declare function useSureConfirm(instance: ComponentInternalInstance | null, initData: SwipeInitData): { sureRightRef: Ref<HTMLElement, HTMLElement>; sureLeftRef: Ref<HTMLElement, HTMLElement>; showSureRight: Ref<boolean, boolean>; showSureLeft: Ref<boolean, boolean>; sureMarginRight: Ref<number, number>; sureMarginLeft: Ref<number, number>; closedSure: Ref<boolean, boolean>; sureRightContent: Ref<any, any>; sureLeftContent: Ref<any, any>; sureLeftBgStyle: import("vue").ComputedRef<CSSProperties>; sureRightBgStyle: import("vue").ComputedRef<CSSProperties>; sureRightStyle: import("vue").ComputedRef<CSSProperties>; sureLeftStyle: import("vue").ComputedRef<CSSProperties>; showSure: (sure: string | TNode, onClick?: SwipeActionItem['onClick']) => void; handleSureClick: Ref<() => void, () => void>; };