UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

16 lines (15 loc) 490 B
import { Ref } from 'vue'; import { Props } from '../types'; /** * hook * * @param props 组件属性 * @param foldRef 实例 * @param contentRef 实例 * @param textRef 实例 */ export declare const useFold: (props: Props, foldRef: Ref<HTMLDivElement | null>, contentRef: Ref<HTMLSpanElement | null>, textRef: Ref<HTMLSpanElement | null>) => { localExpanded: Ref<boolean, boolean>; isClamped: import('vue').ComputedRef<boolean | "">; handleToggleExpand: () => void; };