@wufengteam/wform
Version:
@wufengteam/wform
35 lines (34 loc) • 883 B
TypeScript
import React from 'react';
import type { FC } from 'react';
import type { FormItemProps } from 'antd';
import type { ThemeType } from '@ant-design/compatible/lib/icon';
import './index.less';
export interface FieldItemProps extends Omit<FormItemProps, 'status'> {
/**
* 字段属性 read--只读 hide--隐藏 addHide--新增时隐藏
*/
fieldAttr?: string[];
/**
* 平台
*/
platform?: 'h5' | 'pc';
/**
* 渲染类型 editor 配置态渲染
*/
renderType?: 'editor';
/**
* 组件名称
*/
_compname?: string;
[key: string]: any;
titleTip?: 'text' | 'notext';
tipLocation?: 'after' | 'before';
tipContent?: string;
tipIcon?: {
theme: ThemeType;
type: string;
};
children: React.ReactElement;
}
declare const FieldItem: FC<FieldItemProps>;
export default FieldItem;