UNPKG
ic-materials
Version:
latest (0.1.1)
0.1.1
0.1.0
基于react的通用组件库
node-honeycomb.github.io/hc-materials
ic-materials
/
_theme
/
lib
/
browser.js
18 lines
(15 loc)
•
332 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
;
/* eslint-disable no-var */
var
React
=
require
(
'react'
);
module
.
exports
=
function
(
) {
return
{
converters
: [ [
function
(
node
) {
return
typeof
node ===
'function'
; },
function
(
node, index
) {
return
React
.
cloneElement
(
node
(), {
key
: index }); }, ], ], }; };