@artmate/chat
Version:
借鉴字节开源react库AntX,通过vue实现的版本
49 lines (48 loc) • 1.69 kB
TypeScript
import { CSSProperties } from 'vue';
import { ThoughtChainProps, ThoughtChainItemProps } from './interface';
interface ThoughtChainNodeProps {
info?: ThoughtChainItemProps;
nextStatus?: ThoughtChainItemProps["status"];
headerClick?: (key: string) => void;
expandedKeys?: string[];
className?: string;
style?: CSSProperties;
classNames?: ThoughtChainProps["classNames"];
styles?: ThoughtChainProps["styles"];
enableCollapse?: boolean;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
icon?(_: {
info: ThoughtChainItemProps;
}): any;
extra?(_: {
info: ThoughtChainItemProps;
}): any;
content?(_: {
info: ThoughtChainItemProps;
}): any;
footer?(_: {
info: ThoughtChainItemProps;
}): any;
};
refs: {
contentRef: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<ThoughtChainNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ThoughtChainNodeProps> & Readonly<{}>, {
info: ThoughtChainItemProps;
headerClick: (key: string) => void;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
contentRef: 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;
};
};