chore(types): anchor type

pull/2685/head
Amour1688 4 years ago
parent 254a663d16
commit 74fe24b77f

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/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

@ -2,6 +2,7 @@
// Definitions by: akki-jat <https://github.com/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

Loading…
Cancel
Save