UNPKG

mobile-more

Version:

基于 antd-mobile v5 扩展移动端 UI 组件

22 lines (21 loc) 870 B
import { TextAreaProps } from 'antd-mobile'; import React from 'react'; import { BizCheckListPopupProps } from '../../BizCheckListPopup'; export type { BizCheckListPopupProps }; type Option = Required<BizCheckListPopupProps>['options'][0]; export interface SuperCheckListProps extends Pick<TextAreaProps, 'placeholder'>, BizCheckListPopupProps { /** * @description 默认渲染当前值的分隔符,仅在 `multiple=true` 时生效。 * @default ', ' */ separator?: string; /** * @description 自定义渲染当前选中值。 * @param value 已选择项的值。 * @param items 已选择项。 * @returns */ renderCurrentValue?: (value: string | string[] | undefined, items: (Option | null)[]) => string | undefined; } declare const SuperCheckList: React.FC<SuperCheckListProps>; export default SuperCheckList;