mc-pro-ui
Version:
一个功能强大的 Vue 3 UI 组件库,提供完整的 TypeScript 支持
17 lines (16 loc) • 475 B
TypeScript
/**
* @description 表格多选数据操作
* @param {String} rowKey 当表格可以多选时,所指定的 id
* */
export declare function useSelection(rowKey?: string): {
isSelected: globalThis.Ref<boolean, boolean>;
selectedList: globalThis.Ref<{
[key: string]: any;
}[], {
[key: string]: any;
}[]>;
selectedListIds: globalThis.ComputedRef<string[]>;
selectionChange: (rowArr: {
[key: string]: any;
}[]) => void;
};