mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
44 lines (43 loc) • 1.34 kB
TypeScript
import React from 'react';
import { SpaceProps } from 'antd-mobile';
import { BaseDictionaryProps, EnumData } from './BaseDictionary';
export type BizDictionaryEnumData<ValueType = any> = EnumData<ValueType>;
export interface BizDictionaryProps<ValueType = any> extends Omit<BaseDictionaryProps<ValueType>, 'value'> {
/**
* @description 当前值。
*/
value: ValueType | ValueType[];
/**
* @description 设置拆分。仅在多个枚举时生效。
* @default '、'
*/
split?: React.ReactNode;
/**
* @description 间距。仅在多个枚举时生效。
*/
gap?: string;
/**
* @description 容器样式。
* @deprecated
*/
wrapperStyle?: React.CSSProperties;
/**
* @description 容器类名。
* @deprecated
*/
wrapperClassName?: string;
/**
* @description 间距配置。仅在多个枚举时生效。
*/
spaceProps?: SpaceProps;
}
declare const BizDictionary: React.FC<BizDictionaryProps>;
/**
* @deprecated 即将废弃,请使用 `BizDictionary` 替代。
*/
export declare const Dictionary: React.FC<BizDictionaryProps<any>>;
/**
* @deprecated 即将废弃,请使用 `BizDictionaryProps` 替代。
*/
export type DictionaryProps<ValueType = any> = BizDictionaryProps<ValueType>;
export default BizDictionary;