@dcodegroup-au/dsg-vue
Version:
Front-end Vue/Tailwind DSG for UntitledUI.
59 lines (58 loc) • 2.24 kB
TypeScript
import { DsgCheckboxModelType } from './DsgCheckbox.vue';
/**
* ------------------------------------------------
* # Setup: Props
* ------------------------------------------------
*/
export type DsgTagSize = "sm" | "md" | "lg";
export interface DsgTagProps {
label?: string;
size?: DsgTagSize;
hasClose?: boolean;
tagCount?: number | null;
avatarUri?: string;
hasCheckbox?: boolean;
dotHex?: string | null;
destroyOnClose?: boolean;
value?: any;
classes?: string;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
'dsg-tag--label'?(_: {}): any;
};
refs: {
dsgTag: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<DsgTagProps, {
setTagCount: (value: number) => void;
setValue: (value: number) => void;
getValue: () => any;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"before-hide": (el: HTMLDivElement) => any;
"after-hide": (el: HTMLDivElement) => any;
"before-destroy": (el: HTMLDivElement) => any;
"after-destroy": () => any;
"before-checked": (oldValue: DsgCheckboxModelType, newValue: DsgCheckboxModelType) => any;
"after-checked": (newValue: DsgCheckboxModelType) => any;
}, string, import('vue').PublicProps, Readonly<DsgTagProps> & Readonly<{
"onBefore-hide"?: ((el: HTMLDivElement) => any) | undefined;
"onAfter-hide"?: ((el: HTMLDivElement) => any) | undefined;
"onBefore-destroy"?: ((el: HTMLDivElement) => any) | undefined;
"onAfter-destroy"?: (() => any) | undefined;
"onBefore-checked"?: ((oldValue: DsgCheckboxModelType, newValue: DsgCheckboxModelType) => any) | undefined;
"onAfter-checked"?: ((newValue: DsgCheckboxModelType) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
dsgTag: HTMLDivElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};