tdesign-mobile-vue
Version:
tdesign-mobile-vue
20 lines (19 loc) • 1.04 kB
TypeScript
import { CSSProperties, ComponentInternalInstance, Ref } from 'vue';
import { SwipeInitData } from './swipe-cell';
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 | ((h: typeof import("vue").h) => import("@/index-lib").SlotReturnValue), onClick?: () => void) => void;
handleSureClick: Ref<() => void, () => void>;
};