@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
28 lines (27 loc) • 959 B
TypeScript
import { type JSX, type JSXElement } from "solid-js";
import "./style.css";
export interface SplitterProps extends JSX.HTMLAttributes<HTMLElement> {
/**
* @zh 初始每个部分的百分比占比
*/
sizes?: number[];
/** @zh 每个部分的最小大小 */
minSize?: number | number[];
/** @zh 每个部分的最大大小 */
maxSize?: number | number[];
expandToMin?: boolean;
/** @zh 分割部分的大小 */
gutterSize?: number;
/** @zh 分割部分的对齐方式 */
gutterAlign?: "center" | "start" | "end";
/** @zh 自动缩回的距离 */
snapOffset?: number | number[];
dragInterval?: number;
cursor?: string;
children: JSXElement;
vertical?: boolean;
}
/**
* @zh 分割面板,使用 split.js 作为基础进行封装
*/
export declare const Splitter: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<SplitterProps, HTMLElement, string>>;