UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

10 lines (9 loc) 454 B
/** * 处理 CRUD 选中相关的逻辑 */ import React from 'react'; import type { CRUDProps } from './types'; export declare const useCrudSelection: (props: Pick<CRUDProps, "store" | "labelTpl" | "primaryField" | "labelField" | "keepItemSelectionOnPageChange" | "pickerMode" | "multiple" | "onSelect" | "pickClassStyle">) => { renderSelection: () => React.ReactNode; handleSelect: (items: Array<any>, unSelectedItems: Array<any>) => void; };