wangrong
2026-09-26 781539c6bea54b7689baf008e22fb25028729b4a
1
2
3
4
5
6
7
8
9
10
11
12
13
import { provide, ref } from 'vue';
import { useParent } from '/@/cool';
 
export function useViewGroup<T = ClViewGroup.Item>(options?: DeepPartial<ClViewGroup.Options<T>>) {
    const ViewGroup = ref<ClViewGroup.Ref<T>>();
    useParent('cl-view-group', ViewGroup);
 
    if (options) {
        provide('useViewGroup__options', options);
    }
 
    return { ViewGroup };
}