UNPKG

antd-mobile-taro-ui

Version:

以antd-mobile为设计标准,基于taro框架的微信小程序组件库

30 lines (29 loc) 991 B
import React, { FC } from 'react'; import { NativeProps } from 'antd-mobile/es/utils/native-props'; import { ITouchEvent } from '@tarojs/components'; export declare type CollapsePanelProps = { key: string; title: React.ReactNode; disabled?: boolean; forceRender?: boolean; destroyOnClose?: boolean; onClick?: (event: ITouchEvent) => void; arrow?: React.ReactNode | ((active: boolean) => React.ReactNode); children?: React.ReactNode; } & NativeProps; export declare const CollapsePanel: FC<CollapsePanelProps>; declare type ValueProps<T> = { activeKey?: T; defaultActiveKey?: T; onChange?: (activeKey: T) => void; arrow?: React.ReactNode | ((active: boolean) => React.ReactNode); }; export declare type CollapseProps = (({ accordion?: false; } & ValueProps<string[]>) | ({ accordion: true; } & ValueProps<string | null>)) & { children?: React.ReactNode; } & NativeProps; export declare const Collapse: FC<CollapseProps>; export {};