UNPKG

test-nut-ui

Version:

<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>

26 lines (25 loc) 754 B
import React, { FunctionComponent } from 'react'; import { BasicComponent } from '../../utils/typings'; export type ColEventType = 'row' | 'col'; export interface ColProps extends BasicComponent { /** * 列元素宽度(共分为24份,例如设置一行3个,那么span值为8) * @default 24 */ span: string | number /** * 列元素偏移距离 * @default 0 */ offset: string | number gutter: string | number; space: string | number; grow: boolean; shrink: boolean; /** * 点击时触发 * @default - */ onClick: (e: any, type: ColEventType) => void } export declare const Col: FunctionComponent<Partial<ColProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;