AnchorLink.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import type { ExtractPropTypes } from 'vue';
  2. import type { Key, VueNode, CustomSlotsType } from '../_util/type';
  3. import type { CSSProperties } from '../_util/cssinjs/hooks/useStyleRegister';
  4. export declare const anchorLinkProps: () => {
  5. prefixCls: StringConstructor;
  6. href: StringConstructor;
  7. title: {
  8. default: VueNode | ((item: any) => VueNode);
  9. type: import("vue").PropType<VueNode | ((item: any) => VueNode)>;
  10. };
  11. target: StringConstructor;
  12. customTitleProps: {
  13. type: import("vue").PropType<AnchorLinkItemProps>;
  14. default: AnchorLinkItemProps;
  15. };
  16. };
  17. export interface AnchorLinkItemProps {
  18. key: Key;
  19. class?: string;
  20. style?: CSSProperties;
  21. href?: string;
  22. target?: string;
  23. children?: AnchorLinkItemProps[];
  24. title?: VueNode | ((item: AnchorLinkItemProps) => VueNode);
  25. }
  26. export type AnchorLinkProps = Partial<ExtractPropTypes<ReturnType<typeof anchorLinkProps>>>;
  27. declare const _default: import("vue").DefineComponent<{
  28. prefixCls: StringConstructor;
  29. href: StringConstructor;
  30. title: {
  31. default: VueNode | ((item: any) => VueNode);
  32. type: import("vue").PropType<VueNode | ((item: any) => VueNode)>;
  33. };
  34. target: StringConstructor;
  35. customTitleProps: {
  36. type: import("vue").PropType<AnchorLinkItemProps>;
  37. default: AnchorLinkItemProps;
  38. };
  39. }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  40. prefixCls: StringConstructor;
  41. href: StringConstructor;
  42. title: {
  43. default: VueNode | ((item: any) => VueNode);
  44. type: import("vue").PropType<VueNode | ((item: any) => VueNode)>;
  45. };
  46. target: StringConstructor;
  47. customTitleProps: {
  48. type: import("vue").PropType<AnchorLinkItemProps>;
  49. default: AnchorLinkItemProps;
  50. };
  51. }>>, {
  52. title: VueNode | ((item: any) => VueNode);
  53. customTitleProps: AnchorLinkItemProps;
  54. }, CustomSlotsType<{
  55. title: any;
  56. default: any;
  57. customTitle: any;
  58. }>>;
  59. export default _default;