UNPKG

@cn-ui/core

Version:

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

14 lines (13 loc) 736 B
import { type JSXSlot } from "@cn-ui/reactive"; import type { SelectOptionsType } from "@cn-ui/reactive"; import { type Accessor, type JSXElement } from "solid-js"; export interface SelectPanelProps { /** 禁用点击选中状态 取消选择 */ disallowCancelClick?: boolean; options: SelectOptionsType[]; onSelected?: (item: SelectOptionsType, state: boolean) => void; selectedIconSlot?: JSXSlot<SelectOptionsType>; children?: (item: SelectOptionsType, index: Accessor<number>) => JSXElement; } /** 可选列表面板,需要依赖 useSelect 环境 */ export declare const SelectPanel: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<SelectPanelProps, HTMLDivElement, null>>;