Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
f47b2981
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f47b2981
编写于
7月 09, 2015
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
import component rc-table
上级
82c110ac
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
57 addition
and
6 deletion
+57
-6
components/table/demo/basic.md
components/table/demo/basic.md
+14
-4
components/table/index.jsx
components/table/index.jsx
+2
-1
components/table/index.md
components/table/index.md
+1
-0
package.json
package.json
+1
-1
style/components/index.less
style/components/index.less
+1
-0
style/components/table.less
style/components/table.less
+38
-0
未找到文件。
components/table/demo/basic.md
浏览文件 @
f47b2981
...
...
@@ -2,7 +2,7 @@
-
order: 0
标准
的表格。
简单
的表格。
---
...
...
@@ -14,16 +14,26 @@ var columns = [{
},
{
title
:
'
年龄
'
,
dataIndex
:
'
age
'
},
{
title
:
'
住址
'
,
dataIndex
:
''
,
render
:
function
(
a
,
b
)
{
console
.
log
(
a
,
b
);
return
<
a
href
=
"#"
>
操作
</
a
>;
}
}];
var
data
=
[{
name
:
'
胡彦斌
'
,
age
:
32
age
:
32
,
address
:
'
西湖区湖底公园1号
'
},
{
name
:
'
胡彦祖
'
,
age
:
42
age
:
42
,
address
:
'
西湖区湖底公园1号
'
},
{
name
:
'
李大嘴
'
,
age
:
32
age
:
32
,
address
:
'
西湖区湖底公园1号
'
}];
React
.
render
(<
Table
columns
=
{
columns
}
data
=
{
data
}
/>
...
...
components/table/index.jsx
浏览文件 @
f47b2981
...
...
@@ -4,7 +4,8 @@ import Table from 'rc-table';
let
AntTable
=
React
.
createClass
({
getDefaultProps
()
{
return
{
prefixCls
:
'
ant-table
'
prefixCls
:
'
ant-table
'
,
useFixedHeader
:
false
};
},
render
()
{
...
...
components/table/index.md
浏览文件 @
f47b2981
...
...
@@ -2,6 +2,7 @@
-
category: Components
-
chinese: 表格
-
cols: 1
---
...
...
package.json
浏览文件 @
f47b2981
...
...
@@ -24,7 +24,7 @@
"
rc-select
"
:
"
~4.2.1
"
,
"
rc-steps
"
:
"
~1.1.3
"
,
"
rc-switch
"
:
"
~1.1.0
"
,
"
rc-table
"
:
"
~
2.2.0
"
,
"
rc-table
"
:
"
~
3.0.1
"
,
"
rc-tabs
"
:
"
~5.2.0
"
,
"
rc-tooltip
"
:
"
~2.4.0
"
},
...
...
style/components/index.less
浏览文件 @
f47b2981
...
...
@@ -7,6 +7,7 @@
@import "dialog";
@import "confirm";
@import "tabs";
@import "table";
@import "tooltip";
@import "popover";
@import "form";
...
...
style/components/table.less
0 → 100644
浏览文件 @
f47b2981
@import "../mixins/index";
@tablePrefixClass: ~"@{css-prefix}table";
@table-border-color: #e9e9e9;
@table-head-background-color: #f3f3f3;
.@{tablePrefixClass} {
font-size: @font-size-base;
color: @text-color;
border-radius: 6px;
overflow: hidden;
table {
width: 100%;
max-width: 100%;
border-collapse: separate;
}
th {
background: @table-head-background-color;
text-align: left;
font-weight: bold;
}
td {
border-bottom: 1px solid @table-border-color;
}
tr {
transition: all .3s ease;
&:hover {
background: tint(@primary-color, 90%);
}
}
th, td {
padding: 16px 8px;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录