UNPKG
react-antd-table-rowspan
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
react+antd表格指定的列,连续的,行合并
react-antd-table-rowspan
/
src
/
Rendercell
/
index.ts
17 lines
(15 loc)
•
321 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** *
@description
渲染单元格 * */
function
rendercell
(
params
:
any
) {
const
{ children, row, key,
type
=
'rowSpan'
} = params
let
obj = { children,
props
: { [
type
]:
''
, }, } obj.
props
[
type
] = row[key +
type
] ? row[key +
type
] :
0
return
obj }
export
default
rendercell