From 0a7bfcd478eaab676dfbfcb58a375d47a3e7f056 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Mon, 26 Dec 2016 09:51:02 +0800 Subject: [PATCH] props --- src/routes/ui/ico.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/routes/ui/ico.js b/src/routes/ui/ico.js index d391a2c..844e1cd 100644 --- a/src/routes/ui/ico.js +++ b/src/routes/ui/ico.js @@ -1,5 +1,6 @@ import React, { PropTypes } from 'react' import {Ico} from '../../components/ui' +import {Table} from 'antd' import styles from './ico.less' const iconlist = ['Cherry','Cheese','Bread','Beer','Beet','Bacon','Banana','Asparagus','Apple'] @@ -8,6 +9,35 @@ const IcoPage = () =>
+

Props

+ key} + pagination={false} + bordered + columns={[ + { + title: '参数', + dataIndex: 'props', + }, + { + title: '说明', + dataIndex: 'desciption', + }, + { + title: '类型', + dataIndex: 'type', + }, + { + title: '默认值', + dataIndex: 'default', + } + ]} + dataSource={[ + { + props:'type', + desciption:'图标类型', + type:'string', + default:'-' + }]} /> export default IcoPage