react-widget-table-basic
Table基础组件
安装
npm install --save react-widget-table-basic
使用
;; const dataSource = key: '1' name: '胡彦斌' age: 32 address: '西湖区湖底公园1号' key: '2' name: '胡彦祖' age: 42 address: '西湖区湖底公园1号' ; const columns = title: '姓名' dataIndex: 'name' key: 'name' title: '年龄' dataIndex: 'age' key: 'age' title: '住址' dataIndex: 'address' key: 'address' ; <TableBasic data=dataSource columns=columns />;
Interfaces
declare ;
defaultProps
prefixCls: "rw-table" tableLayout: "auto" columns: data: showHeader: true showBody: true { return data"key" ?? index; } emptyText: "No Data." { return <div ...props />; } { return <table ...props />; } { return <thead ...props />; } { return <tr ...props />; } { return <th ...props />; } { return <tbody ...props />; } { return <tr ...props />; } { return <td ...props />; }}
基础样式