diff --git a/types/anchor/anchor-link.d.ts b/types/anchor/anchor-link.d.ts index 6f1fcdcb5..9ab344f51 100644 --- a/types/anchor/anchor-link.d.ts +++ b/types/anchor/anchor-link.d.ts @@ -2,7 +2,7 @@ // Definitions by: akki-jat // Definitions: https://github.com/vueComponent/ant-design-vue/types -import { VNode } from 'vue'; +import { VNodeChild } from 'vue'; export declare class AnchorLink { $props: { @@ -10,13 +10,13 @@ export declare class AnchorLink { * target of hyperlink * @type string */ - href: string; + href?: string; /** * content of hyperlink * @type any (string | slot) */ - title?: string | VNode | VNode[]; + title?: VNodeChild | JSX.Element; /** * Specifies where to display the linked URL diff --git a/types/anchor/anchor.d.ts b/types/anchor/anchor.d.ts index 3ab9bb810..5ed5cde9d 100644 --- a/types/anchor/anchor.d.ts +++ b/types/anchor/anchor.d.ts @@ -2,6 +2,7 @@ // Definitions by: akki-jat // Definitions: https://github.com/vueComponent/ant-design-vue/types +import { CSSProperties } from 'vue'; import { AnchorLink } from './anchor-link'; import { AntdComponent } from '../component'; @@ -60,7 +61,7 @@ export declare class Anchor extends AntdComponent { * The style of the container * @type object */ - wrapperStyle?: object; + wrapperStyle?: CSSProperties | string; /** * Customize the anchor highlight