@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
31 lines (30 loc) • 1.3 kB
TypeScript
import { default as React, ForwardRefRenderFunction } from 'react';
import { AddressList } from './types';
import { CascaderOption, CascaderOptionKey, CascaderProps, CascaderValue } from '../cascader/index';
type AddressRef = {
open: () => void;
close: () => void;
};
export interface AddressProps extends CascaderProps {
visible: boolean;
defaultVisible: boolean;
value?: CascaderValue;
defaultValue?: CascaderValue;
type: string;
options: CascaderOption[];
optionKey: CascaderOptionKey;
format: Record<string, string | number | null>;
custom: boolean | string;
existList: AddressList[];
height: string | number;
defaultIcon: React.ReactNode;
selectIcon: React.ReactNode;
backIcon: React.ReactNode;
onSwitch?: (data: {
type: string;
}) => void;
onExistSelect?: (data: AddressList) => void;
}
export declare const InternalAddress: ForwardRefRenderFunction<AddressRef, Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'onLoad' | 'title'>>;
export declare const Address: React.ForwardRefExoticComponent<Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "defaultValue" | "onChange" | "onLoad"> & React.RefAttributes<AddressRef>>;
export {};