From 2dfe10fdc0c81c32bc4878a6016c7aac9d74696c Mon Sep 17 00:00:00 2001 From: jim chen Date: Tue, 28 Nov 2017 10:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E6=96=87=E6=A1=A3=E6=96=B9?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E4=BF=AE=E6=94=B9=20(#307)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加AvatarList d.ts说明文件 * 修改 axis的链接 , g2修改了新的官网 * AvatarList 增加判断是否为必须属性 * 删除无用的空行. 优化格式 --- src/components/AvatarList/index.d.ts | 21 +++++++++++++++++++++ src/components/Charts/index.md | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/components/AvatarList/index.d.ts diff --git a/src/components/AvatarList/index.d.ts b/src/components/AvatarList/index.d.ts new file mode 100644 index 00000000..0f85f4ed --- /dev/null +++ b/src/components/AvatarList/index.d.ts @@ -0,0 +1,21 @@ +import React from "react"; +export interface AvatarItemProps { + tips: string | React.ReactNode; + src: string; +} + +export interface AvatarListProps { + size?: "large" | "small" | "mini" | "default"; + children: + | React.ReactElement + | Array>; +} + +declare class AvatarItem extends React.Component { + constructor(props: AvatarItemProps); +} + +export default class AvatarList extends React.Component { + constructor(props: AvatarListProps); + static Item: typeof AvatarItem; +} diff --git a/src/components/Charts/index.md b/src/components/Charts/index.md index 966279d4..d3b47e05 100644 --- a/src/components/Charts/index.md +++ b/src/components/Charts/index.md @@ -40,8 +40,8 @@ Ant Design Pro 提供的业务中常用的图表类型,都是基于 [G2](https | height | 图表高度 | number | - | | line | 是否显示描边 | boolean | false | | animate | 是否显示动画 | boolean | true | -| xAxis | [x 轴配置](https://antv.alipay.com/g2/doc/tutorial/start/axis.html) | object | - | -| yAxis | [y 轴配置](https://antv.alipay.com/g2/doc/tutorial/start/axis.html) | object | - | +| xAxis | [x 轴配置](http://antvis.github.io/g2/doc/tutorial/start/axis.html) | object | - | +| yAxis | [y 轴配置](http://antvis.github.io/g2/doc/tutorial/start/axis.html) | object | - | | data | 数据 | array<{x, y}> | - | ### MiniProgress -- GitLab