element-plus
Version:
A Component Library for Vue 3
14 lines (13 loc) • 866 B
TypeScript
import type { SetupContext } from 'vue';
import type { CheckboxValueType } from 'element-plus/es/components/checkbox';
import type { TransferPanelEmits, TransferPanelProps, TransferPanelState } from '../transfer-panel';
export declare const useCheck: (props: Required<Pick<TransferPanelProps, "data" | "format" | "defaultChecked">> & {
filterMethod: TransferPanelProps["filterMethod"];
}, panelState: TransferPanelState, emit: SetupContext<TransferPanelEmits>["emit"]) => {
filteredData: import("vue").ComputedRef<import("../transfer").TransferDataItem[]>;
checkableData: import("vue").ComputedRef<import("../transfer").TransferDataItem[]>;
checkedSummary: import("vue").ComputedRef<string>;
isIndeterminate: import("vue").ComputedRef<boolean>;
updateAllChecked: () => void;
handleAllCheckedChange: (value: CheckboxValueType) => void;
};