mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
26 lines (25 loc) • 1.22 kB
TypeScript
import * as React from 'react';
import { BizFormItemProps } from '../FormItem';
import { SuperCheckListProps, BizCheckListPopupProps } from './SuperCheckList';
export type BizFormItemCheckListActionType = {
showPopup: () => void;
hidePopup: () => void;
togglePopup: () => void;
};
export interface BizFormItemCheckListProps extends Omit<BizFormItemProps, 'children'>, Pick<SuperCheckListProps, 'placeholder' | 'checkListProps' | 'searchBarProps' | 'emptyProps' | 'title' | 'options' | 'fieldNames' | 'loading' | 'renderCurrentValue' | 'multiple' | 'radioMode' | 'separator' | 'showSearch'> {
/**
* @description 只读。
*/
readOnly?: boolean;
/**
* @description 透传 BizCheckListPopup 组件属性。
* @see {@link https://mobile-more.vercel.app/#/components/biz-check-list-popup#api|BizCheckListPopupProps}
*/
checkListPopupProps?: Partial<BizCheckListPopupProps>;
/**
* @description 常用自定义操作 `hidePopup` `showPopup` `togglePopup` 。
*/
actionRef?: React.MutableRefObject<BizFormItemCheckListActionType | undefined>;
}
declare const BizFormItemCheckList: React.FC<BizFormItemCheckListProps>;
export default BizFormItemCheckList;