import { type PamirsDepartment, type PamirsEmployee, PamirsEmployeeServiceToken } from '@oinone/kunlun-engine'; import type { OioTreeNode } from '@oinone/kunlun-shared'; import { SPI } from '@oinone/kunlun-spi'; import type { ComputedRef, Ref } from 'vue'; import { type ListInitOptions, type ListState, type ListStateLoadFunction, type ListStateProps, type TreeState, useListState } from '../../quick-utils'; export interface EmployeeListInstance { state: Ref>; filterData: ComputedRef[]>; checkedAll: ComputedRef; halfCheckedAll: ComputedRef; init(options?: Partial): Promise>; search(options?: Partial): Promise>; } export function useEmployeeList(props?: ListStateProps & { load?: ListStateLoadFunction }) { return useListState({ service: SPI.RawInstantiate(PamirsEmployeeServiceToken)!, props, load: props?.load }); }