Skip to content

Commit 74fe24b

Browse files
committed
chore(types): anchor type
1 parent 254a663 commit 74fe24b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

types/anchor/anchor-link.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
// Definitions by: akki-jat <https://github.com/akki-jat>
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

5-
import { VNode } from 'vue';
5+
import { VNodeChild } from 'vue';
66

77
export declare class AnchorLink {
88
$props: {
99
/**
1010
* target of hyperlink
1111
* @type string
1212
*/
13-
href: string;
13+
href?: string;
1414

1515
/**
1616
* content of hyperlink
1717
* @type any (string | slot)
1818
*/
19-
title?: string | VNode | VNode[];
19+
title?: VNodeChild | JSX.Element;
2020

2121
/**
2222
* Specifies where to display the linked URL

types/anchor/anchor.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Definitions by: akki-jat <https://github.com/akki-jat>
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

5+
import { CSSProperties } from 'vue';
56
import { AnchorLink } from './anchor-link';
67
import { AntdComponent } from '../component';
78

@@ -60,7 +61,7 @@ export declare class Anchor extends AntdComponent {
6061
* The style of the container
6162
* @type object
6263
*/
63-
wrapperStyle?: object;
64+
wrapperStyle?: CSSProperties | string;
6465

6566
/**
6667
* Customize the anchor highlight

0 commit comments

Comments
 (0)