UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

18 lines (17 loc) 604 B
import { type Atom } from "@cn-ui/reactive"; import { type Accessor, type JSXElement } from "solid-js"; export interface WaterFallProps<T> { /** * an array to get data from * @zh 数据源 */ each: T[] | Atom<T[]>; column?: number | Atom<number>; children: (data: T, index?: Accessor<number>) => JSXElement; colClass?: string; fallback?: () => JSXElement; } /** * 瀑布流布局组件库 */ export declare const WaterFall: <T>(props: import("@cn-ui/reactive").OriginComponentOutputType<WaterFallProps<T>, HTMLElement, string>) => import("solid-js").JSX.Element;