import React, { CSSProperties } from 'react'; import XBaseLayout, { XBaseLayoutProps } from "../base/XBaseLayout"; export interface XCellProps extends XBaseLayoutProps { /** * 图标 */ icon?: React.ReactNode; /** * 名称 */ label?: any; /** * 名称宽度 */ labelWidth?: string; /** * 名称位置 */ labelMode?: "left" | "top"; /** * 组件最右边扩展节点 */ extraButtons?: React.ReactNode; /** * 帮助信息 */ help?: React.ReactNode; /** * 编辑组件样式 */ editorStyle?: CSSProperties; /** * 名称样式 */ labelStyle?: CSSProperties; /** * 是否必须 */ isRequired?: boolean; /** * 是否显示验证文本 */ showValidateText?: boolean; /** * 验证文本 */ validateText?: string; /** * 显示箭头 */ hasArrow?: boolean; /** * 右边显示内容 */ description?: React.ReactNode; /** * 点击事件 * @param e */ onClick?: (e: any) => void; checked?: boolean; isCheck?: boolean; onCheckChange?: (checked: boolean) => void; onLongClick?: (target: HTMLElement) => void; showBorderTop?: boolean; } /** * 手一个小的布局单元,有标题,有内容,有后缀。 * @name 单元块 * @groupName 网格 */ export default class XCell extends XBaseLayout { static ComponentName: string; static defaultProps: { lazyChildren: boolean; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: XCellProps); createLabelNode(): React.JSX.Element; render(): React.JSX.Element; }