UNPKG

1 kBTypeScriptView Raw
1import { RefObject } from '@mantou/gem/lib/decorators';
2import { GemElement } from '@mantou/gem/lib/element';
3import { StringList } from '../lib/types';
4import { DuoyunUseElement } from './use';
5import { RouteItem } from './route';
6import { MenuItem } from './menu';
7/**
8 * @customElement dy-button
9 * @attr type
10 * @attr color
11 * @attr small
12 * @attr disabled
13 */
14export declare class DuoyunButtonElement extends GemElement {
15 #private;
16 type: 'solid' | 'reverse';
17 color: StringList<'normal' | 'danger' | 'cancel'>;
18 small: boolean;
19 disabled: boolean;
20 dropdown?: MenuItem[] | null;
21 route?: RouteItem;
22 params?: Record<string, string>;
23 query?: Record<string, string>;
24 icon?: string | Element | DocumentFragment;
25 active: boolean;
26 dropdownRef: RefObject<DuoyunUseElement>;
27 static button: string;
28 static dropdown: string;
29 constructor();
30 render: () => import("lit-html/lib/template-result").TemplateResult;
31}
32//# sourceMappingURL=button.d.ts.map
\No newline at end of file