import type { JsonFormSchema } from '../json-form'; import type { SpinProps } from '../spin'; export type ToolbarModelValue = Record; export interface ToolbarProps { schemas?: JsonFormSchema[]; loading?: boolean; spinProps?: SpinProps; showSearch?: boolean; showReset?: boolean; showActions?: boolean; searchText?: string; resetText?: string; expandText?: string; collapseText?: string; allowExpand?: boolean; defaultExpand?: boolean; itemHeight?: number; spanWidth?: number; itemMaxWidth?: string; showBorderBottom?: boolean; resetSkipKeys?: string[]; } export interface ToolbarEmits { search: [params: ToolbarModelValue]; reset: []; } export type ToolbarSearchEventHandler = (params: ToolbarModelValue) => void; export type ToolbarResetEventHandler = () => void;