ant-design-vue/components/vc-m-feedback/demo/simple.jsx

18 lines
441 B
React
Raw Normal View History

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