mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
Fixed style keys that have "-" in the keys
Added repeat index into the scope
This commit is contained in:
parent
74ea6935e4
commit
2fd3a14879
20
test/data/repeat.js
Normal file
20
test/data/repeat.js
Normal file
@ -0,0 +1,20 @@
|
||||
define([
|
||||
'react',
|
||||
'lodash'
|
||||
], function (React, _) {
|
||||
function generated1(items, itemsIndex, evt) {
|
||||
this.happend(evt);
|
||||
return false;
|
||||
}
|
||||
return function () {
|
||||
return React.DOM.p.apply(this, _.flatten([{}].concat([_.map(this.props.things, function (items, itemsIndex) {
|
||||
return React.DOM.div.apply(this, _.flatten([{}].concat([React.DOM.span.apply(this, _.flatten([{
|
||||
'style': {
|
||||
width: 'auto',
|
||||
'line-height': '5px'
|
||||
},
|
||||
'onClick': generated1.bind(this, items, itemsIndex)
|
||||
}].concat(['Mock'])))])));
|
||||
}, this)])));
|
||||
};
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user