2019-01-12 03:33:27 +00:00
|
|
|
import TouchFeedback from '../index';
|
|
|
|
import './simple.less';
|
2018-04-04 01:44:19 +00:00
|
|
|
|
|
|
|
export default {
|
2019-01-12 03:33:27 +00:00
|
|
|
render() {
|
2018-04-04 01:44:19 +00:00
|
|
|
return (
|
|
|
|
<div style={{ marginBottom: 12 }}>
|
2019-01-12 03:33:27 +00:00
|
|
|
<TouchFeedback activeClassName="active" activeStyle={{ color: 'red' }}>
|
|
|
|
<div
|
|
|
|
class="normal"
|
|
|
|
style={{
|
|
|
|
backgroundColor: 'yellow',
|
|
|
|
}}
|
|
|
|
onClick={() => console.log('click div')}
|
|
|
|
>
|
|
|
|
click to active
|
|
|
|
</div>
|
2018-04-04 01:44:19 +00:00
|
|
|
</TouchFeedback>
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
);
|
2018-04-04 01:44:19 +00:00
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|