UNPKG

@cn-ui/core

Version:

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

27 lines (26 loc) 980 B
import { type JSXSlot } from "@cn-ui/reactive"; import type { SelectOptionsType } from "@cn-ui/reactive"; import { type PopoverProps } from "../popover"; export interface CommonGroupListConfig extends SelectOptionsType { /** @private */ level?: number; /** 在此之后显示分隔符号 */ withSeparate?: boolean; description?: JSXSlot; icon?: JSXSlot; onClick?: () => void; options?: CommonGroupListConfig[]; } export interface GroupListProps { options: CommonGroupListConfig[]; /** 列表模式 */ unfold?: boolean; /** @private 无边框模式*/ pure?: boolean; /** 赋予 fold popover 的初始状态 */ open?: ((item: CommonGroupListConfig) => boolean) | boolean; /** 从 0 开始的层级数 */ level?: number; trigger?: PopoverProps["trigger"]; } export declare const GroupList: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<GroupListProps, HTMLElement, string>>;