chore(types): anchor type

pull/2685/head
Amour1688 2020-08-17 10:57:35 +08:00
parent 254a663d16
commit 74fe24b77f
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat> // Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types // Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNode } from 'vue'; import { VNodeChild } from 'vue';
export declare class AnchorLink { export declare class AnchorLink {
$props: { $props: {
@ -10,13 +10,13 @@ export declare class AnchorLink {
* target of hyperlink * target of hyperlink
* @type string * @type string
*/ */
href: string; href?: string;
/** /**
* content of hyperlink * content of hyperlink
* @type any (string | slot) * @type any (string | slot)
*/ */
title?: string | VNode | VNode[]; title?: VNodeChild | JSX.Element;
/** /**
* Specifies where to display the linked URL * Specifies where to display the linked URL

View File

@ -2,6 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat> // Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types // Definitions: https://github.com/vueComponent/ant-design-vue/types
import { CSSProperties } from 'vue';
import { AnchorLink } from './anchor-link'; import { AnchorLink } from './anchor-link';
import { AntdComponent } from '../component'; import { AntdComponent } from '../component';
@ -60,7 +61,7 @@ export declare class Anchor extends AntdComponent {
* The style of the container * The style of the container
* @type object * @type object
*/ */
wrapperStyle?: object; wrapperStyle?: CSSProperties | string;
/** /**
* Customize the anchor highlight * Customize the anchor highlight