duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
21 lines (20 loc) • 845 B
TypeScript
import type { HTMLAttributes } from "svelte/elements";
import { DuoyunPickerElement } from '../elements/picker';
export * from '../elements/picker';
interface DyPickerProps extends HTMLAttributes<HTMLElement> {
placeholder?: DuoyunPickerElement['placeholder'];
disabled?: DuoyunPickerElement['disabled'];
borderless?: DuoyunPickerElement['borderless'];
selectmode?: DuoyunPickerElement['selectmode'];
fit?: DuoyunPickerElement['fit'];
multiple?: DuoyunPickerElement['multiple'];
active?: DuoyunPickerElement['active'];
options?: DuoyunPickerElement['options'];
value?: DuoyunPickerElement['value'];
'on:change'?: (event: CustomEvent<Parameters<DuoyunPickerElement['change']>[0]>) => void;
}
declare module "svelte/elements" {
interface SvelteHTMLElements {
'dy-picker': DyPickerProps;
}
}