UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

30 lines (29 loc) 1.46 kB
import type { HTMLAttributes } from "svelte/elements"; import { DuoyunDrawerElement } from '../elements/drawer'; export * from '../elements/drawer'; interface DyDrawerProps extends HTMLAttributes<HTMLElement> { open?: DuoyunDrawerElement['open']; customize?: DuoyunDrawerElement['customize']; maskClosable?: DuoyunDrawerElement['maskClosable']; okText?: DuoyunDrawerElement['okText']; cancelText?: DuoyunDrawerElement['cancelText']; disableDefaultCancelBtn?: DuoyunDrawerElement['disableDefaultCancelBtn']; disableDefaultOKBtn?: DuoyunDrawerElement['disableDefaultOKBtn']; dangerDefaultOkBtn?: DuoyunDrawerElement['dangerDefaultOkBtn']; header?: DuoyunDrawerElement['header']; body?: DuoyunDrawerElement['body']; 'on:close'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['close']>[0]>) => void; 'on:ok'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['ok']>[0]>) => void; 'on:maskclick'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['maskclick']>[0]>) => void; openAnimation?: DuoyunDrawerElement['openAnimation']; closeAnimation?: DuoyunDrawerElement['closeAnimation']; closing?: DuoyunDrawerElement['closing']; headerSlot?: DuoyunDrawerElement['headerSlot']; bodySlot?: DuoyunDrawerElement['bodySlot']; footerSlot?: DuoyunDrawerElement['footerSlot']; } declare module "svelte/elements" { interface SvelteHTMLElements { 'dy-drawer': DyDrawerProps; } }